NeoFOAM
WIP Prototype of a modern OpenFOAM core
Loading...
Searching...
No Matches
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
14
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 */
24
25} // namespace NeoFOAM
Represents a surface field in a finite volume method.
NeoFOAM::scalar computeCoNum(const SurfaceField< NeoFOAM::scalar > &faceFlux, const scalar dt)
float scalar
Definition scalar.hpp:11