OpenFOAM
12
The OpenFOAM Foundation
CorrectPhi.H
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
========= |
3
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
\\ / O peration | Website: https://openfoam.org
5
\\ / A nd | Copyright (C) 2015-2023 OpenFOAM Foundation
6
\\/ M anipulation |
7
-------------------------------------------------------------------------------
8
License
9
This file is part of OpenFOAM.
10
11
OpenFOAM is free software: you can redistribute it and/or modify it
12
under the terms of the GNU General Public License as published by
13
the Free Software Foundation, either version 3 of the License, or
14
(at your option) any later version.
15
16
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19
for more details.
20
21
You should have received a copy of the GNU General Public License
22
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23
24
Function
25
Foam::fv::CorrectPhi
26
27
Description
28
Flux correction functions to ensure continuity.
29
30
Required during start-up, restart, mesh-motion etc. when non-conservative
31
fluxes may adversely affect the prediction-part of the solution algorithm
32
(the part before the first pressure solution which would ensure continuity).
33
This is particularly important for VoF and other multi-phase solver in
34
which non-conservative fluxes cause unboundedness of the phase-fraction.
35
36
SourceFiles
37
CorrectPhi.C
38
39
\*---------------------------------------------------------------------------*/
40
41
#ifndef CorrectPhi_H
42
#define CorrectPhi_H
43
44
#include "
volFieldsFwd.H
"
45
#include "
surfaceFieldsFwd.H
"
46
47
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48
49
namespace
Foam
50
{
51
class
pressureReference;
52
class
nonOrthogonalSolutionControl;
53
54
namespace
fv
55
{
56
template
<
class
RAUfType>
57
void
CorrectPhi
58
(
59
surfaceScalarField
& phi,
60
const
volVectorField
&
U
,
61
const
volScalarField
&
p
,
62
const
RAUfType&
rAU
,
63
const
autoPtr<volScalarField>
& divU,
64
const
pressureReference
&
pressureReference
,
65
nonOrthogonalSolutionControl
& pcorrControl
66
);
67
68
template
<
class
RAUfType>
69
void
CorrectPhi
70
(
71
surfaceScalarField
& phi,
72
const
volScalarField
&
p
,
73
const
volScalarField
&
psi
,
74
const
RAUfType&
rAU
,
75
const
volScalarField
& divRhoU,
76
nonOrthogonalSolutionControl
& pcorrControl
77
);
78
}
79
}
80
81
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
82
83
#ifdef NoRepository
84
#include "
CorrectPhi.C
"
85
#endif
86
87
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
88
89
#endif
90
91
// ************************************************************************* //
CorrectPhi.C
Foam::GeometricField
Generic GeometricField class.
Definition:
GeometricField.H:81
Foam::autoPtr
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition:
autoPtr.H:51
Foam::nonOrthogonalSolutionControl
Non-orthogonal solution control class. Provides non-orthogonal-loop control methods.
Definition:
nonOrthogonalSolutionControl.H:53
Foam::pressureReference
Provides controls for the pressure reference in closed-volume simulations.
Definition:
pressureReference.H:51
psi
const volScalarField & psi
Definition:
createFieldRefs.H:1
rAU
volScalarField rAU(1.0/UEqn.A())
U
U
Definition:
pEqn.H:72
Foam::fv::CorrectPhi
void CorrectPhi(surfaceScalarField &phi, const volVectorField &U, const volScalarField &p, const RAUfType &rAU, const autoPtr< volScalarField > &divU, const pressureReference &pressureReference, nonOrthogonalSolutionControl &pcorrControl)
Definition:
CorrectPhi.C:43
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.H:214
fv
labelList fv(nPoints)
p
volScalarField & p
Definition:
createFieldRefs.H:4
surfaceFieldsFwd.H
volFieldsFwd.H
src
finiteVolume
cfdTools
general
correctPhi
CorrectPhi.H
Generated by
1.9.1