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
refactor: rename bc_x/bc_y/bc_z to bc%x/bc%y/bc%z via bc_xyz_info struct
Group the three directional boundary condition variables (bc_x, bc_y,
bc_z of type bc_dir_t) into a single bc_xyz_info struct accessed as
bc%x, bc%y, bc%z. Updates all Fortran source, Fypp macros, Python
toolchain, example cases, and documentation.
|`alt_soundspeed` * | Logical | Alternate sound speed and \f$K \nabla \cdot u\f$ for 5-equation model |
429
429
|`adv_n`| Logical | Solving directly for the number density (in the method of classes) and compute void fraction from the number density |
@@ -482,23 +482,23 @@ See @ref equations "Equations" for the mathematical models these parameters cont
482
482
483
483
-\* Options that work only with `model_eqns = 2`.
484
484
- † Options that work only with ``cyl_coord = 'F'``.
485
-
- ‡ Options that work only with `bc_[x,y,z]%[beg,end] = -15` and/or `bc_[x,y,z]%[beg,end] = -16`.
485
+
- ‡ Options that work only with `bc%[x,y,z]%[beg,end] = -15` and/or `bc%[x,y,z]%[beg,end] = -16`.
486
486
487
487
The table lists simulation algorithm parameters.
488
488
The parameters are used to specify options in algorithms that are used to integrate the governing equations of the multi-component flow based on the initial condition.
489
489
Models and assumptions that are used to formulate and discretize the governing equations are described in \cite Wilfong26 and \cite Bryngelson21.
490
490
Details of the simulation algorithms and implementation of the WENO scheme can be found in \cite Coralic15.
491
491
492
-
-`bc_[x,y,z]%[beg,end]` specifies the boundary conditions at the beginning and the end of domain boundaries in each coordinate direction by a negative integer from -1 through -16.
492
+
-`bc%[x,y,z]%[beg,end]` specifies the boundary conditions at the beginning and the end of domain boundaries in each coordinate direction by a negative integer from -1 through -16.
493
493
See table [Boundary Conditions](#boundary-conditions) for details.
494
494
Boundary condition patches can be used with non-characteristic boundary conditions.
495
495
Their use is detailed in [Boundary Condition Patches](#boundary-condition-patches).
496
496
497
-
-`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`.
498
-
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.
497
+
-`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`.
498
+
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.
499
499
500
-
-`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`.
501
-
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.
500
+
-`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`.
501
+
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.
502
502
503
503
-`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.
504
504
`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.
@@ -534,7 +534,7 @@ It is recommended to set `weno_eps` to $10^{-6}$ for WENO-JS, and to $10^{-40}$
534
534
535
535
-`teno_CT` specifies the threshold for the TENO scheme. This dimensionless constant, also known as $C_T$, sets a threshold to identify smooth and non-smooth stencils. Larger values make the scheme more robust but also more dissipative. A recommended value for teno_CT is `1e-6`. When adjusting this parameter, it is recommended to try values like `1e-5` or `1e-7` for TENO5. A smaller value can be used for TENO7.
536
536
537
-
-`null_weights` activates nullification of the nonlinear WENO weights at the buffer regions outside the domain boundaries when the Riemann extrapolation boundary condition is specified (`bc_[x,y,z]%%beg[end]} = -4`).
537
+
-`null_weights` activates nullification of the nonlinear WENO weights at the buffer regions outside the domain boundaries when the Riemann extrapolation boundary condition is specified (`bc%%[x,y,z]%%beg[end]} = -4`).
538
538
539
539
-`mp_weno` activates monotonicity preservation in the WENO reconstruction (MPWENO) such that the values of reconstructed variables do not reside outside the range spanned by WENO stencil (\cite Balsara00; \cite Suresh97).
540
540
@@ -1046,17 +1046,17 @@ Note: For relativistic flow, the conservative and primitive densities are differ
1046
1046
1047
1047
When ``cyl_coord = 'T'`` is set in 3D the following constraints must be met:
1048
1048
1049
-
-`bc_y%%beg = -14` enables the axis boundary condition
1049
+
-`bc%%y%%beg = -14` enables the axis boundary condition
1050
1050
1051
-
-`bc_z%%beg = bc_z%%end = -1` enables periodic boundary conditions in the azimuthal direction
1051
+
-`bc%%z%%beg = bc%%z%%end = -1` enables periodic boundary conditions in the azimuthal direction
1052
1052
1053
1053
-`z_domain%%beg = 0` sets the azimuthal starting point to 0
1054
1054
1055
1055
-`z_domain%%end = 2*math.pi` to set the azimuthal ending point to \f$2\pi\f$ (note, requires `import math` in the case file)
1056
1056
1057
1057
When ``cyl_coord = 'T'`` is set in 2D the following constraints must be met:
1058
1058
1059
-
-`bc_y%%beg = -2` to enable reflective boundary conditions
1059
+
-`bc%%y%%beg = -2` to enable reflective boundary conditions
1060
1060
1061
1061
### 17. Chemistry
1062
1062
@@ -1077,12 +1077,12 @@ When ``cyl_coord = 'T'`` is set in 2D the following constraints must be met:
1077
1077
1078
1078
| Parameter | Type | Description |
1079
1079
| ---: | :----: | :--- |
1080
-
|`bc_[x,y,z]%%isothermal_in`| Logical | Enable isothermal wall at the domain entrance (minimum coordinate). |
1081
-
|`bc_[x,y,z]%%isothermal_out`| Logical | Enable isothermal wall at the domain exit (maximum coordinate). |
1082
-
|`bc_[x,y,z]%%Twall_in`| Real | Temperature [K] of the entrance isothermal wall. |
1083
-
|`bc_[x,y,z]%%Twall_out`| Real | Temperature [K] of the exit isothermal wall. |
1080
+
|`bc%%[x,y,z]%%isothermal_in`| Logical | Enable isothermal wall at the domain entrance (minimum coordinate). |
1081
+
|`bc%%[x,y,z]%%isothermal_out`| Logical | Enable isothermal wall at the domain exit (maximum coordinate). |
1082
+
|`bc%%[x,y,z]%%Twall_in`| Real | Temperature [K] of the entrance isothermal wall. |
1083
+
|`bc%%[x,y,z]%%Twall_out`| Real | Temperature [K] of the exit isothermal wall. |
1084
1084
1085
-
This boundary condition can be used for fixed-temperature (isothermal) walls at the domain extremities. It is exclusively available for reacting flows and requires chemistry to be enabled. It properly evaluates heat and species fluxes at the interface when ``chemistry = 'T'``, ``chem_params%%diffusion = 'T'``, and the corresponding domain boundary is set to a slip wall (`bc_[x,y,z]%%[beg,end]` = -15) or a no-slip wall (`bc_[x,y,z]%%[beg,end]` = -16).
1085
+
This boundary condition can be used for fixed-temperature (isothermal) walls at the domain extremities. It is exclusively available for reacting flows and requires chemistry to be enabled. It properly evaluates heat and species fluxes at the interface when ``chemistry = 'T'``, ``chem_params%%diffusion = 'T'``, and the corresponding domain boundary is set to a slip wall (`bc%%[x,y,z]%%[beg,end]` = -15) or a no-slip wall (`bc%%[x,y,z]%%[beg,end]` = -16).
1086
1086
1087
1087
1088
1088
@@ -1118,27 +1118,27 @@ This boundary condition can be used for fixed-temperature (isothermal) walls at
1118
1118
| -15 | Normal | Slip wall |
1119
1119
| -16 | Normal | No-slip wall |
1120
1120
1121
-
*: This boundary condition is only used for `bc_y%%beg` when using cylindrical coordinates (``cyl_coord = 'T'`` and 3D). For axisymmetric problems, use `bc_y%%beg = -2` with ``cyl_coord = 'T'`` in 2D.
1121
+
*: This boundary condition is only used for `bc%%y%%beg` when using cylindrical coordinates (``cyl_coord = 'T'`` and 3D). For axisymmetric problems, use `bc%%y%%beg = -2` with ``cyl_coord = 'T'`` in 2D.
1122
1122
1123
1123
The boundary condition supported by the MFC are listed in table [Boundary Conditions](#boundary-conditions).
1124
-
Their number (`#`) corresponds to the input value in `input.py` labeled `bc_[x,y,z]%[beg,end]` (see table [Simulation Algorithm Parameters](#sec-simulation-algorithm)).
1124
+
Their number (`#`) corresponds to the input value in `input.py` labeled `bc%[x,y,z]%[beg,end]` (see table [Simulation Algorithm Parameters](#sec-simulation-algorithm)).
1125
1125
The entries labeled "Characteristic." are characteristic boundary conditions based on \cite Thompson87 and \cite Thompson90.
|`bc_[x,y,z]%%grcbc_in`| Logical | Enable grcbc for subsonic inflow |
1132
-
|`bc_[x,y,z]%%grcbc_out`| Logical | Enable grcbc for subsonic outflow (pressure)|
1133
-
|`bc_[x,y,z]%%grcbc_vel_out`| Logical | Enable grcbc for subsonic outflow (pressure + normal velocity) |
1134
-
|`bc_[x,y,z]%%vel_in`| Real Array | Inflow velocities in x, y and z directions |
1135
-
|`bc_[x,y,z]%%vel_out`| Real Array | Outflow velocities in x, y and z directions |
1136
-
|`bc_[x,y,z]%%pres_in`| Real | Inflow pressure |
1137
-
|`bc_[x,y,z]%%pres_out`| Real | Outflow pressure |
1138
-
|`bc_[x,y,z]%%alpha_rho_in`| Real Array | Inflow density |
1139
-
|`bc_[x,y,z]%%alpha_in`| Real Array | Inflow void fraction |
1140
-
1141
-
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.
1131
+
|`bc%%[x,y,z]%%grcbc_in`| Logical | Enable grcbc for subsonic inflow |
1132
+
|`bc%%[x,y,z]%%grcbc_out`| Logical | Enable grcbc for subsonic outflow (pressure)|
1133
+
|`bc%%[x,y,z]%%grcbc_vel_out`| Logical | Enable grcbc for subsonic outflow (pressure + normal velocity) |
1134
+
|`bc%%[x,y,z]%%vel_in`| Real Array | Inflow velocities in x, y and z directions |
1135
+
|`bc%%[x,y,z]%%vel_out`| Real Array | Outflow velocities in x, y and z directions |
1136
+
|`bc%%[x,y,z]%%pres_in`| Real | Inflow pressure |
1137
+
|`bc%%[x,y,z]%%pres_out`| Real | Outflow pressure |
1138
+
|`bc%%[x,y,z]%%alpha_rho_in`| Real Array | Inflow density |
1139
+
|`bc%%[x,y,z]%%alpha_in`| Real Array | Inflow void fraction |
1140
+
1141
+
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