You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`alt_soundspeed` * | Logical | Alternate sound speed and $K \nabla \cdot u$ for 5-equation model |
344
344
|`adv_n`| Logical | Solving directly for the number density (in the method of classes) and compute void fraction from the number density |
@@ -463,7 +463,7 @@ The value of `dt` needs to be sufficiently small to satisfy the Courant-Friedric
463
463
To newly start the simulation, set `t_step_start = 0`.
464
464
To restart the simulation from $k$-th time step, set `t_step_start = k`; see [Restarting Cases](running.md#restarting-cases).
465
465
466
-
##### Adaptive Time-Stepping
466
+
##### Adaptive Time-Stepping (optional)
467
467
468
468
-`cfl_adap_dt` enables adaptive time stepping with a constant CFL when true
469
469
@@ -480,6 +480,32 @@ To restart the simulation from $k$-th time step, set `t_step_start = k`; see [Re
480
480
To newly start the simulation, set `n_start = 0`.
481
481
To restart the simulation from $k$-th time step, see [Restarting Cases](running.md#restarting-cases).
482
482
483
+
#### Boundary Condition Patches (optional)
484
+
485
+
Boudary condition patches allow you to define boundary conditions with more granularity
486
+
than `bc_[x,y,z]`. When using this feature, any point along the edge of the domain can
487
+
be assigned its own boundary condition type. Since the boundaries of a 3D domain are
488
+
2D surfaces, the concept of patches is re-introduced.
489
+
490
+
Boundary conditions are applied using the [Painter's algorithm](https://en.wikipedia.org/wiki/Painter%27s_algorithm)
491
+
where patches with higher indices take priority, in layers. The lowest priority is given
492
+
to `bc_[x,y,z]`. This feature is opt-in and enabled by assigning `num_bc_patches` to a
493
+
positive value.
494
+
495
+
| Parameter | Type | Description |
496
+
| ---: | :----: | :--- |
497
+
|`num_bc_patches`| Integer | Number of boundary condition patches (default 0) |
498
+
|`%%type` * | Integer | Boundary condition type (negative integer, see table [Boundary Conditions](#boundary-conditions)) |
499
+
|`%%dir` * | Integer | About the [1] x; [2] y; [3] z; axis |
500
+
|`%%loc` * | Integer | About the line or surface at the [-1] beginning; [+2] end; of the `%%dir` axis. |
501
+
|`%%geometry` * | Integer | The geometry of the boundary condition patch. See table [Boundary Condition Patch Geometry Types](#boundary-condition-patch-geometry-types)|
502
+
|`%%vel(i)` * | Real | Meaning depends on the boundary condition |
503
+
|`%%centroid(i)` * | Real | Meaning depends on the patch geometry. Index $i = \text{dir}$ is always ignored |
504
+
|`%%length(i)` * | Real | Meaning depends on the patch geometry. Index $i = \text{dir}$ is always ignored |
505
+
|`%%radius` * | Real | Meaning depends on the patch geometry. Index $i = \text{dir}$ is always ignored |
506
+
507
+
*: These parameters should be prepended with `patch_bc(j)%` where $j$ is the boundary condition patch index.
508
+
483
509
### 7. Formatted Output
484
510
485
511
| Parameter | Type | Description |
@@ -862,6 +888,13 @@ This includes types exclusive to one-, two-, and three-dimensional problems.
862
888
The patch type number (`#`) corresponds to the input value in `input.py` labeled `patch_icpp(j)%%geometry` where $j$ is the patch index.
863
889
Each patch requires a different set of parameters, which are also listed in this table.
0 commit comments