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