NeoN
WIP Prototype of a modern OpenFOAM core
Loading...
Searching...
No Matches
gaussGreenGrad.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// SPDX-FileCopyrightText: 2023 NeoN authors
3
4#pragma once
5
10
12{
13
15{
16public:
17
18 GaussGreenGrad(const Executor& exec, const UnstructuredMesh& mesh);
19
20 // fvcc::VolumeField<Vec3> grad(const fvcc::VolumeField<scalar>& phi);
21
22 void grad(const VolumeField<scalar>& phi, VolumeField<Vec3>& gradPhi);
23
25
26private:
27
28 const UnstructuredMesh& mesh_;
29 SurfaceInterpolation<scalar> surfaceInterpolation_;
30};
31
32} // namespace NeoN
Represents an unstructured mesh in NeoN.
void grad(const VolumeField< scalar > &phi, VolumeField< Vec3 > &gradPhi)
GaussGreenGrad(const Executor &exec, const UnstructuredMesh &mesh)
VolumeField< Vec3 > grad(const VolumeField< scalar > &phi)
Represents a volume field in a finite volume method.
std::variant< SerialExecutor, CPUExecutor, GPUExecutor > Executor
Definition executor.hpp:16