17template<
typename ValueType>
26template<
typename ValueType>
36template<
typename ValueType>
45 static std::string
name() {
return "Gauss"; }
47 static std::string
doc() {
return "Gauss-Green Laplacian"; }
49 static std::string
schema() {
return "none"; }
52 : Base(exec, mesh), surfaceInterpolation_(exec, mesh, inputs),
53 faceNormalGradient_(exec, mesh, inputs) {};
62 computeLaplacianExp<ValueType>(
63 faceNormalGradient_, gamma, phi, lapPhi.
internalVector(), operatorScaling
73 std::string
name =
"laplacian(" + gamma.
name +
"," + phi.
name +
")";
82 computeLaplacianExp<ValueType>(
83 faceNormalGradient_, gamma, phi, lapPhi.
internalVector(), operatorScaling
95 computeLaplacianExp<ValueType>(faceNormalGradient_, gamma, phi, lapPhi, operatorScaling);
106 ls, gamma, phi, operatorScaling, this->getSparsityPattern(), faceNormalGradient_
110 std::unique_ptr<LaplacianOperatorFactory<ValueType>>
clone()
const override
112 return std::make_unique<GaussGreenLaplacian<ValueType>>(*this);
123template class GaussGreenLaplacian<scalar>;
124template class GaussGreenLaplacian<Vec3>;
const Vector< T > & value() const
Get the view storing the computed values from the boundary condition.
Represents an unstructured mesh in NeoN.
A class to contain the data and executors for a field and define some basic operations.
A class that represents a coefficient for the NeoN dsl.
const BoundaryData< ValueType > & boundaryData() const
Returns a const reference to the boundary field.
const Vector< ValueType > & internalVector() const
Returns a const reference to the internal field.
static std::string name()
GaussGreenLaplacian(const Executor &exec, const UnstructuredMesh &mesh, const Input &inputs)
static std::string schema()
virtual VolumeField< ValueType > laplacian(const SurfaceField< scalar > &gamma, VolumeField< ValueType > &phi, const dsl::Coeff operatorScaling) const override
virtual void laplacian(la::LinearSystem< ValueType, localIdx > &ls, const SurfaceField< scalar > &gamma, VolumeField< ValueType > &phi, const dsl::Coeff operatorScaling) override
virtual void laplacian(VolumeField< ValueType > &lapPhi, const SurfaceField< scalar > &gamma, VolumeField< ValueType > &phi, const dsl::Coeff operatorScaling) override
virtual void laplacian(Vector< ValueType > &lapPhi, const SurfaceField< scalar > &gamma, VolumeField< ValueType > &phi, const dsl::Coeff operatorScaling) override
std::unique_ptr< LaplacianOperatorFactory< ValueType > > clone() const override
Represents a surface field in a finite volume method.
Represents a volume boundary field for a cell-centered finite volume method.
Represents a volume field in a finite volume method.
A class representing a linear system of equations.
A template class for registering derived classes with a base class.
void computeLaplacianExp(const FaceNormalGradient< ValueType > &, const SurfaceField< scalar > &, VolumeField< ValueType > &, Vector< ValueType > &, const dsl::Coeff)
void computeLaplacianImpl(la::LinearSystem< ValueType, localIdx > &ls, const SurfaceField< scalar > &gamma, VolumeField< ValueType > &phi, const dsl::Coeff operatorScaling, const la::SparsityPattern &sparsityPattern, const FaceNormalGradient< ValueType > &faceNormalGradient)
std::vector< BoundaryType > createCalculatedBCs(const UnstructuredMesh &mesh)
std::variant< Dictionary, TokenList > Input
std::variant< SerialExecutor, CPUExecutor, GPUExecutor > Executor
void fill(ContType< ValueType > &cont, const std::type_identity_t< ValueType > value, std::pair< localIdx, localIdx > range={0, 0})
Fill the field with a vector value using a specific executor.