Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

e_kernel.h File Reference

Header file for the kernel module of the 3D flow solver Elmer. More...

Go to the source code of this file.

Data Structures

struct  global_data_3D
 Global data structure for control of the overall time-stepping. More...

Functions

int dummy_greeting (void)
block_data_3Dget_block_data_3D_ptr (int i)
 Returns a pointer to the selected block.
global_data_3Dget_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 *A)
 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 *A, 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.


Detailed Description

Header file for the kernel module of the 3D flow solver Elmer.


Function Documentation

long allocate_arrays_for_blocks void   ) 
 

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.

int first_block void   ) 
 

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.

int impose_chemistry_timestep_for_block struct block_data_3D bp,
double  dt
 

Impose a specified chemistry timestep over the whole block.

Parameters:
bp : pointer to a block_data_3D structure
dt : the specified timestep

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.

It is presumed that the flow states have all been set (before setting block parameters).

Parameters:
G : pointer to the global_data structure
A : pointer to the block_data structure
Version:
17-Aug-04 : bring over from mb_init.c

int impose_global_timestep_for_block struct block_data_3D bp,
double  dt
 

Copy the global time-step values into the block.

Parameters:
bp : pointer to a block_data_3D structure
dt : the specified timestep

int initialize_global_parameters void   ) 
 

Set sensible default parameters in elmer.py (not used in elmer_main.c).

These may be overwritten later.

int last_block void   ) 
 

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.

int set_block_range int  first,
int  last
 

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.


Generated on Tue Oct 25 10:24:12 2005 for CFCFD by  doxygen 1.4.4