VERB_code_2.3
BoundaryCondition Class Reference

Holds upper and lower boundary conditions. More...

#include <BoundaryConditions.h>

Public Member Functions

void MakeBoundaryCondition (Parameters_structure::BoundaryCondition parameters, Matrix2D< double > psd2DSlice, Matrix2D< double > gridElement1, Matrix2D< double > gridElement2)
 
void LoadBoundaryCondition (Parameters_structure::BoundaryCondition parameters, Matrix2D< double > gridElement1, Matrix2D< double > gridElement2)
 
void Update (int iteration, Matrix2D< double > PSD_2D_Slice, double time=-1, double dt=-1)
 

Public Attributes

Matrix2D< double > arr
 2D matrix of boundary conditions
 
Parameters_structure::BoundaryCondition BC_parameters
 Boundary condition parameters.
 
string calculationType
 Type: constant function/constant derivative.
 
string type
 Initial type: how to set up boundary conditions. (Like read from a file, etc)
 
vector< double > BC_change_time
 If we change boundary conditions with time, this is the time when we need to change it.
 
vector< int > BC_change_iteration
 If we change boundary conditions with time, this is the iteration when we need to change it.
 
vector< string > BC_filename
 If we change boundary conditions with time, this is the filename for the new boundary condition values.
 

Detailed Description

Holds upper and lower boundary conditions.

Allows for loading, creating, and updating boundary conditions.

Definition at line 26 of file BoundaryConditions.h.

Member Function Documentation

void BoundaryCondition::LoadBoundaryCondition ( Parameters_structure::BoundaryCondition  parameters,
Matrix2D< double >  gridElement1,
Matrix2D< double >  gridElement2 
)

Load boundary conditions from file.

Here we actually fill-out 2D array of boundary conditions. (in general, 3D grid, case)

Parameters
parameters- boundary condition parameters
gridElement1- one side of the grid
gridElement2- second side of the grid

Definition at line 93 of file BoundaryConditions.cpp.

void BoundaryCondition::MakeBoundaryCondition ( Parameters_structure::BoundaryCondition  parameters,
Matrix2D< double >  psd2DSlice,
Matrix2D< double >  gridElement1,
Matrix2D< double >  gridElement2 
)

Making boundary conditions.

Fill-out 2D array of boundary conditions. (in general, 3D grid case) And save boundary condition type for future use.

Parameters
parameters- boundary condition parameters
psd2DSlice- 2D array, slice of PSD on a boundary
gridElement1- one side of the grid
gridElement2- second side of the grid

Definition at line 29 of file BoundaryConditions.cpp.

void BoundaryCondition::Update ( int  iteration,
Matrix2D< double >  PSD_2D_Slice,
double  time = -1,
double  dt = -1 
)

Update boundary condition for current time step

Parameters
iteration- iteration number
PSD_2D_Slice- 2d slice of PSD for that BC
time- total time
dt- time step

Definition at line 202 of file BoundaryConditions.cpp.


The documentation for this class was generated from the following files: