NeoN
A framework for CFD software
Loading...
Searching...
No Matches
gaussGreenGrad.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2023 - 2025 NeoN authors
2//
3// SPDX-License-Identifier: MIT
4
5#pragma once
6
11
13{
14
16{
17public:
18
19 GaussGreenGrad(const Executor& exec, const UnstructuredMesh& mesh);
20
21 // fvcc::VolumeField<Vec3> grad(const fvcc::VolumeField<scalar>& phi);
22
23 void grad(const VolumeField<scalar>& phi, VolumeField<Vec3>& gradPhi);
24
26
27private:
28
29 const UnstructuredMesh& mesh_;
30 SurfaceInterpolation<scalar> surfaceInterpolation_;
31};
32
33} // 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:18