![]() |
AMR-Solver
1.0
Block-based Octree AMR grid flow solver
|
Template class for any scalar field variable in the domain. More...
#include <field.h>
Public Member Functions | |
Field (int N_x, int N_y, int N_z, std::string info) | |
Field () | |
Field (const Field &obj) | |
~Field () | |
void | set_field (double) |
Public Attributes | |
double *** | val |
std::string | name |
FieldBc | bc [3][2] |
Size | |
int | Nx |
int | Ny |
int | Nz |
int | N |
Template class for any scalar field variable in the domain.
Usage: Field object(nx,ny,nz); Parameters are the number of cells along x, y and z (including the padding) which usually remains same for all the blocks in the mesh. Padding represents extra layer of cells at all the sides of the block, which acts as ghost cells at the block boundaries or buffer cells at the processor boundaries. New objects of this class are defined in the constructors of Block class and the pointers to these objects are members of the Block class.
myOctree::Field::Field | ( | int | N_x, |
int | N_y, | ||
int | N_z, | ||
std::string | info | ||
) |
myOctree::Field::Field | ( | const Field & | obj | ) |
void myOctree::Field::set_field | ( | double | value | ) |
double*** myOctree::Field::val |