#include <time.h>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.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 "../../mb_cns/source/mb_cfg.h"
#include "./e_block.h"
#include "./e_kernel.h"
Functions | |
| block_data_3D * | get_block_data_3D_ptr (int i) |
| Returns a pointer to the selected block. | |
| global_data_3D * | get_global_data_3D_ptr (void) |
| Returns a pointer to the global data. | |
| int | initialize_global_parameters (void) |
| Set sensible default parameters in elmer.py (not used in elmer_main.c). | |
| int | set_puvwT_flow_condition_in_gd (int indx, double p, double u, double v, double w, double T) |
| Sets selected flow condition data in gd set. | |
| int | set_massf_flow_condition_in_gd (int indx, int imf, double mf) |
| int | call_EOS_for_flow_condition_in_gd (int indx) |
| int | set_block_range (int first, int last) |
| Set the limits for the range of block indices. | |
| int | first_block (void) |
| Returns the index of the first block for this process. | |
| int | last_block (void) |
| Returns the index of the last block for this process. | |
| long | allocate_arrays_for_blocks (void) |
| Calls the C-module array allocation function, once for each block. | |
| int | impose_global_parameters_3D (struct global_data_3D *G, struct block_data_3D *bp) |
| Copy some of the global parameter values into the block parameters such as the time step, etc. | |
| int | impose_global_timestep_for_block (struct block_data_3D *bp, double dt) |
| Copy the global time-step values into the block. | |
| int | impose_chemistry_timestep_for_block (struct block_data_3D *bp, double dt) |
| Impose a specified chemistry timestep over the whole block. | |
| int | dummy_greeting (void) |
This is the place where we keep the global_data_3D structure and the service functions that provide access to it.
|
|
Calls the C-module array allocation function, once for each block. Returns total number of bytes allocated if successful, or -1 if any of the allocation requests fail. |
|
|
Returns the index of the first block for this process. This is a convenience function so that we can code loops over block the same whether for the MPI code of for the shared-memory code. |
|
||||||||||||
|
Impose a specified chemistry timestep over the whole block.
|
|
||||||||||||
|
Copy some of the global parameter values into the block parameters such as the time step, etc. It is presumed that the flow states have all been set (before setting block parameters).
|
|
||||||||||||
|
Copy the global time-step values into the block.
|
|
|
Set sensible default parameters in elmer.py (not used in elmer_main.c). These may be overwritten later. |
|
|
Returns the index of the last block for this process. This is a convenience function so that we can code loops over block the same whether for the MPI code of for the shared-memory code. |
|
||||||||||||
|
Set the limits for the range of block indices. Be sure to do this immediately after establishing the actual number of blocks in the calculation and, for MPI jobs, that this number matches the number of processors. |
1.4.4