Home
Downloads
Documentation
Installation
User Guide
man-pages
API Documentation
README
Release Notes
Changes
License
Support
SourceForge Project
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
applications
solvers
multiphase
twoPhaseEulerFoam
liftDragCoeffs.H
Go to the documentation of this file.
1
volVectorField
Ur
=
Ua
-
Ub
;
2
volScalarField
magUr
=
mag
(
Ur
);
3
4
volScalarField
Ka
=
draga
->K(
magUr
);
5
volScalarField
K
=
Ka
;
6
7
if
(
dragPhase
==
"b"
)
8
{
9
volScalarField
Kb =
dragb
->K(
magUr
);
10
K = Kb;
11
}
12
else
if
(
dragPhase
==
"blended"
)
13
{
14
volScalarField
Kb =
dragb
->K(
magUr
);
15
K = (
beta
*
Ka
+ alpha*Kb);
16
}
17
18
volVectorField
liftCoeff
= Cl*(
beta
*
rhob
+ alpha*
rhoa
)*(
Ur
^
fvc::curl
(
U
));
19
20
// ************************ vim: set sw=4 sts=4 et: ************************ //