NeoFOAM
WIP Prototype of a modern OpenFOAM core
Loading...
Searching...
No Matches
include
NeoFOAM
finiteVolume
cellCentred
auxiliary
coNum.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: MIT
2
// SPDX-FileCopyrightText: 2024 NeoFOAM authors
3
4
#pragma once
5
6
#include <functional>
7
8
#include <Kokkos_Core.hpp>
9
10
#include "
NeoFOAM/fields/field.hpp
"
11
#include "
NeoFOAM/core/executor/executor.hpp
"
12
#include "
NeoFOAM/mesh/unstructured.hpp
"
13
#include "
NeoFOAM/finiteVolume/cellCentred.hpp
"
14
15
namespace
NeoFOAM::finiteVolume::cellCentred
16
{
17
18
/* @brief Calculates courant number from the face fluxes.
19
* @param faceFlux Scalar surface field with the flux values of all faces.
20
* @param dt Size of the time step.
21
* @return Maximum courant number.
22
*/
23
NeoFOAM::scalar
computeCoNum
(
const
SurfaceField<NeoFOAM::scalar>
& faceFlux,
const
scalar
dt);
24
25
}
// namespace NeoFOAM
cellCentred.hpp
NeoFOAM::finiteVolume::cellCentred::SurfaceField
Represents a surface field in a finite volume method.
Definition
surfaceField.hpp:26
executor.hpp
field.hpp
NeoFOAM::finiteVolume::cellCentred
Definition
fieldCollection.hpp:16
NeoFOAM::finiteVolume::cellCentred::computeCoNum
NeoFOAM::scalar computeCoNum(const SurfaceField< NeoFOAM::scalar > &faceFlux, const scalar dt)
NeoFOAM::scalar
float scalar
Definition
scalar.hpp:11
unstructured.hpp
Generated by
1.9.8