Go to the source code of this file.
Functions | |
| int | record_conserved (struct block_data *A) |
| Record the values of the conserved variables. | |
| int | restore_conserved (struct block_data *A) |
| Restore the values of the conserved variables. | |
| int | encode_conserved (struct block_data *A) |
| Compute the conserved quantities in each cell. | |
| int | decode_conserved (struct block_data *A) |
| Compute the primary variables from the conserved quantities. | |
| int | count_invalid_cells (struct block_data *A) |
| Returns the number of cells that contain invalid data. | |
| int | source_vector (struct block_data *A) |
| Compute the components of the source vector, Q. | |
| int | time_derivatives (struct block_data *A, int time_level) |
| Compute the time derivatives for the conserved quantities. | |
| int | check_residual (struct block_data *A) |
| Check the residual (based on the density field). | |
| int | predictor_step (struct block_data *A) |
| Predictor stage for the gas dynamic time step. | |
| int | corrector_step (struct block_data *A) |
| Corrector stage for the gas dynamic time step. | |
| int | chemical_increment (struct block_data *A) |
| Take a time step for the finite-rate chemistry. | |
| int | thermal_increment (struct block_data *A) |
| Take a time step for the nonequilibrium energy evolution. | |
| int | check_cfl (struct block_data *A) |
| Compute the local time step limit for each cell. | |
| int | impose_global_timestep (struct block_data *A, double dt) |
| Impose a specified timestep over the whole block. | |
| int | detect_shock_points (struct block_data *A) |
| Detects shocks as by looking for compression between adjacent cells. | |
| int | impose_chemistry_timestep (struct block_data *A, double dt) |
| Impose a specified chemistry timestep over the whole block. | |
| int | impose_thermal_timestep (struct block_data *A, double dt) |
| Impose a specified thermal timestep over the whole block. | |
| int | apply_spatial_filter (struct block_data *A, double alpha, int npass) |
| Filter the cell-centred primary variables. | |
|
||||||||||||||||
|
Filter the cell-centred primary variables. This filtering is done on a block-by-block basis. Valid flow data are needed in the ghost cells at the edges.
|
|
|
Compute the local time step limit for each cell. The North and East faces are taken as the representative lengths the cells. The overall time step is limited by the worst-case cell. Local time-stepping is attributed to C. P. Li (1973).
* Some Definitions... * ---------------- * dt : global time step for the block * cfl_target : desired CFL number * cfl_min : approximate minimum CFL number in the block * cfl_max : approximate maximum CFL number in the block * dt_allow : allowable time step (i.e. the maximum dt that * satisfies both the CFL target and the viscous * time step limit) * |
|
|
Check the residual (based on the density field). An estimate of the maximum density residual is stored in the block_data structure.
|
|
|
Take a time step for the finite-rate chemistry. Use the finite-rate chemistry module to update the species fractions and the other thermochemical properties for every cell in a specified block.
|
|
|
Corrector stage for the gas dynamic time step.
|
|
|
Returns the number of cells that contain invalid data. This data can be identified by the density of internal energy being on the minimum limit or the velocity being very large.
|
|
|
Compute the primary variables from the conserved quantities.
|
|
|
Detects shocks as by looking for compression between adjacent cells. The velocity component normal to the cell interfaces is used as the indicating variable.
|
|
|
Compute the conserved quantities in each cell. Values for the conserved variables are computed from the primary variables.
|
|
||||||||||||
|
Impose a specified chemistry timestep over the whole block.
|
|
||||||||||||
|
Impose a specified timestep over the whole block.
|
|
||||||||||||
|
Impose a specified thermal timestep over the whole block.
|
|
|
Predictor stage for the gas dynamic time step.
|
|
|
Record the values of the conserved variables. Just in case they need to be reinstated later in the time step.
|
|
|
Restore the values of the conserved variables. In case of time-step failure, conserved-variable data may need to be restired to what they were when last recorded.
|
|
|
Compute the components of the source vector, Q. Currently, the axisymmetric equations include the pressure contribution to the y-momentum equation here rather than in the boundary fluxes. This routine will become useful later for reacting flows.
|
|
|
Take a time step for the nonequilibrium energy evolution. Use the multi-temperature module to update the energy modes and the other thermochemical properties for every cell in a specified block.
|
|
||||||||||||
|
Compute the time derivatives for the conserved quantities. These are the spatial (RHS) terms in the semi-discrete governing equations.
|
1.4.4