tutorials/multiphase: Removed unnecessary specification of name and dimensions for transport properties

This commit is contained in:
Henry Weller
2017-03-31 17:11:30 +01:00
parent cf0b6126d0
commit 79a050573b
32 changed files with 184 additions and 184 deletions

View File

@ -40,7 +40,7 @@ const dimensionedScalar& rho1 = mixture.rho1();
const dimensionedScalar& rho2 = mixture.rho2();
const dimensionedScalar& rho3 = mixture.rho3();
dimensionedScalar D23(mixture.lookup("D23"));
dimensionedScalar D23("D23", dimViscosity, mixture);
// Need to store rho for ddt(rho, U)
volScalarField rho

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -168,8 +168,8 @@ Foam::threePhaseInterfaceProperties::threePhaseInterfaceProperties
).lookup("cAlpha")
)
),
sigma12_(mixture.lookup("sigma12")),
sigma13_(mixture.lookup("sigma13")),
sigma12_("sigma12", dimensionSet(1, 0, -2, 0, 0), mixture),
sigma13_("sigma13", dimensionSet(1, 0, -2, 0, 0), mixture),
deltaN_
(

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -47,10 +47,10 @@ Foam::phaseChangeTwoPhaseMixtures::Kunz::Kunz
:
phaseChangeTwoPhaseMixture(typeName, U, phi),
UInf_(phaseChangeTwoPhaseMixtureCoeffs_.lookup("UInf")),
tInf_(phaseChangeTwoPhaseMixtureCoeffs_.lookup("tInf")),
Cc_(phaseChangeTwoPhaseMixtureCoeffs_.lookup("Cc")),
Cv_(phaseChangeTwoPhaseMixtureCoeffs_.lookup("Cv")),
UInf_("UInf", dimVelocity, phaseChangeTwoPhaseMixtureCoeffs_),
tInf_("tInf", dimTime, phaseChangeTwoPhaseMixtureCoeffs_),
Cc_("Cc", dimless, phaseChangeTwoPhaseMixtureCoeffs_),
Cv_("Cv", dimless, phaseChangeTwoPhaseMixtureCoeffs_),
p0_("0", pSat().dimensions(), 0.0),

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -47,10 +47,10 @@ Foam::phaseChangeTwoPhaseMixtures::Merkle::Merkle
:
phaseChangeTwoPhaseMixture(typeName, U, phi),
UInf_(phaseChangeTwoPhaseMixtureCoeffs_.lookup("UInf")),
tInf_(phaseChangeTwoPhaseMixtureCoeffs_.lookup("tInf")),
Cc_(phaseChangeTwoPhaseMixtureCoeffs_.lookup("Cc")),
Cv_(phaseChangeTwoPhaseMixtureCoeffs_.lookup("Cv")),
UInf_("UInf", dimVelocity, phaseChangeTwoPhaseMixtureCoeffs_),
tInf_("tInf", dimTime, phaseChangeTwoPhaseMixtureCoeffs_),
Cc_("Cc", dimless, phaseChangeTwoPhaseMixtureCoeffs_),
Cv_("Cv", dimless, phaseChangeTwoPhaseMixtureCoeffs_),
p0_("0", pSat().dimensions(), 0.0),

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -54,10 +54,10 @@ Foam::phaseChangeTwoPhaseMixtures::SchnerrSauer::SchnerrSauer
:
phaseChangeTwoPhaseMixture(typeName, U, phi),
n_(phaseChangeTwoPhaseMixtureCoeffs_.lookup("n")),
dNuc_(phaseChangeTwoPhaseMixtureCoeffs_.lookup("dNuc")),
Cc_(phaseChangeTwoPhaseMixtureCoeffs_.lookup("Cc")),
Cv_(phaseChangeTwoPhaseMixtureCoeffs_.lookup("Cv")),
n_("n", dimless/dimVolume, phaseChangeTwoPhaseMixtureCoeffs_),
dNuc_("dNuc", dimLength, phaseChangeTwoPhaseMixtureCoeffs_),
Cc_("Cc", dimless, phaseChangeTwoPhaseMixtureCoeffs_),
Cv_("Cv", dimless, phaseChangeTwoPhaseMixtureCoeffs_),
p0_("0", pSat().dimensions(), 0.0)
{

View File

@ -20,17 +20,17 @@ phases (phase1 phase2);
phase1
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 300;
nu 1e-06;
rho 300;
}
phase2
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-6;
rho [1 -3 0 0 0 0 0] 1027;
nu 1e-6;
rho 1027;
}
sigma [1 0 -2 0 0 0 0] 0.07;
sigma 0.07;
// ************************************************************************* //

View File

@ -17,8 +17,8 @@ FoamFile
phases (water air);
pMin [1 -1 -2 0 0 0 0] 1000;
pMin 1000;
sigma [1 0 -2 0 0 0 0] 0;
sigma 0;
// ************************************************************************* //

View File

@ -20,18 +20,18 @@ phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 998.2;
nu 1e-06;
rho 998.2;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma [1 0 -2 0 0 0 0] 0;
sigma 0;
// ************************************************************************* //

View File

@ -17,16 +17,16 @@ FoamFile
phases (water oil mercury air);
pMin [1 -1 -2 0 0 0 0] 10000;
pMin 10000;
sigmas
(
(air water) 0.07
(air oil) 0.07
(air mercury) 0.07
(water oil) 0.07
(air water) 0.07
(air oil) 0.07
(air mercury) 0.07
(water oil) 0.07
(water mercury) 0.07
(oil mercury) 0.07
(oil mercury) 0.07
);

View File

@ -20,17 +20,17 @@ phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.09e-06;
rho [1 -3 0 0 0 0 0] 998.8;
nu 1.09e-06;
rho 998.8;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma [1 0 -2 0 0 0 0] 0;
sigma 0;
// ************************************************************************* //

View File

@ -20,18 +20,18 @@ phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 998.2;
nu 1e-06;
rho 998.2;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma [1 0 -2 0 0 0 0] 0;
sigma 0;
// ************************************************************************* //

View File

@ -20,17 +20,17 @@ phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 300;
nu 1e-06;
rho 300;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-6;
rho [1 -3 0 0 0 0 0] 1027;
nu 1e-6;
rho 1027;
}
sigma [1 0 -2 0 0 0 0] 0.07;
sigma 0.07;
// ************************************************************************* //

View File

@ -20,18 +20,18 @@ phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 1000;
nu 1e-06;
rho 1000;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma [1 0 -2 0 0 0 0] 0.07;
sigma 0.07;
// ************************************************************************* //

View File

@ -20,17 +20,17 @@ phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 998.2;
nu 1e-06;
rho 998.2;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma [1 0 -2 0 0 0 0] 0.07;
sigma 0.07;
// ************************************************************************* //

View File

@ -20,17 +20,17 @@ phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 998.2;
nu 1e-06;
rho 998.2;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma [1 0 -2 0 0 0 0] 0;
sigma 0;
// ************************************************************************* //

View File

@ -20,18 +20,18 @@ phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 998.2;
nu 1e-06;
rho 998.2;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma [1 0 -2 0 0 0 0] 0;
sigma 0;
// ************************************************************************* //

View File

@ -20,17 +20,17 @@ phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 998.2;
nu 1e-06;
rho 998.2;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma [1 0 -2 0 0 0 0] 0;
sigma 0;
// ************************************************************************* //

View File

@ -20,18 +20,18 @@ phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 998.2;
nu 1e-06;
rho 998.2;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma [1 0 -2 0 0 0 0] 0;
sigma 0;
// ************************************************************************* //

View File

@ -20,17 +20,17 @@ phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 998.2;
nu 1e-06;
rho 998.2;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma [1 0 -2 0 0 0 0] 0;
sigma 0;
// ************************************************************************* //

View File

@ -20,18 +20,18 @@ phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 998.2;
nu 1e-06;
rho 998.2;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma [1 0 -2 0 0 0 0] 0;
sigma 0;
// ************************************************************************* //

View File

@ -20,17 +20,17 @@ phases (fuel air);
fuel
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 5.952e-06;
rho [1 -3 0 0 0 0 0] 840;
nu 5.952e-06;
rho 840;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 8.5e-07;
rho [1 -3 0 0 0 0 0] 20;
nu 8.5e-07;
rho 20;
}
sigma [1 0 -2 0 0 0 0] 0.0261;
sigma 0.0261;
// ************************************************************************* //

View File

@ -20,17 +20,17 @@ phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.09e-06;
rho [1 -3 0 0 0 0 0] 998.8;
nu 1.09e-06;
rho 998.8;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma [1 0 -2 0 0 0 0] 0;
sigma 0;
// ************************************************************************* //

View File

@ -20,18 +20,18 @@ phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 1000;
nu 1e-06;
rho 1000;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma [1 0 -2 0 0 0 0] 0.07;
sigma 0.07;
// ************************************************************************* //

View File

@ -20,18 +20,18 @@ phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 1000;
nu 1e-06;
rho 1000;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma [1 0 -2 0 0 0 0] 0.07;
sigma 0.07;
// ************************************************************************* //

View File

@ -20,18 +20,18 @@ phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 1000;
nu 1e-06;
rho 1000;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma [1 0 -2 0 0 0 0] 0.07;
sigma 0.07;
// ************************************************************************* //

View File

@ -20,18 +20,18 @@ phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 1000;
nu 1e-06;
rho 1000;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma [1 0 -2 0 0 0 0] 0.07;
sigma 0.07;
// ************************************************************************* //

View File

@ -20,18 +20,18 @@ phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 1000;
nu 1e-06;
rho 1000;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma [1 0 -2 0 0 0 0] 0.07;
sigma 0.07;
// ************************************************************************* //

View File

@ -20,18 +20,18 @@ phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 1000;
nu 1e-06;
rho 1000;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma [1 0 -2 0 0 0 0] 0.0707106;
sigma 0.0707106;
// ************************************************************************* //

View File

@ -20,18 +20,18 @@ phases (water oir);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-4;
rho [1 -3 0 0 0 0 0] 1000;
nu 1e-4;
rho 1000;
}
oir
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-4;
rho [1 -3 0 0 0 0 0] 500;
nu 1e-4;
rho 500;
}
sigma [1 0 -2 0 0 0 0] 0.05;
sigma 0.05;
// ************************************************************************* //

View File

@ -20,29 +20,29 @@ phases (air other water);
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
other
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-6;
rho [1 -3 0 0 0 0 0] 1010;
nu 1e-6;
rho 1010;
}
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-6;
rho [1 -3 0 0 0 0 0] 1000;
nu 1e-6;
rho 1000;
}
// Surface tension coefficients
sigma12 sigma12 [1 0 -2 0 0 0 0] 0.05;
sigma13 sigma13 [1 0 -2 0 0 0 0] 0.04;
sigma12 0.05;
sigma13 0.04;
// Diffusivity between miscible phases
D23 D23 [0 2 -1 0 0 0 0] 3e-09;
D23 3e-09;
// ************************************************************************* //

View File

@ -19,46 +19,46 @@ phases (water vapour);
phaseChangeTwoPhaseMixture SchnerrSauer;
pSat [1 -1 -2 0 0 0 0] 2300; // Saturation pressure
pSat 2300; // Saturation pressure
sigma [1 0 -2 0 0 0 0] 0.07;
sigma 0.07;
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 9e-07;
rho [1 -3 0 0 0 0 0] 1000;
nu 9e-07;
rho 1000;
}
vapour
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 4.273e-04;
rho [1 -3 0 0 0 0 0] 0.02308;
nu 4.273e-04;
rho 0.02308;
}
KunzCoeffs
{
UInf UInf [0 1 -1 0 0 0 0] 20.0;
tInf tInf [0 0 1 0 0 0 0] 0.005; // L = 0.1 m
Cc Cc [0 0 0 0 0 0 0] 1000;
Cv Cv [0 0 0 0 0 0 0] 1000;
UInf 20.0;
tInf 0.005; // L = 0.1 m
Cc 1000;
Cv 1000;
}
MerkleCoeffs
{
UInf UInf [0 1 -1 0 0 0 0] 20.0;
tInf tInf [0 0 1 0 0 0 0] 0.005; // L = 0.1 m
Cc Cc [0 0 0 0 0 0 0] 80;
Cv Cv [0 0 0 0 0 0 0] 1e-03;
UInf 20.0;
tInf 0.005; // L = 0.1 m
Cc 80;
Cv 1e-03;
}
SchnerrSauerCoeffs
{
n n [0 -3 0 0 0 0 0] 1.6e+13;
dNuc dNuc [0 1 0 0 0 0 0] 2.0e-06;
Cc Cc [0 0 0 0 0 0 0] 1;
Cv Cv [0 0 0 0 0 0 0] 1;
n 1.6e+13;
dNuc 2.0e-06;
Cc 1;
Cv 1;
}
// ************************************************************************* //

View File

@ -18,46 +18,46 @@ phases (water vapour);
phaseChangeTwoPhaseMixture SchnerrSauer;
pSat [1 -1 -2 0 0 0 0] 2300; // Saturation pressure
pSat 2300; // Saturation pressure
sigma [1 0 -2 0 0 0 0] 0.07;
sigma 0.07;
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 9e-07;
rho [1 -3 0 0 0 0 0] 1000;
transportModel Newtonian;
nu 9e-07;
rho 1000;
}
vapour
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 4.273e-04;
rho [1 -3 0 0 0 0 0] 0.02308;
transportModel Newtonian;
nu 4.273e-04;
rho 0.02308;
}
KunzCoeffs
{
UInf UInf [0 1 -1 0 0 0 0] 20.0;
tInf tInf [0 0 1 0 0 0 0] 0.005; // L = 0.1 m
Cc Cc [0 0 0 0 0 0 0] 1000;
Cv Cv [0 0 0 0 0 0 0] 1000;
UInf U20.0;
tInf t0.005; // L = 0.1 m
Cc C1000;
Cv C1000;
}
MerkleCoeffs
{
UInf UInf [0 1 -1 0 0 0 0] 20.0;
tInf tInf [0 0 1 0 0 0 0] 0.005; // L = 0.1 m
Cc Cc [0 0 0 0 0 0 0] 80;
Cv Cv [0 0 0 0 0 0 0] 1e-03;
UInf 20.0;
tInf 0.005; // L = 0.1 m
Cc 80;
Cv 1e-03;
}
SchnerrSauerCoeffs
{
n n [0 -3 0 0 0 0 0] 1.6e+13;
dNuc dNuc [0 1 0 0 0 0 0] 2.0e-06;
Cc Cc [0 0 0 0 0 0 0] 1;
Cv Cv [0 0 0 0 0 0 0] 1;
n 1.6e+13;
dNuc 2.0e-06;
Cc 1;
Cv 1;
}