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

mb_cns.h File Reference

Header file for the synchronous multiblock flow solver mb_cns.c. More...

#include "../../util/source/compiler.h"
#include "../../util/source/useful.h"
#include "../../gas_models/source/gas.h"
#include "../../flux_calc/source/flux_calc.h"
#include "cns_case_id.h"
#include "cns_work_vector.h"
#include "cns_debug_level.h"
#include "cns_cell.h"
#include "cns_block.h"
#include "cns_echo.h"
#include "cns_bc_defs.h"

Go to the source code of this file.

Data Structures

struct  neighbour
 Block-interconnection data structure. More...
struct  global_data
 Global data structure for control of the overall time-stepping. More...

Defines

#define PRINT_COUNT   20
 Number of steps between writing status message to console.
#define CFL_COUNT   10
 Number of steps between CFL (time-step checks).
#define DT_REDUCTION_FACTOR   0.2
#define ADJUST_INVALID_CELL_DATA   1
 Parameters for cell checking...
#define PREFER_COPY_FROM_LEFT   0
#define MAX_INVALID_CELLS   10
#define MB_CNS_HEADER_ALREADY_INCLUDED


Detailed Description

Header file for the synchronous multiblock flow solver mb_cns.c.


Define Documentation

#define ADJUST_INVALID_CELL_DATA   1
 

Parameters for cell checking...

When decoding the array of conserved quantities, the temperature or the density may try to go negative. If it does and ADJUST_INVALID_CELL_DATA == 1, the cell data is adjusted to make it reasonable. If PREFER_COPY_FROM_LEFT == 1 when adjusting data, the new values are obtained from the cell to the left, else the values are obtained by averaging the properties in nearby cells. These parameters affect the behaviour of function count_invalid_cells().

MAX_INVALID_CELLS is the maximum number of cells (per block) for which this event will be tolerated without too much complaint.

#define DT_REDUCTION_FACTOR   0.2
 

If an attempt at a time step fails because of invalid cells, the time step is re-attempted with a smaller time step. This reduction factor is somewhat arbitrary. A factor of 0.5 would seem to be not enough but a factor of 0.1 would seem too expensive.


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