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