AMR-Solver  1.0
Block-based Octree AMR grid flow solver
myOctree::VecField Class Reference

Template class for any vector field variable in the domain. More...

#include <vecfield.h>

Public Member Functions

 VecField (int N_x, int N_y, int N_z, std::string info)
 
 VecField ()
 
 VecField (const VecField &obj)
 
 ~VecField ()
 
void set_field (double)
 

Public Attributes

std::string name
 
Size
int Nx
 
int Ny
 
int Nz
 
int N
 
3D array to store x,y,z comonent of field values
double *** x
 
double *** y
 
double *** z
 
Boundary conditions
FieldBc xbc [3][2]
 
FieldBc ybc [3][2]
 
FieldBc zbc [3][2]
 

Detailed Description

Template class for any vector field variable in the domain.

x, y, z - 3d arrays for storing field variable values at the cells along x, y and z directions.

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 al l 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.

Definition at line 13 of file vecfield.h.

Constructor & Destructor Documentation

myOctree::VecField::VecField ( int  N_x,
int  N_y,
int  N_z,
std::string  info 
)

Parametrized constructor

Definition at line 5 of file vecfield.cpp.

myOctree::VecField::VecField ( )

Default constructor

Definition at line 28 of file vecfield.cpp.

myOctree::VecField::VecField ( const VecField obj)

Copy constructor

Definition at line 51 of file vecfield.cpp.

myOctree::VecField::~VecField ( )

Destructor

Definition at line 87 of file vecfield.cpp.

Member Function Documentation

void myOctree::VecField::set_field ( double  value)

Function to set the given value to the field

Definition at line 107 of file vecfield.cpp.

Member Data Documentation

int myOctree::VecField::N

Definition at line 20 of file vecfield.h.

std::string myOctree::VecField::name

Name of the field

Definition at line 31 of file vecfield.h.

int myOctree::VecField::Nx

Definition at line 19 of file vecfield.h.

int myOctree::VecField::Ny

Definition at line 19 of file vecfield.h.

int myOctree::VecField::Nz

Definition at line 19 of file vecfield.h.

double*** myOctree::VecField::x

Definition at line 25 of file vecfield.h.

FieldBc myOctree::VecField::xbc[3][2]

Definition at line 35 of file vecfield.h.

double*** myOctree::VecField::y

Definition at line 26 of file vecfield.h.

FieldBc myOctree::VecField::ybc[3][2]

Definition at line 36 of file vecfield.h.

double*** myOctree::VecField::z

Definition at line 27 of file vecfield.h.

FieldBc myOctree::VecField::zbc[3][2]

Definition at line 37 of file vecfield.h.


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