Skip to content

Commit a221310

Browse files
authored
Unify ICPP STL onto the shared IB model path (#1546)
1 parent 90755b3 commit a221310

24 files changed

Lines changed: 1630 additions & 273 deletions

File tree

docs/documentation/case.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,7 @@ MPI topology is automatically optimized to maximize the parallel efficiency for
186186
| `tau_e(i)` * | Real | Supported | Elastic stresses. |
187187
| `hcid` * | Integer | N/A | Hard coded patch id |
188188
| `cf_val` * | Real | Supported | Surface tension color function value |
189-
| `model_filepath` | String | Not Supported | Path to an STL or OBJ file (not all OBJs are supported). |
190-
| `model_scale(i)` | Real | Not Supported | Model's (applied) scaling factor for component $i$. |
191-
| `model_rotate(i)` | Real | Not Supported | Model's (applied) angle of rotation about axis $i$. |
192-
| `model_translate(i)` | Real | Not Supported | Model's $i$-th component of (applied) translation. |
193-
| `model_spc` | Integer | Not Supported | Number of samples per cell when discretizing the model into the grid. |
194-
| `model_threshold` | Real | Not Supported | Ray fraction inside the model patch above which the fraction is set to one.|
189+
| `model_id` | Integer | Not Supported | Index into the `stl_models` array (geometry 21) |
195190

196191
*: These parameters should be prepended with `patch_icpp(j)%` where $j$ is the patch index.
197192

@@ -296,11 +291,7 @@ Optimal choice of the value of `smooth_coeff` is case-dependent and left to the
296291
- `patch_icpp(j)%%alpha(i)`, `patch_icpp(j)%%alpha_rho(i)`, `patch_icpp(j)%%pres`, and `patch_icpp(j)%%vel(i)` define for $j$-th patch the void fraction of `fluid(i)`, partial density of `fluid(i)`, the pressure, and the velocity in the $i$-th coordinate direction.
297292
These physical parameters must be consistent with fluid material's parameters defined in the next subsection.
298293

299-
- `model_filepath` defines the root directory of the STL or OBJ model file.
300-
301-
- `model_scale`, `model_rotate` and `model_translate` define how the model should be transformed to domain-space by first scaling by `model_scale`, then rotating about the Z, X, and Y axes (using `model_rotate`), and finally translating by `model_translate`.
302-
303-
- `model_spc` and `model_threshold` are ray-tracing parameters. `model_spc` defines the number of rays per cell to render the model. `model_threshold` defines the ray-tracing threshold at which the cell is marked as the model.
294+
- `model_id` selects the STL/OBJ model for a geometry-21 patch by indexing into the `stl_models` array. The model file, scaling, and translation, and the inside/outside threshold, are configured on that `stl_models` entry (see the `stl_models` section below); a cell is marked inside the model using a winding-number test.
304295

305296
#### Elliptic Smoothing
306297

@@ -1169,7 +1160,7 @@ This boundary condition can be used for subsonic inflow (`bc_[x,y,z]%[beg,end]`
11691160
| 18 | 2D Varcircle | 2 | Y | Requires `[x,y]_centroid`, `radius`, and `thickness` |
11701161
| 19 | 3D Varcircle | 3 | Y | Requires `[x,y,z]_centroid`, `length_z`, `radius`, and `thickness` |
11711162
| 20 | 2D Taylor-Green Vortex | 2 | N | Requires `[x,y]_centroid`, `length_x`, `length_y`, `vel(1)`, and `vel(2)` |
1172-
| 21 | Model | 2 & 3 | Y | Imports a Model (STL/OBJ). Requires `model_filepath`. |
1163+
| 21 | Model | 2 & 3 | Y | Imports a Model (STL/OBJ). Requires `model_id`. |
11731164

11741165
The patch types supported by the MFC are listed in table [Patch Types](#patch-types).
11751166
This includes types exclusive to one-, two-, and three-dimensional problems.

0 commit comments

Comments
 (0)