|
| Cell (BlockLattice< T, DESCRIPTOR > &block, std::size_t iCell) |
|
Cell< T, DESCRIPTOR > | neighbor (Vector< int, DESCRIPTOR::d > c) |
|
T & | operator[] (unsigned iPop) |
| Read-write access to distribution functions.
|
|
template<typename FIELD > |
auto | getFieldPointer (FIELD field=FIELD()) |
| Return field accessor.
|
|
template<typename FIELD > |
void | setField (const FieldD< T, DESCRIPTOR, FIELD > &field) |
| Set value of FIELD from a vector.
|
|
template<typename FIELD > |
std::enable_if_t<(DESCRIPTOR::template size< FIELD >()==1), void > | setField (typename FIELD::template value_type< T > value) |
| Set value of FIELD from a scalar.
|
|
template<typename FIELD > |
void | setFieldComponent (unsigned iD, typename FIELD::template value_type< T > value) |
|
Dynamics< T, DESCRIPTOR > * | getDynamics () |
| Get a pointer to the dynamics.
|
|
void | revert () |
| Revert ("bounce-back") the distribution functions.
|
|
CellStatistic< T > | collide () |
| Apply LB collision to the cell according to local dynamics.
|
|
void | defineRho (T rho) |
| Set density on the cell.
|
|
void | defineU (const T u[descriptors::d< DESCRIPTOR >()]) |
| Set fluid velocity on the cell.
|
|
void | defineRhoU (T rho, const T u[descriptors::d< DESCRIPTOR >()]) |
| Define fluid velocity and particle density on the cell.
|
|
void | definePopulations (const T *f_) |
| Define particle populations through the dynamics object.
|
|
void | iniEquilibrium (T rho, const T u[descriptors::d< DESCRIPTOR >()]) |
| Initialize all f values to their local equilibrium.
|
|
void | iniRegularized (T rho, const T u[descriptors::d< DESCRIPTOR >()], const T pi[util::TensorVal< DESCRIPTOR >::n]) |
| Initialize all f values with local equilibrium and non equilibrium part.
|
|
| ConstCell (const BlockLattice< T, DESCRIPTOR > &block, std::size_t iCell) |
|
std::size_t | getCellId () const |
| Return memory ID of the currently represented cell.
|
|
void | setCellId (std::size_t iCell) |
| Jump to arbitrary cell memory ID.
|
|
bool | operator== (ConstCell< T, DESCRIPTOR > &rhs) const |
|
bool | operator!= (ConstCell< T, DESCRIPTOR > &rhs) const |
|
bool | operator< (ConstCell< T, DESCRIPTOR > &rhs) const |
|
bool | operator<= (ConstCell< T, DESCRIPTOR > &rhs) const |
|
ConstCell< T, DESCRIPTOR > | neighbor (Vector< int, DESCRIPTOR::d > c) const |
|
T | operator[] (unsigned iPop) const |
| Read-only access to distribution functions.
|
|
template<typename FIELD > |
auto | getFieldPointer (FIELD field=FIELD()) const |
| Return read-only field accessor.
|
|
template<typename FIELD > |
auto | getFieldComponent (unsigned iD) const |
| Return copy of field component.
|
|
template<typename FIELD > |
auto | getField (FIELD field=FIELD()) const |
| Return copy of descriptor-declared FIELD as a vector.
|
|
const Dynamics< T, DESCRIPTOR > * | getDynamics () const |
| Get a pointer to the dynamics.
|
|
template<typename FIELD > |
void | computeField (T *data) const |
| Copy FIELD content to given memory location.
|
|
T | computeRho () const |
| Compute particle density on the cell.
|
|
void | computeU (T u[descriptors::d< DESCRIPTOR >()]) const |
| Compute fluid velocity on the cell.
|
|
void | computeJ (T j[descriptors::d< DESCRIPTOR >()]) const |
| Compute fluid momentum (j = rho * u) on the cell.
|
|
void | computeStress (T pi[util::TensorVal< DESCRIPTOR >::n]) const |
| Compute components of the stress tensor on the cell.
|
|
void | computeRhoU (T &rho, T u[descriptors::d< DESCRIPTOR >()]) const |
| Compute fluid velocity and particle density on the cell.
|
|
void | computeFeq (T fEq[descriptors::q< DESCRIPTOR >()]) const |
| Compute equilibrium part of cell distribution.
|
|
void | computeFneq (T fNeq[descriptors::q< DESCRIPTOR >()]) const |
| Compute non-equilibrium part of cell distribution.
|
|
void | computeAllMomenta (T &rho, T u[descriptors::d< DESCRIPTOR >()], T pi[util::TensorVal< DESCRIPTOR >::n]) const |
| Compute all momenta on the celll, up to second order.
|
|
template<typename T, typename DESCRIPTOR>
class olb::Cell< T, DESCRIPTOR >
Highest-level interface to Cell data.
Definition at line 148 of file cell.h.