46#include <blitz/array.h>
61 void setInterpolationSlices();
65 blitz::Array<real, 3>
F;
88 blitz::RectDomain<3>
fCLft, fCRgt;
89 blitz::RectDomain<3> fCFrt, fCBak;
90 blitz::RectDomain<3> fCBot, fCTop;
95 blitz::Array<blitz::RectDomain<3>, 1>
fWalls;
97 blitz::Array<blitz::RectDomain<3>, 1> PcIntSlices, QvIntSlices;
98 blitz::Array<blitz::RectDomain<3>, 1> VxIntSlices, VyIntSlices, VzIntSlices;
99 blitz::Array<blitz::RectDomain<3>, 1> WxIntSlices, WyIntSlices, WzIntSlices;
101 blitz::TinyVector<int, 3> fSize;
102 blitz::TinyVector<int, 3> flBound, cuBound;
112 blitz::RectDomain<3>
shift(
int dim,
const blitz::RectDomain<3> core,
int steps);
Field class to store data and perform finite difference operations on the data.
Definition: field.h:52
blitz::RectDomain< 3 > shift(int dim, const blitz::RectDomain< 3 > core, int steps)
Function to shift a blitz RectDomain object by a given number of steps along a specified dimension.
Definition: field.cc:122
real fieldMax()
Function to extract the maximum value from the field.
Definition: field.cc:602
field & operator-=(field &a)
Overloaded operator to subtract a given field.
Definition: field.cc:649
const bool xStag
xStag, yStag and zStag are the boolean flags which specify whether the field variable is at cell-cent...
Definition: field.h:75
blitz::RectDomain< 3 > fBulk
The bulk slice is a view of the field data excluding the walls surrounding it.
Definition: field.h:83
blitz::Array< real, 3 > F
The field data is stored in this Blitz array.
Definition: field.h:65
blitz::Array< blitz::RectDomain< 3 >, 1 > fWalls
The wall slices are views of the field data showing only the wall points.
Definition: field.h:95
field(const grid &gridData, std::string fieldName, const bool xStag, const bool yStag, const bool zStag)
Constructor of the field class.
Definition: field.cc:66
blitz::RectDomain< 3 > fCore
The core slice is a view of the field data excluding the ghost points surrounding it.
Definition: field.h:79
std::string fieldName
This string is used to identify the field, and is useful in file-writing.
Definition: field.h:68
void syncData()
Function to synchronise data across all processors when performing parallel computations.
Definition: field.cc:586
field & operator+=(field &a)
Overloaded operator to add a given field.
Definition: field.cc:631
void operator=(field &a)
Overloaded operator to assign a field to the field.
Definition: field.cc:713
blitz::RectDomain< 3 > fCLft
fCLft, fCRgt, fCFrt, fCBak, fCBot, fCTop are views of the field data generated by shifting the core s...
Definition: field.h:88
Contains all the global variables related to the grid, its slices, limits, and grid derivatives used ...
Definition: grid.h:53
Class to store MPI derived datatypes for individual arrays.
Definition: mpidata.h:51
Class declaration of grid.
Class declaration of mpidata.