21template<
typename FieldValueType,
typename AssemblyType = FieldValueType>
34template<
typename FieldValueType,
typename AssemblyType = FieldValueType>
43template<
typename FieldValueType,
typename AssemblyType = FieldValueType>
46 GaussGreenLaplacian<FieldValueType, AssemblyType>>
53 static std::string
name() {
return "Gauss"; }
55 static std::string
doc() {
return "Gauss-Green Laplacian"; }
57 static std::string
schema() {
return "none"; }
60 : Base(exec, mesh), surfaceInterpolation_(exec, mesh, inputs),
61 faceNormalGradient_(exec, mesh, inputs) {};
90 std::unique_ptr<LaplacianOperatorFactory<FieldValueType, AssemblyType>>
clone()
const override
92 return std::make_unique<GaussGreenLaplacian<FieldValueType, AssemblyType>>(*this);
105extern template class GaussGreenLaplacian<scalar>;
106extern template class GaussGreenLaplacian<Vec3>;
107extern template class GaussGreenLaplacian<Vec3, scalar>;
Represents an unstructured mesh in NeoN.
An executor-aware contiguous container for numerical data with vector-style arithmetic semantics.
A class that represents a coefficient for the NeoN dsl.
std::unique_ptr< LaplacianOperatorFactory< FieldValueType, AssemblyType > > clone() const override
virtual VolumeField< FieldValueType > laplacian(const SurfaceField< scalar > &gamma, const VolumeField< FieldValueType > &phi, const dsl::Coeff coeff) const override
virtual void laplacian(Vector< FieldValueType > &lapPhi, const SurfaceField< scalar > &gamma, const VolumeField< FieldValueType > &phi, const dsl::Coeff coeff) override
static std::string name()
static std::string schema()
virtual void laplacian(VolumeField< FieldValueType > &lapPhi, const SurfaceField< scalar > &gamma, const VolumeField< FieldValueType > &phi, const dsl::Coeff coeff) override
GaussGreenLaplacian(const Executor &exec, const UnstructuredMesh &mesh, const Input &inputs)
virtual void laplacian(la::LinearSystem< AssemblyType, FieldValueType > &ls, const SurfaceField< scalar > &gamma, const VolumeField< FieldValueType > &phi, const dsl::Coeff coeff) override
Represents a surface field in a 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 computeLaplacianNonOrthCorrImpl(la::LinearSystem< AssemblyType, FieldValueType > &ls, const SurfaceField< scalar > &gamma, const VolumeField< FieldValueType > &phi, const dsl::Coeff coeff, const FaceNormalGradient< FieldValueType > &faceNormalGradient)
void computeLaplacianImplicitTransformDiagImpl(la::LinearSystem< AssemblyType, FieldValueType > &ls, const SurfaceField< scalar > &gamma, const VolumeField< FieldValueType > &phi, const dsl::Coeff operatorScaling, const FaceNormalGradient< FieldValueType > &faceNormalGradient)
std::variant< SerialExecutor, CPUExecutor, GPUExecutor > Executor
std::variant< Dictionary, TokenList > Input