7#include <Kokkos_Core.hpp>
23template<
typename ValueType>
27 std::pair<localIdx, localIdx> range
32 auto [refGradient, value, valueFraction, refValue, boundaryFaceOwners] =
views(
46 ValueType internalCellValue = iVector[boundaryFaceOwners[i]];
47 value[i] = internalCellValue;
48 valueFraction[i] = 1.0;
49 refValue[i] = internalCellValue;
50 refGradient[i] = zero<ValueType>();
57template<
typename ValueType>
65 using Base::correctBoundaryCondition;
70 : Base(mesh, dict, patchID, {.assignable =
true, .fixesValue =
false}), mesh_(mesh)
78 static std::string
name() {
return "extrapolated"; }
82 static std::string
doc() {
return "TBD"; }
84 static std::string
schema() {
return "none"; }
86 virtual std::unique_ptr<VolumeBoundaryFactory<ValueType>>
clone() const final
88 return std::make_unique<Extrapolated>(*
this);
const labelVector & faceOwners() const
Get the list of labels of owner cells of boundary faces.
A class representing a dictionary that stores key-value pairs.
Represents the domain fields for a computational domain.
const BoundaryData< ValueType > & boundaryData() const
const Executor & exec() const
const Vector< ValueType > & internalVector() const
Represents an unstructured mesh in NeoN.
const BoundaryMesh & boundaryMesh() const
Get the boundary mesh.
A template class for registering derived classes with a base class.
void extrapolateValue(Field< ValueType > &domainVector, const UnstructuredMesh &mesh, std::pair< localIdx, localIdx > range)
void parallelFor(const ExecutorType &, std::pair< localIdx, localIdx > range, const Kernel &kernel, std::string name)
auto views(Types &... args)
Unpacks all views of the passed classes.