Skip to content

Commit

Permalink
Update case.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sbryngelson authored Nov 5, 2024
1 parent c8ad8c0 commit 35ec4c3
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions docs/documentation/case.md
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,8 @@ Details of implementation of viscosity in MFC can be found in [Coralic (2015)](r
| `n_start` | Integer | Save file from which to start simulation |
| `t_save` | Real | Time duration between data output |
| `t_stop` | Real | Simulation stop time |
| `surface_tension` | Logical | Activate surface tension. Requires `surface_tension = T` |
| `viscous` | Logical | Activate viscosity Requires `viscous = T` |
| `surface_tension` | Logical | Activate surface tension |
| `viscous` | Logical | Activate viscosity |

- \* Options that work only with `model_eqns = 2`.
- † Options that work only with ``cyl_coord = 'F'``.
Expand Down Expand Up @@ -447,37 +447,37 @@ If this option is false, velocity gradient is computed using finite difference s
- `weno_avg` it activates the arithmetic average of the left and right, WENO-reconstructed, cell-boundary values.
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.

- `surface_tension` activates surface tension when set to `'T'`. Requires `sigma` to be set.
- `surface_tension` activates surface tension when set to ``'T'``. Requires `sigma` to be set.

- `viscous` activates viscosity when set to `'T'`. Requires `Re(1)` and `Re(2)` to be set.
- `viscous` activates viscosity when set to ``'T'``. Requires `Re(1)` and `Re(2)` to be set.

#### Constant Time-Stepping

- `dt` specifies the constant time step size that is used in simulation.
The value of `dt` needs to be sufficiently small such that the Courant-Friedrichs-Lewy (CFL) condition is satisfied.
- `dt` specifies the constant time step size used in the simulation.
The value of `dt` needs to be sufficiently small to satisfy the Courant-Friedrichs-Lewy (CFL) condition.

- `t_step_start` and `t_step_end` define the time steps at which simulation starts and ends, respectively.
- `t_step_start` and `t_step_end` define the time steps at which the simulation starts and ends.

`t_step_save` is the time step interval for data output during simulation.
To newly start the simulation, set `t_step_start = 0`.
To restart simulation from $k$-th time step, set `t_step_start = k`, see [Restarting Cases](running.md#restarting-cases).
To restart the simulation from $k$-th time step, set `t_step_start = k`; see [Restarting Cases](running.md#restarting-cases).

##### Adaptive Time-Stepping

- `cfl_adap_dt` enables adaptive time stepping with a constant CFL when true

- `cfl_const_dt` enables constant dt time-stepping where dt results in a specified CFL for the initial condition
- `cfl_const_dt` enables constant `dt` time-stepping where `dt` results in a specified CFL for the initial condition

- `cfl_target` specifies the target CFL value

- `n_start` specifies the save file to start at

- `t_save` specifies the time interval between data output during simulation
- `t_save` specifies the time interval between data output during the simulation

- `t_stop` specifies at what time the simulation should stop

To newly start the simulation, set `n_start = 0`.
To restart simulation from $k$-th time step, see [Restarting Cases](running.md#restarting-cases).
To restart the simulation from $k$-th time step, see [Restarting Cases](running.md#restarting-cases).

### 7. Formatted Output

Expand Down Expand Up @@ -518,23 +518,23 @@ The table lists formatted database output parameters. The parameters define vari

- `parallel_io` activates parallel input/output (I/O) of data files. It is highly recommended to activate this option in a parallel environment.
With parallel I/O, MFC inputs and outputs a single file throughout pre-process, simulation, and post-process, regardless of the number of processors used.
Parallel I/O enables the use of different number of processors in each of the processes (i.e., simulation data generated using 1000 processors can be post-processed using a single processor).
Parallel I/O enables the use of different numbers of processors in each process (e.g., simulation data generated using 1000 processors can be post-processed using a single processor).

- `file_per_process` deactivates shared file MPI-IO and activates file per process MPI-IO.
The default behavior is to use a shared file.
File per process is useful when running on 10's of thousands of ranks.
File per process is useful when running on >10K ranks.
If `file_per_process` is true, then pre_process, simulation, and post_process must be run with the same number of ranks.

- `cons_vars_wrt` and `prim_vars_wrt` activate output of conservative and primitive state variables into the database, respectively.
- `cons_vars_wrt` and `prim_vars_wrt` activate the output of conservative and primitive state variables into the database.

- `[variable's name]_wrt` activates output of the each specified variable into the database.
- `[variable's name]_wrt` activates the output of each specified variable into the database.

- `schlieren_alpha(i)` specifies the intensity of the numerical Schlieren of $i$-th component.

- `fd_order` specifies the order of the finite difference scheme that is used to compute the vorticity from the velocity field and the numerical schlieren from the density field by an integer of 1, 2, and 4.
`fd_order = 1`, `2`, and `4` correspond to the first, second, and fourth-order finite difference schemes, respectively.
- `fd_order` specifies the order of the finite difference scheme used to compute the vorticity from the velocity field and the numerical schlieren from the density field using an integer of 1, 2, and 4.
`fd_order = 1`, `2`, and `4` correspond to the first, second, and fourth-order finite difference schemes.

- `probe_wrt` activates output of state variables at coordinates specified by `probe(i)%[x;y,z]`.
- `probe_wrt` activates the output of state variables at coordinates specified by `probe(i)%[x;y,z]`.


### 8. Acoustic Source {#acoustic-source}
Expand Down Expand Up @@ -597,15 +597,15 @@ Details of the transducer acoustic source model can be found in [Maeda and Colon

- `%%foc_length` specifies the focal length of the transducer for transducer waves. It is the distance from the transducer to the focal point.

- `%%aperture` specifies the aperture of the transducer. It is the diameter of the projection of the transducer arc onto the y-axis (2D) or spherical cap onto the y-z plane (3D). To simulate a transducer enclosing half of the circle/sphere, set the aperture to double the focal length. For transducer array, it is the total aperture of the array.
- `%%aperture` specifies the aperture of the transducer. It is the diameter of the projection of the transducer arc onto the y-axis (2D) or spherical cap onto the y-z plane (3D). Set the aperture to double the focal length to simulate a transducer enclosing half of the circle/sphere. For the transducer array, it is the total aperture of the array.

- `%%num_elements` specifies the number of transducer elements in a transducer array.

- `%%element_on` specifies the element number of the transducer array that is on. The element number starts from 1. If all elements are on, set `%%element_on` to 0.
- `%%element_on` specifies the element number of the transducer array that is on. The element number starts from 1, if all elements are on, set `%%element_on` to 0.

- `%%element_spacing_angle` specifies the spacing angle between adjacent transducer in radians. The total aperture (`%%aperture`) is set, so each transducer element is smaller if `%%element_spacing_angle` is larger.
- `%%element_spacing_angle` specifies the spacing angle between adjacent transducers in radians. The total aperture (`%%aperture`) is set, so each transducer element is smaller if `%%element_spacing_angle` is larger.

- `%%element_polygon_ratio` specifies the ratio of the polygon side length to the aperture diameter of each transducer element in a circular 3D transducer array. The polygon side length is calculated by using the total aperture (`%%aperture`) as the circumcicle diameter, and `%%num_elements` as the number of sides of the polygon. The ratio is used specify the aperture size of each transducer element in the array, as a ratio of the total aperture.
- `%%element_polygon_ratio` specifies the ratio of the polygon side length to the aperture diameter of each transducer element in a circular 3D transducer array. The polygon side length is calculated by using the total aperture (`%%aperture`) as the circumcircle diameter and `%%num_elements` as the number of sides of the polygon. The ratio is used to specify the aperture size of each transducer element in the array as a ratio of the total aperture.

- `%%rotate_angle` specifies the rotation angle of the 3D circular transducer array along the x-axis (principal axis). It is optional and defaults to 0.

Expand Down Expand Up @@ -633,16 +633,16 @@ Details of the transducer acoustic source model can be found in [Maeda and Colon
| `mu_v`| Real | Viscosity |
| `k_v`| Real | Thermal conductivity |
| `qbmm` | Logical | Quadrature by method of moments|
| `dist_type` | Integer | Joint probability density function for bubble radius and velocity (only when qbmm is true)|
| `sigR` | Real | Standard deviation for probability density function of bubble radius (only when qbmm is true) |
| `sigV` | Real | Standard deviation for probability density function of bubble velocity (only when qbmm is true) |
| `rhoRV` | Real | Correlation coefficient for joint probability density function of bubble radius and velocity (only when qbmm is true) |
| `dist_type` | Integer | Joint probability density function for bubble radius and velocity (only for ``qbmm = 'T'``)|
| `sigR` | Real | Standard deviation for the probability density function of bubble radius (only for ``qbmm = 'T'``) |
| `sigV` | Real | Standard deviation for the probability density function of bubble velocity (only for ``qbmm = 'T'``) |
| `rhoRV` | Real | Correlation coefficient for the joint probability density function of bubble radius and velocity (only for ``qbmm = 'T'``) |

These options work only for gas-liquid two component flows.
These options work only for gas-liquid two-component flows.
Component indexes are required to be 1 for liquid and 2 for gas.

- \* These parameters should be pretended with patch index $1$ that is filled with liquid: `fluid_pp(1)%`.
- † These parameters should be pretended with patch indexes that are respectively filled with liquid and gas: `fluid_pp(1)%` and `fluid_pp(2)%`.
- \* These parameters should be prepended with patch index $1$ that is filled with liquid: `fluid_pp(1)%`.
- † These parameters should be prepended with patch indexes filled with liquid and gas: `fluid_pp(1)%` and `fluid_pp(2)%`.

This table lists the ensemble-averaged bubble model parameters.

Expand All @@ -652,9 +652,9 @@ This table lists the ensemble-averaged bubble model parameters.
`bubble_model = 1`, `2`, and `3` correspond to the Gilmore, Keller-Miksis, and Rayleigh-Plesset models.

- `polytropic` activates polytropic gas compression in the bubble.
When `polytropic` is set `False`, the gas compression is modeled as non-polytropic due to heat and mass transfer across the bubble wall with constant heat and mass transfer coefficients based on ([Preston et al., 2007](references.md#Preston07)).
When ``polytropic = 'F'``, the gas compression is modeled as non-polytropic due to heat and mass transfer across the bubble wall with constant heat and mass transfer coefficients based on ([Preston et al., 2007](references.md#Preston07)).

- `polydisperse` activates polydispersity in the bubble model by means of a probability density function (PDF) of the equiliibrium bubble radius.
- `polydisperse` activates polydispersity in the bubble model through a probability density function (PDF) of the equilibrium bubble radius.

- `thermal` specifies a model for heat transfer across the bubble interface by an integer from 1 through 3.
`thermal = 1`, `2`, and `3` correspond to no heat transfer (adiabatic gas compression), isothermal heat transfer, and heat transfer with a constant heat transfer coefficient based on [Preston et al., 2007](references.md#Preston07), respectively.
Expand All @@ -679,17 +679,17 @@ Implementation of the parameters into the model follow [Ando (2010)](references.

- `dist_type` specifies the initial joint PDF of initial bubble radius and bubble velocity required in qbmm. `dist_type = 1` and `2` correspond to binormal and lognormal-normal distributions respectively.

- `sigR` specifies the standard deviation of the PDF of bubble radius required in qbmm.
- `sigR` specifies the standard deviation of the PDF of bubble radius required in the QBMM feature.

- `sigV` specifies the standard deviation of the PDF of bubble velocity required in qbmm.
- `sigV` specifies the standard deviation of the PDF of bubble velocity required in the QBMM feature.

- `rhoRV` specifies the correlation coefficient of the joint PDF of bubble radius and bubble velocity required in qbmm.
- `rhoRV` specifies the correlation coefficient of the joint PDF of bubble radius and bubble velocity required in the QBMM feature.

### 10. Velocity Field Setup

| Parameter | Type | Description |
| ---: | :----: | :--- |
| `perturb_flow` | Logical | Perturb the initlial velocity field by random noise |
| `perturb_flow` | Logical | Perturb the initial velocity field by random noise |
| `perturb_flow_fluid` | Integer | Fluid density whose flow is to be perturbed |
| `perturb_flow_mag` | Real | Set the magnitude of flow perturbations |
| `perturb_sph` | Logical | Perturb the initial partial density by random noise |
Expand All @@ -704,15 +704,15 @@ The parameters are optionally used to define initial velocity profiles and pertu

- `perturb_flow` activates the perturbation of initial velocity by random noise.

- `perturb_flow_fluid` specifies the fluid component whose flow is to be perturbed.
- `perturb_flow_fluid` specifies the fluid component whose flow will be perturbed.

- `perturb_flow` activates the perturbation of initial velocity by random noise.

- `perturb_sph` activates the perturbation of initial partial density by random noise.

- `perturb_sph_fluid` specifies the fluid component whose partial density is to be perturbed.

- `mixlayer_vel_profile` activates setting of the mean streamwise velocity to hyperbolic tangent profile. This option works only for 2D and 3D cases.
- `mixlayer_vel_profile` activates setting the mean streamwise velocity to a hyperbolic tangent profile. This option works only for 2D and 3D cases.

- `mixlayer_vel_coef` is a parameter for the hyperbolic tangent profile of a mixing layer when `mixlayer_vel_profile = 'T'`. The mean streamwise velocity profile is given as:

Expand All @@ -734,7 +734,7 @@ $$ u = patch\_icpp(1)\%vel(1) * tanh(y\_cc * mixlayer\_vel\_profile) $$

- `relax_model` Specifies the phase change model to be used: [5] enables pT-equilibrium, while [6] activates pTg-equilibrium (if criteria are met).

- `palpha_eps` Specifies the tolerance used for the Newton Solvers used in the pT-equilibrium model.
- `palpha_eps` Specifies the tolerance for the Newton Solvers used in the pT-equilibrium model.

- `ptgalpha_eps` Specifies the tolerance used for the Newton Solvers used in the pTg-equilibrium model.

Expand Down Expand Up @@ -846,7 +846,7 @@ Each patch requires a different set of parameters, which are also listed in this
| 10 | Annular Transducer Array | 2D-Axisym | #9 requirements |
| 11 | Circular Transducer Array | 3D | #7 requirements, `%%element_polygon_ratio`, and `%%rotate_angle` |

Details of the required parameters for each acoustic support type are listed in [Acoustic Source](#acoustic-source).
The required parameters for each acoustic support type are listed in [Acoustic Source](#acoustic-source).
The acoustic support number (`#`) corresponds to the acoustic support type `Acoustic(i)%%support`, where $i$ is the acoustic source index.
For each `%%parameter`, prepend the parameter with `acoustic(i)%`.

Expand All @@ -855,7 +855,7 @@ Additional requirements for all acoustic support types:

- `num_source` must be set to the total number of acoustic sources.

- `%%support` must be set to the acoustic support number listed in the table.
- `%%support` must be set to the acoustic support number in the table.

- `%%dipole` is only supported for planar sources.

Expand Down

0 comments on commit 35ec4c3

Please sign in to comment.