16template<
typename ValueType>
29template<
typename ValueType>
38 : flux_(flux), type_(
dsl::Operator::Type::Explicit), coeffs_(1.0) {};
53 const auto exec = flux_.exec();
56 surfaceIntegrate<ValueType>(
62 this->flux_.internalVector().view(),
78 std::string
getName()
const {
return "SurfaceIntegrate"; }
const labelVector & faceCells() const
Get the field of face cells.
Represents an unstructured mesh in NeoN.
const scalarVector & cellVolumes() const
Get the field of cell volumes in the mesh.
localIdx nInternalFaces() const
Get the number of internal faces in the mesh.
const labelVector & faceNeighbour() const
Get the field of face neighbour cells.
const labelVector & faceOwner() const
Get the field of face owner cells.
const BoundaryMesh & boundaryMesh() const
Get the boundary mesh.
A class to contain the data and executors for a field and define some basic operations.
View< ValueType > view() &&=delete
A class that represents a coefficient for the NeoN dsl.
Represents a surface field in a finite volume method.
SurfaceIntegrate(const SurfaceField< ValueType > &flux)
dsl::Coeff & getCoefficient()
std::string getName() const
void explicitOperation(Vector< ValueType > &source) const
SurfaceIntegrate(const SurfaceIntegrate &surfaceIntegrate)
ValueType VectorValueType
const dsl::Coeff & getCoefficient() const
void build(const Input &)
const Executor & exec() const
dsl::Operator::Type getType() const
void surfaceIntegrate(const Executor &exec, localIdx nInternalFaces, View< const int > neighbour, View< const int > owner, View< const int > faceCells, View< const ValueType > flux, View< const scalar > v, View< ValueType > res, const dsl::Coeff operatorScaling)
std::variant< Dictionary, TokenList > Input
std::variant< SerialExecutor, CPUExecutor, GPUExecutor > Executor