NeoFOAM
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 NeoFOAM authors
3
4#pragma once
5
9
11{
12
14{
15public:
16
17 GaussGreenGrad(const Executor& exec, const UnstructuredMesh& mesh);
18
19 // fvcc::VolumeField<Vector> grad(const fvcc::VolumeField<scalar>& phi);
20
21 void grad(const VolumeField<scalar>& phi, VolumeField<Vector>& gradPhi);
22
24
25private:
26
27 const UnstructuredMesh& mesh_;
28 SurfaceInterpolation surfaceInterpolation_;
29};
30
31} // namespace NeoFOAM
Represents an unstructured mesh in NeoFOAM.
void grad(const VolumeField< scalar > &phi, VolumeField< Vector > &gradPhi)
VolumeField< Vector > grad(const VolumeField< scalar > &phi)
GaussGreenGrad(const Executor &exec, const UnstructuredMesh &mesh)
Represents a volume field in a finite volume method.
std::variant< SerialExecutor, CPUExecutor, GPUExecutor > Executor
Definition executor.hpp:16