OpenFOAM: API Guide
v2112
The open source CFD toolbox
readFluxScheme.H
Go to the documentation of this file.
1
word
fluxScheme
(
"Kurganov"
);
2
if
(
mesh
.schemesDict().readIfPresent(
"fluxScheme"
,
fluxScheme
))
3
{
4
if
((
fluxScheme
==
"Tadmor"
) || (
fluxScheme
==
"Kurganov"
))
5
{
6
Info
<<
"fluxScheme: "
<<
fluxScheme
<<
endl
;
7
}
8
else
9
{
10
FatalErrorInFunction
11
<<
"fluxScheme: "
<<
fluxScheme
12
<<
" is not a valid choice. "
13
<<
"Options are: Tadmor, Kurganov"
14
<<
abort
(
FatalError
);
15
}
16
}
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition:
Ostream.H:369
Foam::Info
messageStream Info
Information stream (stdout output on master, null elsewhere)
fluxScheme
word fluxScheme("Kurganov")
Foam::FatalError
error FatalError
mesh
dynamicFvMesh & mesh
Definition:
createDynamicFvMesh.H:6
Foam::abort
errorManip< error > abort(error &err)
Definition:
errorManip.H:144
FatalErrorInFunction
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition:
error.H:453
applications
solvers
compressible
rhoCentralFoam
readFluxScheme.H
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.