105 inline void setSize(
const int AxisNo,
const real UserSize);
182 inline void setAverage(
const int QuantityNo,
const real UserAverage);
369 inline void setGradient(
const int i,
const int j,
const real UserAverage);
446 inline real size(
const int AxisNo)
const;
1029 PGrad = UserAverage;
1077 Grads = UserAverage;
1130 return Q.
value(QuantityNo);
1194 return D.
value(QuantityNo);
1338 return Q.
value(6+AxisNo);
Matrix gradient() const
Returns the velocity gradient in matrix form.
Definition: Cell.h:1245
Vector dX
Definition: Cell.h:813
real speedOfSound() const
Returns the cell-average speed of sound.
Definition: Cell.h:1371
An object Cell contains all the informations of a cell for both multiresolution and finite volume com...
Definition: Cell.h:41
void setAverageZero()
Sets all the cell-average values to zero.
Definition: Cell.h:937
Vector average() const
Returns the cell-average value vector.
Definition: Cell.h:1136
bool isInFluid() const
Returns true if the cell is inside the fluid.
Definition: Cell.cpp:487
real tempPressure() const
Identical to the previous one for the temporary values.
Definition: Cell.cpp:117
real entropy() const
Returns the entropy (p/rho^Gamma). Does not work for MHD!
Definition: Cell.h:1379
real tempTemperature() const
Identical to the previous one for the temporary values. Does not work for MHD!
Definition: Cell.cpp:212
void setTempAverageZero()
Sets all the temmporary cell-average values to zero.
Definition: Cell.h:961
Standard class for every vector in Carmen.
Definition: Vector.h:29
Vector lowAverage() const
Returns the cell-average vector with low precision in the Runge-Kutta-Fehlberg method.
Definition: Cell.h:1168
real tempDensity() const
Identical to the previous one for the temporary values.
Definition: Cell.h:1271
real Res
Definition: Cell.h:857
real oldPressure() const
Identical to the previous one for the values at the instant n-1.
Definition: Cell.cpp:151
bool isInsideBoundary() const
Returns true if the cell is inside the boundary.
Definition: Cell.cpp:444
void setGradient(const int i, const int j, const real UserAverage)
Sets the component no. i, j of the quantity gradient to UserAverage.
Definition: Cell.h:1051
real temperature() const
Returns the cell-average temperature. Does not work for MHD!
Definition: Cell.cpp:184
real value(const int i, const int j) const
Returns the value of the component i, j.
Definition: Matrix.h:515
void setDivergence(const int QuantityNo, const real UserAverage)
Identical to void setAverage (int QuantityNo, real UserAverage), but for the divergence vector...
Definition: Cell.h:1019
void setOldAverage(const int QuantityNo, const real UserAverage)
Identical to setAverage (int QuantityNo, real UserAverage), but for the vector of the old cell-averag...
Definition: Cell.h:985
real concentration() const
Returns the cell-average concentration of the limiting reactant. Does not work for MHD! ...
Definition: Cell.h:1325
Vector tempVelocity() const
Identical to the previous one for the temporary values.
Definition: Cell.cpp:314
real density() const
Returns the cell-average density.
Definition: Cell.h:1262
Vector divergence() const
Returns the divergence vector.
Definition: Cell.h:1200
real fastSpeed(const int AxisNo) const
Returns the fast speed vector.
Definition: Cell.cpp:340
Vector size() const
Returns the vector cointaining the cell size in every direction.
Definition: Cell.h:1104
int Dimension
Definition: Parameters.cpp:74
void setZero()
Sets all the components to zero.
Definition: Matrix.cpp:127
Vector oldAverage() const
Returns the old cell-average values.
Definition: Cell.h:1184
real Gamma
Definition: Parameters.cpp:109
real volume() const
Returns the volume of the cell (length in 1D, area in 2D, volume in 3D).
Definition: Cell.cpp:363
real etaConst() const
Returns the cell-average resistivity.
Definition: Cell.h:1298
void setRes(const real UserAverage)
Set resistivity.
Definition: Cell.h:1011
Vector tempMagField() const
Identical to the previous one for the temporary values.
Definition: Cell.cpp:266
bool isOverflow() const
Return true if one of the cell-average quantities is greater than the maximum. This usually means the...
Definition: Cell.cpp:382
Vector PGrad
Definition: Cell.h:863
Matrix tempGradient() const
Identical to the previous one for the temporary values.
Definition: Cell.h:1254
real tempEnergy() const
Identical to the previous one for the temporary values.
Definition: Cell.h:1316
Matrix Grads
Definition: Cell.h:877
void setValue(const int n, const real a)
Sets the component n to value a.
Definition: Vector.h:545
Vector D
Definition: Cell.h:851
void setTempAverage(const int QuantityNo, const real UserAverage)
Identical to setAverage (int QuantityNo, real UserAverage), but for the vector of the temporary cell-...
Definition: Cell.h:945
~Cell()
Cell distructor.
Definition: Cell.cpp:61
Vector Qs
Definition: Cell.h:827
void setSize(const int AxisNo, const real UserSize)
Sets the size of the cell in the direction AxisNo to UserSize. Example:
Definition: Cell.h:888
void setTempGradient(const int i, const int j, const real UserAverage)
Identical to the previous one for the temporary values. Does not work for MHD!
Definition: Cell.h:1059
Standard class for every matrix in Carmen.
Definition: Matrix.h:28
void setLowAverage(const int QuantityNo, const real UserAverage)
Identical to setAverage (int QuantityNo, real UserAverage), but for the vector of the cell-average va...
Definition: Cell.h:969
real tempPsi() const
Identical to the previous one for the temporary values.
Definition: Cell.h:1289
Vector PsiGrad() const
Returns the PsiGrad vector.
Definition: Cell.h:1216
Vector velocity() const
Returns the cell-average velocity vector.
Definition: Cell.cpp:290
Vector Q
Definition: Cell.h:819
real pressure() const
Returns the cell-average pressure.
Definition: Cell.cpp:84
void setValue(const int i, const int j, const real a)
Sets the component i, j to value a.
Definition: Matrix.h:505
void setGradientZero()
Sets all the components of the velocity gradient to zero.
Definition: Cell.h:1084
real value(const int n) const
Returns the value of the component n.
Definition: Vector.h:565
Vector Qlow
Definition: Cell.h:837
void setPsiGrad(const int Dimension, const real UserAverage)
Identical to void setAverage (int QuantityNo, real UserAverage), but for the gradient of psi vector...
Definition: Cell.h:1002
void setDivergenceZero()
Sets all the components of the divergence vector to zero.
Definition: Cell.h:1043
Vector X
Definition: Cell.h:807
void setCenter(const int AxisNo, const real UserX)
Sets the coordinate of the cell-center in the direction AxisNo to UserX. Example: ...
Definition: Cell.h:905
Vector Qold
Definition: Cell.h:845
real psi() const
Returns the cell-average density.
Definition: Cell.h:1280
Matrix Grad
Definition: Cell.h:870
Cell()
Cell constructor.
Definition: Cell.cpp:34
Vector tempAverage() const
Returns the temporary cell-average value vector.
Definition: Cell.h:1152
real energy() const
Returns the cell-average energy per unit of volume.
Definition: Cell.h:1307
void setAverage(const int QuantityNo, const real UserAverage)
Sets the cell-average of the quantity QuantityNo to UserAverage. Example:
Definition: Cell.h:921
Vector magField() const
Returns the cell-average magnetic field vector.
Definition: Cell.cpp:243
void operator=(const Cell &C)
Defines the cell operators. It is possible to obtain the cell values as:
Definition: Cell.cpp:416
Vector center() const
Returns the cell-center position vector.
Definition: Cell.h:1120
void setZero()
Sets all the components to zero.
Definition: Vector.cpp:228
#define real
Definition: PreProcessor.h:31