MaMiCo 1.2
|
defines the cell type with cell-averaged quantities only (no linked cells). More...
#include <CouplingCell.h>
Public Member Functions | |
CouplingCell () | |
virtual | ~CouplingCell () |
void | setMicroscopicMass (const double &mass) |
const double & | getMicroscopicMass () const |
void | setMicroscopicMomentum (const tarch::la::Vector< dim, double > &momentum) |
const tarch::la::Vector< dim, double > & | getMicroscopicMomentum () const |
void | setMacroscopicMass (const double &mass) |
const double & | getMacroscopicMass () const |
void | setMacroscopicMomentum (const tarch::la::Vector< dim, double > &momentum) |
const tarch::la::Vector< dim, double > & | getMacroscopicMomentum () const |
const double & | getPotentialEnergy () const |
void | setPotentialEnergy (const double &potentialEnergy) |
void | addMicroscopicMass (const double &mass) |
void | addMicroscopicMomentum (const tarch::la::Vector< dim, double > &momentum) |
void | addMacroscopicMass (const double &mass) |
void | addMacroscopicMomentum (const tarch::la::Vector< dim, double > &momentum) |
void | setCurrentVelocity (const tarch::la::Vector< dim, double > &velocity) |
const tarch::la::Vector< dim, double > & | getCurrentVelocity () const |
void | setTemperature (const double &temperature) |
const double & | getTemperature () const |
Public Attributes | |
double | _microscopicMass |
tarch::la::Vector< dim, double > | _microscopicMomentum |
double | _macroscopicMass |
tarch::la::Vector< dim, double > | _macroscopicMomentum |
double | _potentialEnergy |
double | _temperature |
tarch::la::Vector< dim, double > | _currentVelocity |
defines the cell type with cell-averaged quantities only (no linked cells).
describes a quadratic/ cubic coupling cell filled with fluid (no linked cells). Base class for the class coupling::datastructures::CouplingCellWithLinkedCells
dim | Number of dimensions; it can be 1, 2 or 3 |
|
inline |
Constructor: initialises the coupling cell with zero values.
|
inlinevirtual |
Destructor
|
inline |
adds a certain amount to the macroscopic mass
mass | Mass to be added to the macroscopic mass |
|
inline |
adds a certain amount to the macroscopic moments
momentum | Momentum to be added to the macroscopic moments |
|
inline |
adds a certain amount to the microscopic mass
mass | Mass to be added to the microscopic mass |
|
inline |
adds a certain amount to the microscopic moments
momentum | Momentum to be added to the microscopic moments |
|
inline |
returns current velocity (sampled right before any distributeX(...) call)
|
inline |
returns the microscopic mass
|
inline |
returns the microscopic moments
|
inline |
returns the microscopic mass
|
inline |
returns the microscopic moments
|
inline |
returns the mean potential energy over the coupling cell
|
inline |
returns the temperature
|
inline |
sets current velocity (sampled right before any distributeX(...) call)
velocity | velocity |
|
inline |
sets the microscopic mass
mass | Mass |
|
inline |
sets the microscopic moments
momentum | Momentum |
|
inline |
sets the microscopic mass
mass | Mass |
|
inline |
sets the microscopic moments
momentum | Momentum |
|
inline |
sets the mean potential energy over the coupling cell
potentialEnergy | potential energy |
|
inline |
sets the temperature
temperature | temperature |
tarch::la::Vector<dim, double> coupling::datastructures::CouplingCell< dim >::_currentVelocity |
buffer for current mean velocity in the cell.
double coupling::datastructures::CouplingCell< dim >::_macroscopicMass |
buffers for macroscopic mass that need to be returned from the microscopic to the macroscopic simulation
tarch::la::Vector<dim, double> coupling::datastructures::CouplingCell< dim >::_macroscopicMomentum |
buffers for macroscopic quantities of momentum that need to be returned from the microscopic to the macroscopic simulation
double coupling::datastructures::CouplingCell< dim >::_microscopicMass |
buffers for macroscopic mass that need to be transferred from the macroscopic to the microscopic simulation
tarch::la::Vector<dim, double> coupling::datastructures::CouplingCell< dim >::_microscopicMomentum |
buffers for macroscopic quantities of momentum that need to be transferred from the macroscopic to the microscopic simulation
double coupling::datastructures::CouplingCell< dim >::_potentialEnergy |
holds the mean potential energy within the coupling cell. This value is needed as a reference potential energy value for the USHER scheme.
double coupling::datastructures::CouplingCell< dim >::_temperature |
temperature within this cell. Needed for the thermostat.