VERB_code_2.2
2
|
#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 |
Parameters_structure::BoundaryCondition | BC_parameters |
string | calculationType |
Type: constant function/constant derivative. More... | |
string | type |
Initial type: how to set up boundary conditions. (Like read from a file, etc) More... | |
vector< double > | BC_change_time |
If we change boundary conditions with time, this is the time when we need to change it. More... | |
vector< int > | BC_change_iteration |
If we change boundary conditions with time, this is the iteration when we need to change it. More... | |
vector< string > | BC_filename |
If we change boundary conditions with time, this is the filename for the new boundary condition values. More... | |
Definition at line 21 of file BoundaryConditions.h.
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.
psd2DSlice | - 2D array, slice of PSD on a boundary |
gridElement1 | - one side of the grid |
gridElement2 | - second side of the grid |
Definition at line 28 of file BoundaryConditions.cpp.
References Matrix2D< T >::AllocateMemory(), arr, calculationType, Matrix2D< T >::initialized, VF::max(), Matrix2D< T >::size_x, Matrix2D< T >::size_y, type, Parameters_structure::BoundaryCondition::type, Parameters_structure::BoundaryCondition::value, and VC::zero_f.
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)
Matrix2D<double> | psd2DSlice - 2D array, slice of PSD on a boundary |
gridElement1 | - one side of the grid |
gridElement2 | - second side of the grid |
Definition at line 92 of file BoundaryConditions.cpp.
References Matrix2D< T >::AllocateMemory(), arr, BC_change_time, BC_filename, calculationType, Output::echo(), err, Parameters_structure::BoundaryCondition::filename, Matrix2D< T >::initialized, Matrix2D< T >::name, Matrix2D< T >::size_x, Matrix2D< T >::size_y, type, Parameters_structure::BoundaryCondition::type, and Matrix2D< T >::writeToFile().
void BoundaryCondition::Update | ( | int | iteration, |
Matrix2D< double > | PSD_2D_Slice, | ||
double | time = -1 , |
||
double | dt = -1 |
||
) |
Update boundary condition for current time step
iteration | - iteration number |
PSD_2D_Slice | - 2d slice of PSD for that BC |
Definition at line 198 of file BoundaryConditions.cpp.
References arr, BC_change_time, BC_filename, Output::echo(), Matrix2D< T >::size_x, Matrix2D< T >::size_y, and type.
Matrix2D<double> BoundaryCondition::arr |
Definition at line 23 of file BoundaryConditions.h.
Parameters_structure::BoundaryCondition BoundaryCondition::BC_parameters |
Definition at line 27 of file BoundaryConditions.h.
string BoundaryCondition::calculationType |
Type: constant function/constant derivative.
Definition at line 30 of file BoundaryConditions.h.
string BoundaryCondition::type |
Initial type: how to set up boundary conditions. (Like read from a file, etc)
Definition at line 32 of file BoundaryConditions.h.
vector<double> BoundaryCondition::BC_change_time |
If we change boundary conditions with time, this is the time when we need to change it.
Definition at line 44 of file BoundaryConditions.h.
vector<int> BoundaryCondition::BC_change_iteration |
If we change boundary conditions with time, this is the iteration when we need to change it.
Definition at line 45 of file BoundaryConditions.h.
vector<string> BoundaryCondition::BC_filename |
If we change boundary conditions with time, this is the filename for the new boundary condition values.
Definition at line 46 of file BoundaryConditions.h.