78 void setValue(
const int i,
const int j,
const int k,
const Vector& UserAverage);
88 Vector value(
const int i,
const int j,
const int k)
const;
99 real value(
const int i,
const int j,
const int k,
const int QuantityNo)
const;
111 real cellValue(
const int i,
const int j,
const int k,
const int QuantityNo)
const;
121 inline real density(
const int i,
const int j,
const int k)
const;
131 inline real psi(
const int i,
const int j,
const int k)
const;
141 real pressure(
const int i,
const int j,
const int k)
const;
171 inline real energy(
const int i,
const int j,
const int k)
const;
182 inline real velocity(
const int i,
const int j,
const int k,
const int AxisNo)
const;
224 inline real magField(
const int i,
const int j,
const int k,
const int AxisNo)
const;
262 void predict(
const int l,
const int i,
const int j,
const int k);
289 Vector tempValue(
const int l,
const int i,
const int j,
const int k)
const;
308 return value(i,j,k,1);
318 return value(i,j,k,6);
328 return value(i,j,k,5);
void computePointValue()
Transform cell-average values into point values.
Definition: PrintGrid.cpp:543
Standard class for every vector in Carmen.
Definition: Vector.h:29
void predict(const int l, const int i, const int j, const int k)
Predicts the cell-average values of the current grid from the values stored in the temporary ones...
Definition: PrintGrid.cpp:474
real cellValue(const int i, const int j, const int k, const int QuantityNo) const
Returns the quantity QuantityNo of the cell-average vector located at i, j, k, taking into account bo...
Definition: PrintGrid.cpp:113
real magField(const int i, const int j, const int k, const int AxisNo) const
Returns the AxisNo-th component of the cell-average velocity located at i, j, k.
Definition: PrintGrid.h:347
real pressure(const int i, const int j, const int k) const
Returns the cell-average pressure located at i, j, k.
Definition: PrintGrid.cpp:184
real velocity(const int i, const int j, const int k, const int AxisNo) const
Returns the AxisNo-th component of the cell-average velocity located at i, j, k.
Definition: PrintGrid.h:337
An object PrintGrid is a special regular grid created to write tree-structured data into an output fi...
Definition: PrintGrid.h:38
~PrintGrid()
Definition: PrintGrid.cpp:59
PrintGrid(int L)
Definition: PrintGrid.cpp:30
void refresh()
Stores the cell-average values of the current grid into temporary values, in order to compute cell-av...
Definition: PrintGrid.cpp:462
real energy(const int i, const int j, const int k) const
Returns the cell-average energy per unit of volume located at i, j, k.
Definition: PrintGrid.h:326
real psi(const int i, const int j, const int k) const
Returns the cell-average density located at i, j, k.
Definition: PrintGrid.h:316
real concentration(const int i, const int j, const int k) const
Returns the cell-average concentration of the limiting reactant, located at i, j, k...
Definition: PrintGrid.cpp:219
Vector value(const int i, const int j, const int k) const
Returns the cell-average vector located at i, j, k.
Definition: PrintGrid.cpp:86
real divergenceB(const int i, const int j, const int k) const
Returns the divergence of magnetic field B located at i, j, k.
Definition: PrintGrid.cpp:235
real temperature(const int i, const int j, const int k) const
Returns the cell-average temperature located at i, j, k.
Definition: PrintGrid.cpp:202
real density(const int i, const int j, const int k) const
Returns the cell-average density located at i, j, k.
Definition: PrintGrid.h:306
void setValue(const int i, const int j, const int k, const Vector &UserAverage)
Sets the cell-average vector located at i, j, k to UserAverage.
Definition: PrintGrid.cpp:71
real vorticity(const int i, const int j, const int k) const
Returns 0 in 1D, the scalar vorticity in 2D, the norm of the cell-average vorticity in 3D...
Definition: PrintGrid.cpp:294
#define real
Definition: PreProcessor.h:31