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
+40-2Lines changed: 40 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -164,6 +164,7 @@ MPI topology is automatically optimized to maximize the parallel efficiency for
164
164
|`alpha_rho(i)` * | Real | Supported | Partial density of fluid $i$. |
165
165
|`pres` * | Real | Supported | Pressure. |
166
166
|`vel(i)` * | Real | Supported | Velocity in direction $i$. |
167
+
|`tau_e(i)` * | Real | Supported | Elastic stresses. |
167
168
|`hcid` * | Integer | N/A | Hard coded patch id |
168
169
|`cf_val` * | Real | Supported | Surface tension color function value |
169
170
|`model_filepath`| String | Not Supported | Path to an STL or OBJ file (not all OBJs are supported). |
@@ -180,6 +181,8 @@ The parameters define the geometries and physical parameters of fluid components
180
181
Note that the domain must be fully filled with patche(s).
181
182
The code outputs error messages when an empty region is left in the domain.
182
183
184
+
-`tau_e(i)` is the `i`-th component of the elastic stress tensor, ordered as `tau_xx`, `tau_xy`, `tau_yy`, `tau_xz`, `tau_yz`, and `tau_zz`. 1D simulation requires `tau(1)`, 2D `tau(1:3)`, and 3D `tau(1:6)`.
185
+
183
186
#### Analytical Definition of Primitive Variables
184
187
185
188
Some parameters, as described above, can be defined by analytical functions in the input file. For example, one can define the following patch:
@@ -330,6 +333,7 @@ Additional details on this specification can be found in [The Naca Airfoil Serie
330
333
|`qv`**| Real | Stiffened-gas parameter $q$ of fluid. |
331
334
|`qvp`**| Real | Stiffened-gas parameter $q'$ of fluid. |
332
335
|`sigma`| Real | Surface tension coefficient |
336
+
|`G`| Real | Shear modulus of solid. |
333
337
334
338
Fluid material's parameters. All parameters except for sigma should be prepended with `fluid_pp(i)` where $i$ is the fluid index.
335
339
@@ -349,6 +353,8 @@ Details of implementation of viscosity in MFC can be found in [Coralic (2015)](r
349
353
350
354
-`fluid_pp(i)%%cv`, `fluid_pp(i)%%qv`, and `fluid_pp(i)%%qvp` define $c_v$, $q$, and $q'$ as parameters of $i$-th fluid that are used in stiffened gas equation of state.
351
355
356
+
-`fluid_pp(i)%%G` is required for `hypoelasticity`.
357
+
352
358
### 6. Simulation Algorithm
353
359
354
360
| Parameter | Type | Description |
@@ -372,7 +378,7 @@ Details of implementation of viscosity in MFC can be found in [Coralic (2015)](r
372
378
|`teno_CT`| Real | TENO threshold for smoothness detection |
373
379
|`null_weights`| Logical | Null WENO weights at boundaries |
- † Options that work only with ``cyl_coord = 'F'``.
@@ -450,6 +457,7 @@ It is recommended to set `weno_eps` to $10^{-6}$ for WENO-JS, and to $10^{-40}$
450
457
451
458
-`riemann_solver` specifies the choice of the Riemann solver that is used in simulation by an integer from 1 through 3.
452
459
`riemann_solver = 1`, `2`, and `3` correspond to HLL, HLLC, and Exact Riemann solver, respectively ([Toro, 2013](references.md#Toro13)).
460
+
`riemann_solver = 4` is only for MHD simulations. It resolves 5 of the full seven-wave structure of the MHD equations ([Miyoshi and Kusano, 2005](references.md#Miyoshi05)).
453
461
454
462
-`low_Mach` specifies the choice of the low Mach number correction scheme for the HLLC Riemann solver. `low_Mach = 0` is default value and does not apply any correction scheme. `low_Mach = 1` and `2` apply the anti-dissipation pressure correction method ([Chen et al., 2022](references.md#Chen22)) and the improved velocity reconstruction method ([Thornber et al., 2008](references.md#Thornber08)). This feature requires `riemann_solver = 2` and `model_eqns = 2`.
455
463
@@ -469,6 +477,8 @@ This option requires `weno_Re_flux` to be true because cell boundary values are
469
477
470
478
-`viscous` activates viscosity when set to ``'T'``. Requires `Re(1)` and `Re(2)` to be set.
471
479
480
+
-`hypoelasticity` activates elastic stress calculations for fluid-solid interactions. Requires `G` to be set in the fluid material's parameters.
481
+
472
482
#### Constant Time-Stepping
473
483
474
484
-`dt` specifies the constant time step size used in the simulation.
@@ -523,6 +533,7 @@ To restart the simulation from $k$-th time step, see [Restarting Cases](running.
523
533
|`omega_wrt(i)`| Logical | Add the $i$-direction vorticity to the database |
524
534
|`schlieren_wrt`| Logical | Add the numerical schlieren to the database|
525
535
|`qm_wrt`| Logical | Add the Q-criterion to the database|
536
+
|`tau_wrt`| Logical | Add the elastic stress components to the database|
526
537
|`fd_order`| Integer | Order of finite differences for computing the vorticity and the numerical Schlieren function [1,2,4]|
527
538
|`schlieren_alpha(i)`| Real | Intensity of the numerical Schlieren computed via `alpha(i)`|
528
539
|`probe_wrt`| Logical | Write the flow chosen probes data files for each time step |
|`powell`| Logical | Enable Powell's method for solenoidal constraint |
870
+
|`fd_order`| Integer | Finite difference order for Powell's method |
871
+
|`Bx[y,z]`| Real | Initial magnetic field in the x[y,z] direction |
872
+
|`Bx0`| Real | Constant magnetic field in the x direction (1D only)|
873
+
874
+
-`mhd` is currently only available for single-component flows and 5-equation model. Its compatibility with most other features is work in progress.
875
+
876
+
-`relativity` only works for `mhd` enabled and activates relativistic MHD (RMHD) simulation.
877
+
878
+
-`powell` activates Powell's eight-wave method to impose the solenoidal constraint in the MHD simulation [Powell (1994)](references.md#Powell94). It should not be used in conjunction with HLLD (`riemann_solver = 4`).
879
+
880
+
-`fd_order` specifies the finite difference order for computing the RHS of the Powell's method. `fd_order = 1`, `2`, and `4` are allowed.
881
+
882
+
-`Bx0` is only used in 1D simulations to specify the constant magnetic field in the x direction. It must be specified in 1D simulations. `Bx` must not be used in 1D simulations.
883
+
884
+
-`Bx`, `By`, and `Bz` are used to specify the initial magnetic field in the x, y, and z directions, respectively. They must be specified in all 1D/2D/3D MHD simulations, with the exception of `Bx` in 1D simulations.
885
+
886
+
Note: In 1D/2D/3D simulations, all three velocity components are treated as state variables and must be specified in the case file.
887
+
888
+
Note: For relativistic flow, the conservative and primitive densities are different. `rho_wrt` outputs the primitive (rest mass) density.
889
+
890
+
### 15. Cylindrical Coordinates
853
891
854
892
When ``cyl_coord = 'T'`` is set in 3D the following constraints must be met:
Copy file name to clipboardExpand all lines: docs/documentation/references.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,3 +57,7 @@
57
57
- <aid="Tiwari13">Tiwari, A., Freund, J. B., and Pantano, C. (2013). A diffuse interface model with immiscibility preservation. Journal of computational physics, 252:290–309.</a>
58
58
59
59
- <aid="Toro13">Toro, E. F. (2013). Riemann solvers and numerical methods for fluid dynamics: a practical introduction. Springer Science & Business Media.</a>
60
+
61
+
- <aid="Miyoshi05">Miyoishi, T., and Kusano, K. (2005). A multi-state HLL approximate Riemann solver for ideal magnetohydrodynamics. Journal of Computational Physics, 208(1), 315-344.</a>
62
+
63
+
- <aid="Powell94">Powell, K. G. (1994). An approximate Riemann solver for magnetohydrodynamics: (That works in more than one dimension). In Upwind and high-resolution schemes (pp. 570-583). Springer.</a>
0 commit comments