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

e_bc.h File Reference

Prototypes for functions to apply boundary conditions. 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"

Go to the source code of this file.

Functions

int apply_inviscid_bcs_to_block (struct block_data_3D *bp)
 Set up flow properties in the ghost cells for whole block.
int apply_rrm_bc_to_block (struct block_data_3D *bp, double u_rrm_read[], double v_rrm_read[], double w_rrm_read[], double T_rrm_read[], double rho_rrm_read[], double u_read[], double v_read[], double w_read[], double T_read[], double rho_read[], double delta)
 Set up flow properties in the ghost cells for RRM.
int reflect_normal_velocity_3D (struct cell_center *cell, struct cell_interface *IFace)
 Reflects normal velocity with respect to the cell interface.
int apply_inviscid_bc_east_3D (struct block_data_3D *bp)
 Set up flow properties in the ghost cells to obtain an appropriate boundary condition.
int apply_inviscid_bc_west_3D (struct block_data_3D *bp)
 Set up flow properties in the ghost cells to obtain an appropriate boundary condition.
int apply_inviscid_bc_north_3D (struct block_data_3D *bp)
 Set up flow properties in the ghost cells to obtain an appropriate boundary condition.
int apply_inviscid_bc_south_3D (struct block_data_3D *bp)
 Set up flow properties in the ghost cells to obtain an appropriate boundary condition.
int apply_inviscid_bc_top_3D (struct block_data_3D *bp)
 Set up flow properties in the ghost cells to obtain an appropriate boundary condition.
int apply_inviscid_bc_bottom_3D (struct block_data_3D *bp)
 Set up flow properties in the ghost cells to obtain an appropriate boundary condition.
int apply_viscous_bc_3D (struct block_data_3D *bp)
 Apply viscous boundary conditions to the boundary interfaces.
int subsonic_out (struct block_data_3D *bp, int time_level)
int subsonic_out_inner (struct block_data_3D *bp, int i, int j, int k, int time_level)
int subsonic_out_outer (struct block_data_3D *bp, int i, int j, int k, int time_level)
int sponge_layer (struct block_data_3D *bp)
int damping_layer (struct block_data_3D *bp)


Detailed Description

Prototypes for functions to apply boundary conditions.

Author:
PJ
Version:
August 2004 bring code over from mb_cns.

Function Documentation

int apply_inviscid_bc_bottom_3D struct block_data_3D bp  ) 
 

Set up flow properties in the ghost cells to obtain an appropriate boundary condition.

Returns 0 if no problems were detected, -1 otherwise.

Parameters:
bp : pointer to a block_data_3D structure.

int apply_inviscid_bc_east_3D struct block_data_3D bp  ) 
 

Set up flow properties in the ghost cells to obtain an appropriate boundary condition.

Returns 0 if no problems were detected, -1 otherwise.

Parameters:
bp : pointer to a block_data_3D structure.

int apply_inviscid_bc_north_3D struct block_data_3D bp  ) 
 

Set up flow properties in the ghost cells to obtain an appropriate boundary condition.

Returns 0 if no problems were detected, -1 otherwise.

Parameters:
bp : pointer to a block_data_3D structure.

int apply_inviscid_bc_south_3D struct block_data_3D bp  ) 
 

Set up flow properties in the ghost cells to obtain an appropriate boundary condition.

Returns 0 if no problems were detected, -1 otherwise.

Parameters:
bp : pointer to a block_data_3D structure.

int apply_inviscid_bc_top_3D struct block_data_3D bp  ) 
 

Set up flow properties in the ghost cells to obtain an appropriate boundary condition.

Returns 0 if no problems were detected, -1 otherwise.

Parameters:
bp : pointer to a block_data_3D structure.

int apply_inviscid_bc_west_3D struct block_data_3D bp  ) 
 

Set up flow properties in the ghost cells to obtain an appropriate boundary condition.

Returns 0 if no problems were detected, -1 otherwise.

Parameters:
bp : pointer to a block_data_3D structure.

int apply_inviscid_bcs_to_block struct block_data_3D bp  ) 
 

Set up flow properties in the ghost cells for whole block.

Returns 0 if no problems were detected, -1 otherwise.

Parameters:
bp : pointer to a block_data_3D structure.

int apply_rrm_bc_to_block struct block_data_3D bp,
double  u_rrm_read[],
double  v_rrm_read[],
double  w_rrm_read[],
double  T_rrm_read[],
double  rho_rrm_read[],
double  u_read[],
double  v_read[],
double  w_read[],
double  T_read[],
double  rho_read[],
double  delta
 

Set up flow properties in the ghost cells for RRM.

Returns 0 if no problems were detected, -1 otherwise.

Parameters:
bp : pointer to a block_data_3D structure.

int apply_viscous_bc_3D struct block_data_3D bp  ) 
 

Apply viscous boundary conditions to the boundary interfaces.

NOTE, we will assume that the inviscid flux calculation has already computed values relevant to inviscid boundary conditions.

Parameters:
bp : pointer to a block_data_3D structure

int reflect_normal_velocity_3D struct cell_center cell,
struct cell_interface IFace
 

Reflects normal velocity with respect to the cell interface.

The process is to rotate the velocity vector into the local frame of the interface, negate the normal (local x-component) velocity and rotate back to the global frame.

Parameters:
cell : pointer to a cell_center structure
IFace : pointer to a cell_interface structure


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