OpenFOAM
4.1
The OpenFOAM Foundation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
applications
solvers
multiphase
twoLiquidMixingFoam
alphaDiffusionEqn.H
Go to the documentation of this file.
1
{
2
fvScalarMatrix
alpha1Eqn
3
(
4
fvm::ddt
(
alpha1
)
5
-
fvc::ddt
(
alpha1
)
6
-
fvm::laplacian
7
(
8
volScalarField
(
"Dab"
, Dab + alphatab*
turbulence
->nut()),
9
alpha1
10
)
11
);
12
13
alpha1Eqn.solve();
14
15
alpha2
= 1.0 -
alpha1
;
16
rhoPhi
+= alpha1Eqn.flux()*(
rho1
-
rho2
);
17
}
18
19
rho
=
alpha1
*
rho1
+
alpha2
*
rho2
;
turbulence
autoPtr< compressible::turbulenceModel > turbulence
Definition:
createFields.H:23
alpha2
alpha2
Definition:
alphaDiffusionEqn.H:15
Foam::fvScalarMatrix
fvMatrix< scalar > fvScalarMatrix
Definition:
fvMatricesFwd.H:42
Foam::fvc::laplacian
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Definition:
fvcLaplacian.C:45
rhoPhi
rhoPhi
Definition:
alphaDiffusionEqn.H:16
rho1
rho1
Definition:
pEqn.H:114
Foam::fvc::ddt
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
Definition:
fvcDdt.C:45
Foam::volScalarField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition:
volFieldsFwd.H:52
rho2
rho2
Definition:
pEqn.H:115
alpha1
volScalarField & alpha1
Definition:
createFieldRefs.H:4
rho
rho
Definition:
alphaDiffusionEqn.H:19
Generated by
1.8.11