NeoFOAM
WIP Prototype of a modern OpenFOAM core
Loading...
Searching...
No Matches
include
NeoFOAM
finiteVolume
cellCentred
operators
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
6
#include "
NeoFOAM/core/executor/executor.hpp
"
7
#include "
NeoFOAM/mesh/unstructured.hpp
"
8
#include "
NeoFOAM/finiteVolume/cellCentred/interpolation/surfaceInterpolation.hpp
"
9
10
namespace
NeoFOAM::finiteVolume::cellCentred
11
{
12
13
class
GaussGreenGrad
14
{
15
public
:
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
23
VolumeField<Vector>
grad
(
const
VolumeField<scalar>
& phi);
24
25
private
:
26
27
const
UnstructuredMesh
& mesh_;
28
SurfaceInterpolation
surfaceInterpolation_;
29
};
30
31
}
// namespace NeoFOAM
NeoFOAM::UnstructuredMesh
Represents an unstructured mesh in NeoFOAM.
Definition
unstructuredMesh.hpp:27
NeoFOAM::finiteVolume::cellCentred::GaussGreenGrad
Definition
gaussGreenGrad.hpp:14
NeoFOAM::finiteVolume::cellCentred::GaussGreenGrad::grad
void grad(const VolumeField< scalar > &phi, VolumeField< Vector > &gradPhi)
NeoFOAM::finiteVolume::cellCentred::GaussGreenGrad::grad
VolumeField< Vector > grad(const VolumeField< scalar > &phi)
NeoFOAM::finiteVolume::cellCentred::GaussGreenGrad::GaussGreenGrad
GaussGreenGrad(const Executor &exec, const UnstructuredMesh &mesh)
NeoFOAM::finiteVolume::cellCentred::SurfaceInterpolation
Definition
surfaceInterpolation.hpp:69
NeoFOAM::finiteVolume::cellCentred::VolumeField
Represents a volume field in a finite volume method.
Definition
volumeField.hpp:27
executor.hpp
NeoFOAM::finiteVolume::cellCentred
Definition
fieldCollection.hpp:16
NeoFOAM::Executor
std::variant< SerialExecutor, CPUExecutor, GPUExecutor > Executor
Definition
executor.hpp:16
surfaceInterpolation.hpp
unstructured.hpp
Generated by
1.9.8