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
Copy file name to clipboardExpand all lines: docs/documentation/case.md
+29-29Lines changed: 29 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ To run such a case, use the following format:
65
65
For example, to run the `scaling` case in "weak-scaling" mode:
66
66
67
67
```shell
68
-
./mfc.sh run examples/scaling/case.py -t pre_process -j 8 -- --scaling weak
68
+
./mfc.sh run examples/scaling/benchmark.py -t pre_process -j 8 -- --scaling weak
69
69
```
70
70
71
71
## Parameters
@@ -281,12 +281,12 @@ For instance, in a 2D simulation, when a cylindrical `patch(2)` is immersed in a
281
281
282
282
-`smoothen` activates smoothening of the boundary of the patch that alters the existing patch.
283
283
When smoothening occurs, fluids of the two patches are mixed in the region of the boundary.
284
-
For instance, in the aforementioned case of the cylindrical patch immersed in the rectangular patch, smoothening occurs when ``patch_icpp(2)smoothen = 'T'``.
284
+
For instance, in the aforementioned case of the cylindrical patch immersed in the rectangular patch, smoothening occurs when ``patch_icpp(2)%%smoothen = 'T'``.
285
285
`smooth_coeff` controls the thickness of the region of smoothening (sharpness of the mixture region).
286
286
The default value of `smooth_coeff` is unity. The region of smoothening is thickened with decreasing the value.
287
287
Optimal choice of the value of `smooth_coeff` is case-dependent and left to the user.
288
288
289
-
-`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.
289
+
-`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.
290
290
These physical parameters must be consistent with fluid material's parameters defined in the next subsection.
291
291
292
292
-`model_filepath` defines the root directory of the STL or OBJ model file.
@@ -297,7 +297,7 @@ These physical parameters must be consistent with fluid material's parameters de
297
297
298
298
#### Elliptic Smoothing
299
299
300
-
Initial conditions in which not all patches support the `patch_icpp(j)%smoothen` parameter can still be smoothed by applying iterations of the heat equation to the initial condition.
300
+
Initial conditions in which not all patches support the `patch_icpp(j)%%smoothen` parameter can still be smoothed by applying iterations of the heat equation to the initial condition.
301
301
This is enabled by adding `'elliptic_smoothing': "T",` and `'elliptic_smoothing_iters': N,` to the case dictionary, where `N` is the number of smoothing iterations to apply.
@@ -463,10 +463,10 @@ Boundary condition patches can be used with non-characteristic boundary conditio
463
463
Their use is detailed in [Boundary Condition Patches](#boundary-condition-patches).
464
464
465
465
-`bc_[x,y,z]%%vb[1,2,3]` specifies the velocity in the (x,1), (y,2), (z,3) direction applied to `bc_[x,y,z]%%beg` when using `bc_[x,y,z]%%beg = -16`.
466
-
Tangential velocities require viscosity, `weno_avg = T`, and `bc_[x,y,z]%%beg = -16` to work properly. Normal velocities require `bc_[x,y,z]%%end = -15` or `\bc_[x,y,z]%%end = -16` to work properly.
466
+
Tangential velocities require viscosity, `weno_avg = T`, and `bc_[x,y,z]%%beg = -16` to work properly. Normal velocities require `bc_[x,y,z]%%end = -15` or `bc_[x,y,z]%%end = -16` to work properly.
467
467
468
468
-`bc_[x,y,z]%%ve[1,2,3]` specifies the velocity in the (x,1), (y,2), (z,3) direction applied to `bc_[x,y,z]%%beg` when using `bc_[x,y,z]%%end = -16`.
469
-
Tangential velocities require viscosity, `weno_avg = T`, and `bc_[x,y,z]%%end = 16` to work properly. Normal velocities require `bc_[x,y,z]%%end = -15` or `\bc_[x,y,z]%%end = -16` to work properly.
469
+
Tangential velocities require viscosity, `weno_avg = T`, and `bc_[x,y,z]%%end = 16` to work properly. Normal velocities require `bc_[x,y,z]%%end = -15` or `bc_[x,y,z]%%end = -16` to work properly.
470
470
471
471
-`model_eqns` specifies the choice of the multi-component model that is used to formulate the dynamics of the flow using integers from 1 through 3.
472
472
`model_eqns = 1`, `2`, and `3` correspond to \f$\Gamma\f$-\f$\Pi_\infty\f$ model (\cite Johnsen08), 5-equation model (\cite Allaire02), and 6-equation model (\cite Saurel09), respectively.
@@ -531,7 +531,7 @@ If this option is false, velocity gradient is computed using finite difference s
531
531
-`weno_avg` it activates the arithmetic average of the left and right, WENO-reconstructed, cell-boundary values.
532
532
This option requires `weno_Re_flux` to be true because cell boundary values are only utilized when employing the scalar divergence method in the computation of velocity gradients.
533
533
534
-
-`surface_tension` activates surface tension when set to ``'T'``. Requires `sigma` to be set and `num_fluids`. The color function in each patch should be assigned such that `patch_icpp(i)%cf_val = 1` in patches where `patch_icpp(i)%alpha = 1 - eps` and `patch_icpp(i)%cf_val = 0` in patches where `patch_icpp(i)%alpha = eps`.
534
+
-`surface_tension` activates surface tension when set to ``'T'``. Requires `sigma` to be set and `num_fluids`. The color function in each patch should be assigned such that `patch_icpp(i)%%cf_val = 1` in patches where `patch_icpp(i)%%alpha = 1 - eps` and `patch_icpp(i)%%cf_val = 0` in patches where `patch_icpp(i)%%alpha = eps`.
535
535
536
536
-`viscous` activates viscosity when set to ``'T'``. Requires `Re(1)` and `Re(2)` to be set.
537
537
@@ -620,8 +620,8 @@ To restart the simulation from $k$-th time step, see @ref running "Restarting Ca
620
620
|`num_probes`| Integer | Number of probes |
621
621
|`probe(i)%[x,y,z]`| Real | Coordinates of probe $i$ |
622
622
|`output_partial_domain`| Logical | Output part of the domain |
623
-
|`[x,y,z]_output%beg`| Real | Beginning of the output domain in the [x,y,z]-direction |
624
-
|`[x,y,z]_output%end`| Real | End of the output domain in the [x,y,z]-direction |
623
+
|`[x,y,z]_output%%beg`| Real | Beginning of the output domain in the [x,y,z]-direction |
624
+
|`[x,y,z]_output%%end`| Real | End of the output domain in the [x,y,z]-direction |
625
625
|`lag_txt_wrt`| Logical | Write Lagrangian bubble data to `.dat` files |
-`chem_params%transport_model` specifies the methodology for calculating diffusion coefficients and other transport properties, `1` for mixture-average, `2` for Unity-Lewis
1017
+
-`chem_params%%transport_model` specifies the methodology for calculating diffusion coefficients and other transport properties, `1` for mixture-average, `2` for Unity-Lewis
1018
1018
1019
1019
-`cantera_file` specifies the chemical mechanism file. If the file is part of the standard Cantera library, only the filename is required. Otherwise, the file must be located in the same directory as your `case.py` file
1020
1020
@@ -1051,15 +1051,15 @@ The entries labeled "Characteristic." are characteristic boundary conditions bas
1051
1051
1052
1052
| Parameter | Type | Description |
1053
1053
| ---: | :----: | :--- |
1054
-
|`bc_[x,y,z]%grcbc_in`| Logical | Enable grcbc for subsonic inflow |
1055
-
|`bc_[x,y,z]%grcbc_out`| Logical | Enable grcbc for subsonic outflow (pressure)|
1056
-
|`bc_[x,y,z]%grcbc_vel_out`| Logical | Enable grcbc for subsonic outflow (pressure + normal velocity) |
1057
-
|`bc_[x,y,z]%vel_in`| Real Array | Inflow velocities in x, y and z directions |
1058
-
|`bc_[x,y,z]%vel_out`| Real Array | Outflow velocities in x, y and z directions |
1059
-
|`bc_[x,y,z]%pres_in`| Real | Inflow pressure |
1060
-
|`bc_[x,y,z]%pres_out`| Real | Outflow pressure |
1061
-
|`bc_[x,y,z]%alpha_rho_in`| Real Array | Inflow density |
1062
-
|`bc_[x,y,z]%alpha_in`| Real Array | Inflow void fraction |
1054
+
|`bc_[x,y,z]%%grcbc_in`| Logical | Enable grcbc for subsonic inflow |
1055
+
|`bc_[x,y,z]%%grcbc_out`| Logical | Enable grcbc for subsonic outflow (pressure)|
1056
+
|`bc_[x,y,z]%%grcbc_vel_out`| Logical | Enable grcbc for subsonic outflow (pressure + normal velocity) |
1057
+
|`bc_[x,y,z]%%vel_in`| Real Array | Inflow velocities in x, y and z directions |
1058
+
|`bc_[x,y,z]%%vel_out`| Real Array | Outflow velocities in x, y and z directions |
1059
+
|`bc_[x,y,z]%%pres_in`| Real | Inflow pressure |
1060
+
|`bc_[x,y,z]%%pres_out`| Real | Outflow pressure |
1061
+
|`bc_[x,y,z]%%alpha_rho_in`| Real Array | Inflow density |
1062
+
|`bc_[x,y,z]%%alpha_in`| Real Array | Inflow void fraction |
1063
1063
1064
1064
This boundary condition can be used for subsonic inflow (`bc_[x,y,z]%[beg,end]` = -7) and subsonic outflow (`bc_[x,y,z]%[beg,end]` = -8) characteristic boundary conditions. These are based on \cite Pirozzoli13. This enables to provide inflow and outflow conditions outside the computational domain.
0 commit comments