OpenLB 1.7
Loading...
Searching...
No Matches
olb::concepts::Cell Concept Reference

Full cell exposing populations, moments, dynamics and associated fields. More...

#include <concepts.h>

Concept definition

template<typename CELL>
concept olb::concepts::Cell = requires(CELL cell, typename CELL::value_t value) {
{ cell.computeRho() } -> std::convertible_to<typename CELL::value_t>;
cell.computeU(&value);
cell.computeJ(&value);
cell.computeRhoU(value, &value);
cell.computeStress(&value);
cell.computeAllMomenta(value,&value,&value);
cell.defineRho(value);
cell.defineU(&value);
cell.defineRhoU(value,&value);
cell.defineAllMomenta(value,&value,&value);
cell.inverseShiftRhoU(value,&value);
cell.definePopulations(&value);
cell.iniEquilibrium(value,&value);
cell.iniRegularized(value,&value,&value);
cell.getDynamics();
{ cell.template getField<descriptors::POPULATION>() } -> std::same_as<
>;
cell.template setField<descriptors::POPULATION>(&value);
{ cell.template getFieldComponent<descriptors::POPULATION>(0) } -> std::convertible_to<const typename CELL::value_t&>;
{ cell.template getFieldPointer<descriptors::POPULATION>()[0] } -> std::convertible_to<typename CELL::value_t>;
}
Plain old scalar vector.
Definition vector.h:47
Full cell exposing populations, moments, dynamics and associated fields.
Definition concepts.h:55
Basic cell exposing value-typed population references.
Definition concepts.h:44

Detailed Description

Full cell exposing populations, moments, dynamics and associated fields.

Definition at line 55 of file concepts.h.