NeoFOAM
WIP Prototype of a modern OpenFOAM core
|
A class that represents a coefficient for the NeoFOAM dsl. More...
#include <coeff.hpp>
Public Member Functions | |
Coeff () | |
Coeff (scalar value) | |
Coeff (scalar coeff, const Field< scalar > &field) | |
Coeff (const Field< scalar > &field) | |
KOKKOS_INLINE_FUNCTION scalar | operator[] (const size_t i) const |
bool | hasSpan () |
std::span< const scalar > | span () |
Coeff & | operator*= (scalar rhs) |
Coeff & | operator*= (const Coeff &rhs) |
A class that represents a coefficient for the NeoFOAM dsl.
This class stores a single scalar coefficient and optionally span of values. It is used to delay the evaluation of a scalar multiplication with a field to avoid the creation of a temporary field copy. It provides an indexing operator operator[]
that returns the evaluated value at the specified index.
NeoFOAM::dsl::Coeff::Coeff | ( | ) |
NeoFOAM::dsl::Coeff::Coeff | ( | scalar | value | ) |
bool NeoFOAM::dsl::Coeff::hasSpan | ( | ) |
std::span< const scalar > NeoFOAM::dsl::Coeff::span | ( | ) |