#include <stdio.h>
#include <stdlib.h>
#include "../../util/source/useful.h"
#include "../../util/source/logfile.h"
#include "../../gas_models/source/gas.h"
#include "../../flux_calc/source/flux_calc.h"
#include "../../mb_cns/source/cns_case_id.h"
#include "../../mb_cns/source/cns_work_vector.h"
#include "../../mb_cns/source/cns_debug_level.h"
#include "../../mb_cns/source/cns_cell.h"
#include "../../mb_cns/source/cns_echo.h"
#include "../../mb_cns/source/cns_bc_defs.h"
#include "./e_block.h"
Go to the source code of this file.
Functions | |
| int | record_conserved_for_block (struct block_data_3D *bp) |
| Record the values of the conserved variables. | |
| int | restore_conserved_for_block (struct block_data_3D *bp) |
| Restore the values of the conserved variables. | |
| int | encode_conserved_for_block (struct block_data_3D *bp) |
| Compute the conserved quantities in each cell. | |
| int | decode_conserved_for_block (struct block_data_3D *bp) |
| Compute the primary variables from the conserved quantities. | |
| int | count_invalid_cells_for_block (struct block_data_3D *bp) |
| Returns the number of invalid cells in a block. | |
| int | prepare_to_integrate_for_the_first_time (void) |
| Fills in some of the data by exchanging boundary data and evaluating derivatives, etc. | |
| double | minv (double v[], int first, int last) |
| double | maxv (double v[], int first, int last) |
| int | integrate_in_time (double target_time) |
| Takes as many steps as necessary to reach the target time. | |
| int | take_a_step (void) |
| Take a single predictor-corrector step. | |
| int | source_vector_3D (struct block_data_3D *bp) |
| Compute the components of the source vector, Q. | |
| int | time_derivatives_3D (struct block_data_3D *bp, int time_level) |
| Compute the time derivatives for the conserved quantities. | |
| int | predictor_step_for_block (struct block_data_3D *bp) |
| Predictor stage for the gas dynamic time step. | |
| int | corrector_step_for_block (struct block_data_3D *bp) |
| Corrector stage for the gas dynamic time step. | |
| int | rk3_step_for_block (struct block_data_3D *bp) |
| Corrector stage for the gas dynamic time step. | |
| int | chemical_increment_for_block (struct block_data_3D *bp) |
| Take a time step for the finite-rate chemistry. | |
| int | check_cfl_for_block (struct block_data_3D *bp) |
| Compute the local time step limit for each cell. | |
| int | detect_shock_points_for_block (struct block_data_3D *bp) |
| Detects shocks as by looking for compression between adjacent cells. | |
| char * | time_update (int current_step, int max_steps, double current_dt, double current_t, double final_t) |
| int | set_start_time (void) |
| char * | elmer_time_to_go (time_t start_wall_clock, time_t current_wall_clock, int current_step, int max_steps, double current_dt, double current_t, double final_t) |
|
|
Compute the local time step limit for each cell.
|
|
|
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 invalid cells in a block.
|
|
|
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.
|
|
|
Takes as many steps as necessary to reach the target time. If target_time is given as a negative value, will attempt to reach max_time as stored in the global_data_3d structure. |
|
||||||||||||||||
|
Returns the maximum value in a double vector. |
|
||||||||||||||||
|
Returns the minimum value in a double vector. |
|
|
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.
|
|
|
Corrector stage for the gas dynamic time step.
|
|
|
Compute the components of the source vector, Q.
|
|
||||||||||||
|
Compute the time derivatives for the conserved quantities. These are the spatial (RHS) terms in the semi-discrete governing equations.
|
1.4.4