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

e_block.c File Reference

Service functions for block_data_3D structures. More...

#include <stdio.h>
#include <stdlib.h>
#include "../../util/source/useful.h"
#include "../../util/source/logfile.h"
#include "../../geometry/source/geom.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/mb_cfg.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_filter.h"
#include "./e_dynamic.h"
#include "./e_io.h"
#include "./e_block.h"
#include "./e_rrm.h"

Functions

int set_neighbour_blockId_for_face (struct block_data_3D *this_blk, int face_index, int other_blockId)
int get_neighbour_blockId_for_face (struct block_data_3D *this_blk, int face_index)
int set_neighbour_vertex (struct block_data_3D *this_blk, int face_index, int vertex_index, int other_vertex)
int get_neighbour_vertex (struct block_data_3D *this_blk, int face_index, int vertex_index)
int set_corner_vertex_location (struct block_data_3D *this_blk, int vertex_index, double x, double y, double z)
int set_edge_polyline (struct block_data_3D *this_blk, int edge_index, struct GPathPolyLine *plp, int end0, int end1, double beta)
int set_bc_index_for_boundary (struct block_data_3D *this_blk, int ibndy, int value)
int get_bc_index_for_boundary (struct block_data_3D *this_blk, int ibndy)
int set_inflow_index_for_boundary (struct block_data_3D *this_blk, int ibndy, int value)
int set_sponge_flag_for_boundary (struct block_data_3D *this_blk, int ibndy, int value)
double set_Twall_for_boundary (struct block_data_3D *this_blk, int ibndy, double value)
cell_centerget_cell_center_ptr (struct block_data_3D *this_blk, int i, int j, int k)
cell_interfaceget_ifi_ptr (struct block_data_3D *this_blk, int i, int j, int k)
cell_interfaceget_ifj_ptr (struct block_data_3D *this_blk, int i, int j, int k)
cell_interfaceget_ifk_ptr (struct block_data_3D *this_blk, int i, int j, int k)
int array_alloc_3D (struct block_data_3D *A)
 Allocate memory for the internal arrays of the block. Returns total bytes allocated if successful, -1 otherwise.
int allocate_send_and_receive_buffers_3D (struct block_data_3D *bp)
 Allocate memory for the MPI send and receive buffers.
int fill_block_flow_data_3D (struct block_data_3D *bp)
 Fill the flow field for this block with the initial flow condition.
int compute_block_geometry_data_3D (struct block_data_3D *bp)
 Compute the geometry data for each cell in this block.
int add_history_cell_to_block (struct block_data_3D *bp, int i, int j, int k)
 Add the indices for a history cell to the arrays within the block_data_3D structure.


Detailed Description

Service functions for block_data_3D structures.

Version:
17-Aug-04
Author:
PJ

Function Documentation

int add_history_cell_to_block struct block_data_3D bp,
int  i,
int  j,
int  k
 

Add the indices for a history cell to the arrays within the block_data_3D structure.

The user specifies the history cell indices as integers 1 through nni, 1 through nnj and 1 through nnk for each block.

Returns the number of history cells if successful, -1 otherwise.

int allocate_send_and_receive_buffers_3D struct block_data_3D bp  ) 
 

Allocate memory for the MPI send and receive buffers.

Parameters:
bd : a pointer to the block_data structure
Returns:
total_bytes if successful, -1 otherwise.

int array_alloc_3D struct block_data_3D A  ) 
 

Allocate memory for the internal arrays of the block. Returns total bytes allocated if successful, -1 otherwise.

Parameters:
A : a pointer to the single-block data structure

int compute_block_geometry_data_3D struct block_data_3D bp  ) 
 

Compute the geometry data for each cell in this block.

Parameters:
bp : pointer to the block_data_3D structure.

int fill_block_flow_data_3D struct block_data_3D bp  ) 
 

Fill the flow field for this block with the initial flow condition.

Parameters:
bp : pointer to the block_data_3D structure.
Todo:
Andrew, should all boundaries be checked for the SUP_OUT flow condition?

int set_neighbour_blockId_for_face struct block_data_3D this_blk,
int  face_index,
int  other_blockId
 

Accessor functions.


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