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

e_exch.c File Reference

Functions to copy boundary data from one block to another. More...

#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"
#include "./e_kernel.h"
#include "./e_exch.h"

Functions

int exchange_boundary_data_serial (struct global_data_3D *gdp, int type_of_copy)
 Coordinates the filling of ghost-cell data from ADJACENT blocks in a serial calculation where all blocks are in the one data space.
int copy_into_east_boundary_3D (struct block_data_3D *bp, struct block_data_3D *bp_src, int type_of_copy)
 Do a straight copy of boundary data into the east-boundary ghost cells.
int copy_into_west_boundary_3D (struct block_data_3D *bp, struct block_data_3D *bp_src, int type_of_copy)
 Do a straight copy of boundary data into the west-boundary ghost cells.
int copy_into_north_boundary_3D (struct block_data_3D *bp, struct block_data_3D *bp_src, int type_of_copy)
 Do a straight copy of boundary data into the north-boundary ghost cells.
int copy_into_south_boundary_3D (struct block_data_3D *bp, struct block_data_3D *bp_src, int type_of_copy)
 Do a straight copy of boundary data into the south-boundary ghost cells.
int copy_into_top_boundary_3D (struct block_data_3D *bp, struct block_data_3D *bp_src, int type_of_copy)
 Do a straight copy of boundary data into the top-boundary ghost cells.
int copy_into_bottom_boundary_3D (struct block_data_3D *bp, struct block_data_3D *bp_src, int type_of_copy)
 Do a straight copy of boundary data into the bottom-boundary ghost cells.
int number_of_double_values (int bndry, int ni, int nj, int nk, int nv)
 Returns the number of double values that will be sent in the buffer.
int copy_into_send_buffer_3D (struct block_data_3D *bp, int bndry, int type_of_copy, double *send_buffer)
 Copy data into the send buffer from the appropriate boundary of the current block.
int copy_from_receive_buffer_3D (struct block_data_3D *bp, int bndry, int type_of_copy, double *receive_buffer)
 Copy data from the receive buffer into the appropriate boundary of the current block.


Detailed Description

Functions to copy boundary data from one block to another.

Author:
PJ
Version:
August 2004.

Function Documentation

int copy_from_receive_buffer_3D struct block_data_3D bp,
int  bndry,
int  type_of_copy,
double *  receive_buffer
 

Copy data from the receive buffer into the appropriate boundary of the current block.

For the moment, we shall assume that blocks are all oriented similarly so that we need not worry about the order of indices, etc.

Parameters:
bd : pointer to the target block
bndry : value specifying the block boundary
type_of_copy :

int copy_into_bottom_boundary_3D struct block_data_3D bp,
struct block_data_3D bp_src,
int  type_of_copy
 

Do a straight copy of boundary data into the bottom-boundary ghost cells.

We need to fix all of the logic later.

int copy_into_east_boundary_3D struct block_data_3D bp,
struct block_data_3D bp_src,
int  type_of_copy
 

Do a straight copy of boundary data into the east-boundary ghost cells.

We need to fix all of the logic later.

int copy_into_north_boundary_3D struct block_data_3D bp,
struct block_data_3D bp_src,
int  type_of_copy
 

Do a straight copy of boundary data into the north-boundary ghost cells.

We need to fix all of the logic later.

int copy_into_send_buffer_3D struct block_data_3D bp,
int  bndry,
int  type_of_copy,
double *  send_buffer
 

Copy data into the send buffer from the appropriate boundary of the current block.

For the moment, we shall assume that blocks are all oriented similarly so that we need not worry about the order of indices, etc.

Parameters:
bd : pointer to the source block
bndry : value specifying the source block boundary
type_of_copy : sometimes we want to copy cell geometry, other times the flow data

int copy_into_south_boundary_3D struct block_data_3D bp,
struct block_data_3D bp_src,
int  type_of_copy
 

Do a straight copy of boundary data into the south-boundary ghost cells.

We need to fix all of the logic later.

int copy_into_top_boundary_3D struct block_data_3D bp,
struct block_data_3D bp_src,
int  type_of_copy
 

Do a straight copy of boundary data into the top-boundary ghost cells.

We need to fix all of the logic later.

int copy_into_west_boundary_3D struct block_data_3D bp,
struct block_data_3D bp_src,
int  type_of_copy
 

Do a straight copy of boundary data into the west-boundary ghost cells.

We need to fix all of the logic later.


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