Input of dimensionedScalars: update read-construction of dimensionedScalar in applications

so that the specification of the name and dimensions are optional in property dictionaries.

Update tutorials so that the name of the dimensionedScalar property is
no longer duplicated but optional dimensions are still provided and are
checked on read.
This commit is contained in:
Henry Weller
2015-07-20 22:52:53 +01:00
parent 745e07e6b1
commit 4c21f24a8c
321 changed files with 895 additions and 1486 deletions

View File

@ -1,95 +1,99 @@
Info<< "Reading financial properties\n" << endl;
Info<< "Reading financial properties\n" << endl;
IOdictionary financialProperties
IOdictionary financialProperties
(
IOobject
(
IOobject
(
"financialProperties",
runTime.constant(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
);
"financialProperties",
runTime.constant(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
);
dimensionedScalar strike
dimensionedScalar strike
(
"strike",
dimLength,
financialProperties.lookup("strike")
);
dimensionedScalar r
(
"r",
dimless/dimTime,
financialProperties.lookup("r")
);
dimensionedScalar sigma
(
"sigma",
dimensionSet(0, 0, -0.5, 0, 0),
financialProperties.lookup("sigma")
);
dimensionedScalar sigmaSqr = sqr(sigma);
Info<< nl << "Reading field V" << endl;
volScalarField V
(
IOobject
(
financialProperties.lookup("strike")
);
"V",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);
dimensionedScalar r
surfaceVectorField Pf
(
IOobject
(
financialProperties.lookup("r")
);
"Pf",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
mesh.Cf()
);
dimensionedScalar sigma
volVectorField P
(
IOobject
(
financialProperties.lookup("sigma")
);
"P",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
mesh.C()
);
dimensionedScalar sigmaSqr = sqr(sigma);
V == max
(
P.component(Foam::vector::X) - strike,
dimensionedScalar("0", V.dimensions(), 0.0)
);
Info<< nl << "Reading field V" << endl;
volScalarField V
volScalarField delta
(
IOobject
(
IOobject
(
"V",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);
surfaceVectorField Pf
(
IOobject
(
"Pf",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
mesh.Cf()
);
volVectorField P
(
IOobject
(
"P",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
mesh.C()
);
//- V == max(strike - P.x(), dimensionedScalar("0", V.dimensions(), 0.0));
V == max
(
P.component(Foam::vector::X) - strike,
dimensionedScalar("0", V.dimensions(), 0.0)
);
volScalarField delta
(
IOobject
(
"delta",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
fvc::grad(V)().component(Foam::vector::X)
);
"delta",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
fvc::grad(V)().component(Foam::vector::X)
);

View File

@ -1,13 +1,18 @@
singlePhaseTransportModel laminarTransport(U, phi);
singlePhaseTransportModel laminarTransport(U, phi);
// Thermal expansion coefficient [1/K]
dimensionedScalar beta(laminarTransport.lookup("beta"));
// Thermal expansion coefficient [1/K]
dimensionedScalar beta
(
"beta",
dimless/dimTemperature,
laminarTransport.lookup("beta")
);
// Reference temperature [K]
dimensionedScalar TRef(laminarTransport.lookup("TRef"));
// Reference temperature [K]
dimensionedScalar TRef("TRef", dimTemperature, laminarTransport.lookup("TRef"));
// Laminar Prandtl number
dimensionedScalar Pr(laminarTransport.lookup("Pr"));
// Laminar Prandtl number
dimensionedScalar Pr("Pr", dimless, laminarTransport.lookup("Pr"));
// Turbulent Prandtl number
dimensionedScalar Prt(laminarTransport.lookup("Prt"));
// Turbulent Prandtl number
dimensionedScalar Prt("Prt", dimless, laminarTransport.lookup("Prt"));

View File

@ -1,49 +1,49 @@
Info<< "Reading field U\n" << endl;
volVectorField U
Info<< "Reading field U\n" << endl;
volVectorField U
(
IOobject
(
IOobject
(
"U",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);
Info<< "Creating face flux\n" << endl;
surfaceScalarField phi
(
IOobject
(
"phi",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
"U",
runTime.timeName(),
mesh,
dimensionedScalar("zero", mesh.Sf().dimensions()*U.dimensions(), 0.0)
);
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);
singlePhaseTransportModel laminarTransport(U, phi);
autoPtr<incompressible::RASModel> turbulence
Info<< "Creating face flux\n" << endl;
surfaceScalarField phi
(
IOobject
(
incompressible::RASModel::New(U, phi, laminarTransport)
);
"phi",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
mesh,
dimensionedScalar("zero", mesh.Sf().dimensions()*U.dimensions(), 0.0)
);
dimensionedVector Ubar(laminarTransport.lookup("Ubar"));
vector flowDirection = (Ubar/mag(Ubar)).value();
tensor flowMask = sqr(flowDirection);
singlePhaseTransportModel laminarTransport(U, phi);
dimensionedVector gradP
(
"gradP",
dimensionSet(0, 1, -2, 0, 0),
vector::zero
);
autoPtr<incompressible::RASModel> turbulence
(
incompressible::RASModel::New(U, phi, laminarTransport)
);
dimensionedVector Ubar("Ubar", dimVelocity, laminarTransport.lookup("Ubar"));
vector flowDirection = (Ubar/mag(Ubar)).value();
tensor flowMask = sqr(flowDirection);
dimensionedVector gradP
(
"gradP",
dimensionSet(0, 1, -2, 0, 0),
vector::zero
);

View File

@ -18,6 +18,8 @@
dimensionedScalar rhoInfValue
(
"rhoInf",
dimDensity,
laminarTransport.lookup("rhoInf")
);

View File

@ -1,27 +1,52 @@
Info<< "Reading thermodynamicProperties\n" << endl;
Info<< "Reading thermodynamicProperties\n" << endl;
IOdictionary thermodynamicProperties
IOdictionary thermodynamicProperties
(
IOobject
(
IOobject
(
"thermodynamicProperties",
runTime.constant(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
);
"thermodynamicProperties",
runTime.constant(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
);
dimensionedScalar psil(thermodynamicProperties.lookup("psil"));
dimensionedScalar psil
(
"psil",
dimCompressibility,
thermodynamicProperties.lookup("psil")
);
dimensionedScalar rholSat(thermodynamicProperties.lookup("rholSat"));
dimensionedScalar rholSat
(
"rholSat",
dimDensity,
thermodynamicProperties.lookup("rholSat")
);
dimensionedScalar psiv(thermodynamicProperties.lookup("psiv"));
dimensionedScalar psiv
(
"psiv",
dimCompressibility,
thermodynamicProperties.lookup("psiv")
);
dimensionedScalar pSat(thermodynamicProperties.lookup("pSat"));
dimensionedScalar pSat
(
"pSat",
dimPressure,
thermodynamicProperties.lookup("pSat")
);
dimensionedScalar rhovSat("rhovSat", psiv*pSat);
dimensionedScalar rhovSat("rhovSat", psiv*pSat);
dimensionedScalar rhol0("rhol0", rholSat - pSat*psil);
dimensionedScalar rhol0("rhol0", rholSat - pSat*psil);
dimensionedScalar rhoMin(thermodynamicProperties.lookup("rhoMin"));
dimensionedScalar rhoMin
(
"rhoMin",
dimDensity,
thermodynamicProperties.lookup("rhoMin")
);

View File

@ -46,7 +46,7 @@ volScalarField rho
mixture.rho()
);
dimensionedScalar pMin(mixture.lookup("pMin"));
dimensionedScalar pMin("pMin", dimPressure, mixture.lookup("pMin"));
mesh.setFluxRequired(p_rgh.name());

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -152,9 +152,9 @@ Foam::incompressibleThreePhaseMixture::incompressibleThreePhaseMixture
)
),
rho1_(nuModel1_->viscosityProperties().lookup("rho")),
rho2_(nuModel2_->viscosityProperties().lookup("rho")),
rho3_(nuModel3_->viscosityProperties().lookup("rho"))
rho1_("rho", dimDensity, nuModel1_->viscosityProperties().lookup("rho")),
rho2_("rho", dimDensity, nuModel2_->viscosityProperties().lookup("rho")),
rho3_("rho", dimDensity, nuModel3_->viscosityProperties().lookup("rho"))
{
alpha3_ == 1.0 - alpha1_ - alpha2_;
calcNu();

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -44,7 +44,7 @@ Foam::phaseChangeTwoPhaseMixture::phaseChangeTwoPhaseMixture
:
incompressibleTwoPhaseMixture(U, phi),
phaseChangeTwoPhaseMixtureCoeffs_(subDict(type + "Coeffs")),
pSat_(lookup("pSat"))
pSat_("pSat", dimPressure, lookup("pSat"))
{}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -59,7 +59,7 @@ Foam::phase::phase
phi
)
),
rho_(phaseDict_.lookup("rho"))
rho_("rho", dimDensity, phaseDict_.lookup("rho"))
{}

View File

@ -37,10 +37,10 @@ volScalarField& alpha2(mixture.alpha2());
const dimensionedScalar& rho1 = mixture.rho1();
const dimensionedScalar& rho2 = mixture.rho2();
dimensionedScalar Dab(mixture.lookup("Dab"));
dimensionedScalar Dab("Dab", dimViscosity, mixture.lookup("Dab"));
// Read the reciprocal of the turbulent Schmidt number
dimensionedScalar alphatab(mixture.lookup("alphatab"));
dimensionedScalar alphatab("alphatab", dimless, mixture.lookup("alphatab"));
// Need to store rho for ddt(rho, U)
volScalarField rho("rho", alpha1*rho1 + alpha2*rho2);

View File

@ -16,38 +16,38 @@ FoamFile
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1.5e-05;
nu [0 2 -1 0 0 0 0] 1.5e-05;
BirdCarreauCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-05;
m m [ 0 0 1 0 0 0 0 ] 1;
n n [ 0 0 0 0 0 0 0 ] 0.5;
nu0 [0 2 -1 0 0 0 0] 1e-03;
nuInf [0 2 -1 0 0 0 0] 1e-05;
m [0 0 1 0 0 0 0] 1;
n [0 0 0 0 0 0 0] 0.5;
}
CrossPowerLawCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-05;
m m [ 0 0 1 0 0 0 0 ] 1;
n n [ 0 0 0 0 0 0 0 ] 0.5;
nu0 [0 2 -1 0 0 0 0] 1e-03;
nuInf [0 2 -1 0 0 0 0] 1e-05;
m [0 0 1 0 0 0 0] 1;
n [0 0 0 0 0 0 0] 0.5;
}
powerLawCoeffs
{
nuMax nuMax [ 0 2 -1 0 0 0 0 ] 1e-03;
nuMin nuMin [ 0 2 -1 0 0 0 0 ] 1e-05;
k k [ 0 2 -1 0 0 0 0 ] 1e-05;
n n [ 0 0 0 0 0 0 0 ] 1;
nuMax [0 2 -1 0 0 0 0] 1e-03;
nuMin [0 2 -1 0 0 0 0] 1e-05;
k [0 2 -1 0 0 0 0] 1e-05;
n [0 0 0 0 0 0 0] 1;
}
HerschelBulkleyCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03;
tau0 tau0 [ 0 2 -2 0 0 0 0 ] 1;
k k [ 0 2 -1 0 0 0 0 ] 1e-05;
n n [ 0 0 0 0 0 0 0 ] 1;
nu0 [0 2 -1 0 0 0 0] 1e-03;
tau0 [0 2 -2 0 0 0 0] 1;
k [0 2 -1 0 0 0 0] 1e-05;
n [0 0 0 0 0 0 0] 1;
}
// ************************************************************************* //

View File

@ -16,38 +16,38 @@ FoamFile
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1.5e-05;
nu [0 2 -1 0 0 0 0] 1.5e-05;
BirdCarreauCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-05;
m m [ 0 0 1 0 0 0 0 ] 1;
n n [ 0 0 0 0 0 0 0 ] 0.5;
nu0 [0 2 -1 0 0 0 0] 1e-03;
nuInf [0 2 -1 0 0 0 0] 1e-05;
m [0 0 1 0 0 0 0] 1;
n [0 0 0 0 0 0 0] 0.5;
}
CrossPowerLawCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-05;
m m [ 0 0 1 0 0 0 0 ] 1;
n n [ 0 0 0 0 0 0 0 ] 0.5;
nu0 [0 2 -1 0 0 0 0] 1e-03;
nuInf [0 2 -1 0 0 0 0] 1e-05;
m [0 0 1 0 0 0 0] 1;
n [0 0 0 0 0 0 0] 0.5;
}
powerLawCoeffs
{
nuMax nuMax [ 0 2 -1 0 0 0 0 ] 1e-03;
nuMin nuMin [ 0 2 -1 0 0 0 0 ] 1e-05;
k k [ 0 2 -1 0 0 0 0 ] 1e-05;
n n [ 0 0 0 0 0 0 0 ] 1;
nuMax [0 2 -1 0 0 0 0] 1e-03;
nuMin [0 2 -1 0 0 0 0] 1e-05;
k [0 2 -1 0 0 0 0] 1e-05;
n [0 0 0 0 0 0 0] 1;
}
HerschelBulkleyCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03;
tau0 tau0 [ 0 2 -2 0 0 0 0 ] 1;
k k [ 0 2 -1 0 0 0 0 ] 1e-05;
n n [ 0 0 0 0 0 0 0 ] 1;
nu0 [0 2 -1 0 0 0 0] 1e-03;
tau0 [0 2 -2 0 0 0 0] 1;
k [0 2 -1 0 0 0 0] 1e-05;
n [0 0 0 0 0 0 0] 1;
}
// ************************************************************************* //

View File

@ -16,38 +16,38 @@ FoamFile
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1.5e-05;
nu [0 2 -1 0 0 0 0] 1.5e-05;
BirdCarreauCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-05;
m m [ 0 0 1 0 0 0 0 ] 1;
n n [ 0 0 0 0 0 0 0 ] 0.5;
nu0 [0 2 -1 0 0 0 0] 1e-03;
nuInf [0 2 -1 0 0 0 0] 1e-05;
m [0 0 1 0 0 0 0] 1;
n [0 0 0 0 0 0 0] 0.5;
}
CrossPowerLawCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-05;
m m [ 0 0 1 0 0 0 0 ] 1;
n n [ 0 0 0 0 0 0 0 ] 0.5;
nu0 [0 2 -1 0 0 0 0] 1e-03;
nuInf [0 2 -1 0 0 0 0] 1e-05;
m [0 0 1 0 0 0 0] 1;
n [0 0 0 0 0 0 0] 0.5;
}
powerLawCoeffs
{
nuMax nuMax [ 0 2 -1 0 0 0 0 ] 1e-03;
nuMin nuMin [ 0 2 -1 0 0 0 0 ] 1e-05;
k k [ 0 2 -1 0 0 0 0 ] 1e-05;
n n [ 0 0 0 0 0 0 0 ] 1;
nuMax [0 2 -1 0 0 0 0] 1e-03;
nuMin [0 2 -1 0 0 0 0] 1e-05;
k [0 2 -1 0 0 0 0] 1e-05;
n [0 0 0 0 0 0 0] 1;
}
HerschelBulkleyCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03;
tau0 tau0 [ 0 2 -2 0 0 0 0 ] 1;
k k [ 0 2 -1 0 0 0 0 ] 1e-05;
n n [ 0 0 0 0 0 0 0 ] 1;
nu0 [0 2 -1 0 0 0 0] 1e-03;
tau0 [0 2 -2 0 0 0 0] 1;
k [0 2 -1 0 0 0 0] 1e-05;
n [0 0 0 0 0 0 0] 1;
}
// ************************************************************************* //

View File

@ -16,38 +16,38 @@ FoamFile
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1.5e-05;
nu [0 2 -1 0 0 0 0] 1.5e-05;
BirdCarreauCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-05;
m m [ 0 0 1 0 0 0 0 ] 1;
n n [ 0 0 0 0 0 0 0 ] 0.5;
nu0 [0 2 -1 0 0 0 0] 1e-03;
nuInf [0 2 -1 0 0 0 0] 1e-05;
m [0 0 1 0 0 0 0] 1;
n [0 0 0 0 0 0 0] 0.5;
}
CrossPowerLawCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-05;
m m [ 0 0 1 0 0 0 0 ] 1;
n n [ 0 0 0 0 0 0 0 ] 0.5;
nu0 [0 2 -1 0 0 0 0] 1e-03;
nuInf [0 2 -1 0 0 0 0] 1e-05;
m [0 0 1 0 0 0 0] 1;
n [0 0 0 0 0 0 0] 0.5;
}
powerLawCoeffs
{
nuMax nuMax [ 0 2 -1 0 0 0 0 ] 1e-03;
nuMin nuMin [ 0 2 -1 0 0 0 0 ] 1e-05;
k k [ 0 2 -1 0 0 0 0 ] 1e-05;
n n [ 0 0 0 0 0 0 0 ] 1;
nuMax [0 2 -1 0 0 0 0] 1e-03;
nuMin [0 2 -1 0 0 0 0] 1e-05;
k [0 2 -1 0 0 0 0] 1e-05;
n [0 0 0 0 0 0 0] 1;
}
HerschelBulkleyCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03;
tau0 tau0 [ 0 2 -2 0 0 0 0 ] 1;
k k [ 0 2 -1 0 0 0 0 ] 1e-05;
n n [ 0 0 0 0 0 0 0 ] 1;
nu0 [0 2 -1 0 0 0 0] 1e-03;
tau0 [0 2 -2 0 0 0 0] 1;
k [0 2 -1 0 0 0 0] 1e-05;
n [0 0 0 0 0 0 0] 1;
}
// ************************************************************************* //

View File

@ -193,6 +193,7 @@ const dimensionSet dimEnergy(dimForce*dimLength);
const dimensionSet dimPower(dimEnergy/dimTime);
const dimensionSet dimPressure(dimForce/dimArea);
const dimensionSet dimCompressibility(dimDensity/dimPressure);
const dimensionSet dimGasConstant(dimEnergy/dimMass/dimTemperature);
const dimensionSet dimSpecificHeatCapacity(dimGasConstant);
const dimensionSet dimViscosity(dimArea/dimTime);

View File

@ -69,6 +69,7 @@ extern const dimensionSet dimPower;
extern const dimensionSet dimVelocity;
extern const dimensionSet dimAcceleration;
extern const dimensionSet dimPressure;
extern const dimensionSet dimCompressibility;
extern const dimensionSet dimGasConstant;
extern const dimensionSet dimSpecificHeatCapacity;
extern const dimensionSet dimViscosity;

View File

@ -226,7 +226,12 @@ void alphatJayatillekeWallFunctionFvPatchScalarField::updateCoeffs()
// Molecular Prandtl number
const scalar Pr
(
dimensionedScalar(transportProperties.lookup("Pr")).value()
dimensionedScalar
(
"Pr",
dimless,
transportProperties.lookup("Pr")
).value()
);
// Populate boundary values

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -52,10 +52,30 @@ Foam::compressibilityModels::Chung::Chung
)
:
barotropicCompressibilityModel(compressibilityProperties, gamma, psiName),
psiv_(compressibilityProperties_.lookup("psiv")),
psil_(compressibilityProperties_.lookup("psil")),
rhovSat_(compressibilityProperties_.lookup("rhovSat")),
rholSat_(compressibilityProperties_.lookup("rholSat"))
psiv_
(
"psiv",
dimCompressibility,
compressibilityProperties_.lookup("psiv")
),
psil_
(
"psil",
dimCompressibility,
compressibilityProperties_.lookup("psil")
),
rhovSat_
(
"rhovSat",
dimDensity,
compressibilityProperties_.lookup("rhovSat")
),
rholSat_
(
"rholSat",
dimDensity,
compressibilityProperties_.lookup("rholSat")
)
{
correct();
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -52,10 +52,30 @@ Foam::compressibilityModels::Wallis::Wallis
)
:
barotropicCompressibilityModel(compressibilityProperties, gamma, psiName),
psiv_(compressibilityProperties_.lookup("psiv")),
psil_(compressibilityProperties_.lookup("psil")),
rhovSat_(compressibilityProperties_.lookup("rhovSat")),
rholSat_(compressibilityProperties_.lookup("rholSat"))
psiv_
(
"psiv",
dimCompressibility,
compressibilityProperties_.lookup("psiv")
),
psil_
(
"psil",
dimCompressibility,
compressibilityProperties_.lookup("psil")
),
rhovSat_
(
"rhovSat",
dimDensity,
compressibilityProperties_.lookup("rhovSat")
),
rholSat_
(
"rholSat",
dimDensity,
compressibilityProperties_.lookup("rholSat")
)
{
correct();
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -52,8 +52,18 @@ Foam::compressibilityModels::linear::linear
)
:
barotropicCompressibilityModel(compressibilityProperties, gamma, psiName),
psiv_(compressibilityProperties_.lookup("psiv")),
psil_(compressibilityProperties_.lookup("psil"))
psiv_
(
"psiv",
dimCompressibility,
compressibilityProperties_.lookup("psiv")
),
psil_
(
"psil",
dimCompressibility,
compressibilityProperties_.lookup("psil")
)
{
correct();
psi_.oldTime();

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -68,10 +68,10 @@ Foam::viscosityModels::BirdCarreau::BirdCarreau
:
viscosityModel(name, viscosityProperties, U, phi),
BirdCarreauCoeffs_(viscosityProperties.subDict(typeName + "Coeffs")),
nu0_(BirdCarreauCoeffs_.lookup("nu0")),
nuInf_(BirdCarreauCoeffs_.lookup("nuInf")),
k_(BirdCarreauCoeffs_.lookup("k")),
n_(BirdCarreauCoeffs_.lookup("n")),
nu0_("nu0", dimViscosity, BirdCarreauCoeffs_.lookup("nu0")),
nuInf_("nuInf", dimViscosity, BirdCarreauCoeffs_.lookup("nuInf")),
k_("k", dimTime, BirdCarreauCoeffs_.lookup("k")),
n_("n", dimless, BirdCarreauCoeffs_.lookup("n")),
a_
(
BirdCarreauCoeffs_.lookupOrDefault

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -66,10 +66,10 @@ Foam::viscosityModels::CrossPowerLaw::CrossPowerLaw
:
viscosityModel(name, viscosityProperties, U, phi),
CrossPowerLawCoeffs_(viscosityProperties.subDict(typeName + "Coeffs")),
nu0_(CrossPowerLawCoeffs_.lookup("nu0")),
nuInf_(CrossPowerLawCoeffs_.lookup("nuInf")),
m_(CrossPowerLawCoeffs_.lookup("m")),
n_(CrossPowerLawCoeffs_.lookup("n")),
nu0_("nu0", dimViscosity, CrossPowerLawCoeffs_.lookup("nu0")),
nuInf_("nuInf", dimViscosity, CrossPowerLawCoeffs_.lookup("nuInf")),
m_("m", dimTime, CrossPowerLawCoeffs_.lookup("m")),
n_("n", dimless, CrossPowerLawCoeffs_.lookup("n")),
nu_
(
IOobject

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -55,16 +55,6 @@ Foam::viscosityModels::HerschelBulkley::calcNu() const
tmp<volScalarField> sr(strainRate());
// return
// (
// min
// (
// nu0_,
// (tau0_ + k_*rtone*(pow(tone*sr(), n_) - pow(tone*tau0_/nu0_, n_)))
// /max(sr(), dimensionedScalar("VSMALL", dimless/dimTime, VSMALL))
// )
// );
return
(
min
@ -89,10 +79,10 @@ Foam::viscosityModels::HerschelBulkley::HerschelBulkley
:
viscosityModel(name, viscosityProperties, U, phi),
HerschelBulkleyCoeffs_(viscosityProperties.subDict(typeName + "Coeffs")),
k_(HerschelBulkleyCoeffs_.lookup("k")),
n_(HerschelBulkleyCoeffs_.lookup("n")),
tau0_(HerschelBulkleyCoeffs_.lookup("tau0")),
nu0_(HerschelBulkleyCoeffs_.lookup("nu0")),
k_("k", dimViscosity, HerschelBulkleyCoeffs_.lookup("k")),
n_("n", dimless, HerschelBulkleyCoeffs_.lookup("n")),
tau0_("tau0", dimViscosity/dimTime, HerschelBulkleyCoeffs_.lookup("tau0")),
nu0_("nu0", dimViscosity, HerschelBulkleyCoeffs_.lookup("nu0")),
nu_
(
IOobject

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -82,10 +82,10 @@ Foam::viscosityModels::powerLaw::powerLaw
:
viscosityModel(name, viscosityProperties, U, phi),
powerLawCoeffs_(viscosityProperties.subDict(typeName + "Coeffs")),
k_(powerLawCoeffs_.lookup("k")),
n_(powerLawCoeffs_.lookup("n")),
nuMin_(powerLawCoeffs_.lookup("nuMin")),
nuMax_(powerLawCoeffs_.lookup("nuMax")),
k_("k", dimViscosity, powerLawCoeffs_.lookup("k")),
n_("n", dimless, powerLawCoeffs_.lookup("n")),
nuMin_("nuMin", dimViscosity, powerLawCoeffs_.lookup("nuMin")),
nuMax_("nuMax", dimViscosity, powerLawCoeffs_.lookup("nuMax")),
nu_
(
IOobject

View File

@ -167,7 +167,7 @@ Foam::interfaceProperties::interfaceProperties
alpha1.mesh().solverDict(alpha1.name()).lookup("cAlpha")
)
),
sigma_(dict.lookup("sigma")),
sigma_("sigma", dimensionSet(1, 0, -2, 0, 0), dict.lookup("sigma")),
deltaN_
(

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -2 0 0 0 0 ];
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
nu nu [ 0 2 -1 0 0 0 0 ] 0.025;
nu [0 2 -1 0 0 0 0] 0.025;
// ************************************************************************* //

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
DT DT [ 0 2 -1 0 0 0 0 ] 4e-05;
DT DT [0 2 -1 0 0 0 0] 4e-05;
// ************************************************************************* //

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
DT DT [ 0 2 -1 0 0 0 0 ] 0.01;
DT DT [0 2 -1 0 0 0 0] 0.01;
// ************************************************************************* //

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 -1 0 0 0 0 0 ];
dimensions [0 -1 0 0 0 0 0];
internalField nonuniform List<scalar>
8025

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 0 0 0 0 0 0 ];
dimensions [0 0 0 0 0 0 0];
internalField nonuniform List<symmTensor>
8025

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 -1 0 0 0 0 0 ];
dimensions [0 -1 0 0 0 0 0];
internalField nonuniform List<symmTensor>
8025

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 -1 0 0 0 0 0 ];
dimensions [0 -1 0 0 0 0 0];
internalField nonuniform List<symmTensor>
8025

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 1 0 0 0 0 0 ];
dimensions [0 1 0 0 0 0 0];
internalField nonuniform List<scalar>
8025

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 0 0 0 0 0 0 ];
dimensions [0 0 0 0 0 0 0];
internalField nonuniform List<scalar>
8025

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 1 -1 0 0 0 0 ];
dimensions [0 1 -1 0 0 0 0];
internalField uniform 0.5;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 0 0 1 0 0 0 ];
dimensions [0 0 0 1 0 0 0];
internalField uniform 300;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 0 0 1 0 0 0 ];
dimensions [0 0 0 1 0 0 0];
internalField uniform 300;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 1 -1 0 0 0 0 ];
dimensions [0 1 -1 0 0 0 0];
internalField uniform ( 0 0 0 );

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 0 0 0 0 0 0 ];
dimensions [0 0 0 0 0 0 0];
internalField uniform 1;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 0 0 0 0 0 0 ];
dimensions [0 0 0 0 0 0 0];
internalField uniform 1;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 0 0 0 0 0 0 ];
dimensions [0 0 0 0 0 0 0];
internalField nonuniform List<scalar>
8025

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -3 0 0 0 0 ];
dimensions [0 2 -3 0 0 0 0];
internalField uniform 0.1;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 0 0 0 0 0 0 ];
dimensions [0 0 0 0 0 0 0];
internalField uniform 0.0623;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -2 0 0 0 0 ];
dimensions [0 2 -2 0 0 0 0];
internalField uniform 1.5;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -2 0 0 0 0 ];
dimensions [0 2 -2 0 0 0 0];
internalField uniform 1.5;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 0 0 0 0 0 0 ];
dimensions [0 0 0 0 0 0 0];
internalField nonuniform List<symmTensor>
8025

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 1 -1 -2 0 0 0 0 ];
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 100000;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -3 0 0 0 0 ];
dimensions [0 2 -3 0 0 0 0];
internalField uniform 375;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -2 0 0 0 0 ];
dimensions [0 2 -2 0 0 0 0];
internalField uniform 1.5;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -1 0 0 0 0 ];
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;

View File

@ -19,21 +19,21 @@ laminarFlameSpeedCorrelation Gulders;
fuel Propane;
Su Su [ 0 1 -1 0 0 0 0 ] 0.434;
Su Su [0 1 -1 0 0 0 0] 0.434;
SuModel unstrained;
equivalenceRatio equivalenceRatio [ 0 0 0 0 0 0 0 ] 1;
equivalenceRatio equivalenceRatio [0 0 0 0 0 0 0] 1;
sigmaExt sigmaExt [ 0 0 -1 0 0 0 0 ] 100000;
sigmaExt sigmaExt [0 0 -1 0 0 0 0] 100000;
XiModel transport;
XiCoef XiCoef [ 0 0 0 0 0 0 0 ] 0.62;
XiCoef XiCoef [0 0 0 0 0 0 0] 0.62;
XiShapeCoef XiShapeCoef [ 0 0 0 0 0 0 0 ] 1;
XiShapeCoef XiShapeCoef [0 0 0 0 0 0 0] 1;
uPrimeCoef uPrimeCoef [ 0 0 0 0 0 0 0 ] 1;
uPrimeCoef uPrimeCoef [0 0 0 0 0 0 0] 1;
GuldersCoeffs
{
@ -113,11 +113,11 @@ ignitionSites
ignitionSphereFraction 1;
ignitionThickness ignitionThickness [ 0 1 0 0 0 0 0 ] 0.001;
ignitionThickness ignitionThickness [0 1 0 0 0 0 0] 0.001;
ignitionCircleFraction 0.5;
ignitionKernelArea ignitionKernelArea [ 0 2 0 0 0 0 0 ] 0.001;
ignitionKernelArea ignitionKernelArea [0 2 0 0 0 0 0] 0.001;
// ************************************************************************* //

View File

@ -26,7 +26,7 @@ thermoType
energy absoluteEnthalpy;
}
stoichiometricAirFuelMassRatio stoichiometricAirFuelMassRatio [ 0 0 0 0 0 0 0 ] 15.675;
stoichiometricAirFuelMassRatio stoichiometricAirFuelMassRatio [0 0 0 0 0 0 0] 15.675;
reactants
{

View File

@ -26,7 +26,7 @@ thermoType
energy absoluteEnthalpy;
}
stoichiometricAirFuelMassRatio stoichiometricAirFuelMassRatio [ 0 0 0 0 0 0 0 ] 34.074;
stoichiometricAirFuelMassRatio stoichiometricAirFuelMassRatio [0 0 0 0 0 0 0] 34.074;
reactants
{

View File

@ -19,21 +19,21 @@ laminarFlameSpeedCorrelation Gulders;
fuel IsoOctane;
Su Su [ 0 1 -1 0 0 0 0 ] 0;
Su Su [0 1 -1 0 0 0 0] 0;
SuModel unstrained;
equivalenceRatio equivalenceRatio [ 0 0 0 0 0 0 0 ] 1;
equivalenceRatio equivalenceRatio [0 0 0 0 0 0 0] 1;
sigmaExt sigmaExt [ 0 0 -1 0 0 0 0 ] 100000;
sigmaExt sigmaExt [0 0 -1 0 0 0 0] 100000;
XiModel transport;
XiCoef XiCoef [ 0 0 0 0 0 0 0 ] 0.62;
XiCoef XiCoef [0 0 0 0 0 0 0] 0.62;
XiShapeCoef XiShapeCoef [ 0 0 0 0 0 0 0 ] 1;
XiShapeCoef XiShapeCoef [0 0 0 0 0 0 0] 1;
uPrimeCoef uPrimeCoef [ 0 0 0 0 0 0 0 ] 1;
uPrimeCoef uPrimeCoef [0 0 0 0 0 0 0] 1;
GuldersCoeffs
{
@ -83,11 +83,11 @@ ignitionSites
ignitionSphereFraction 1;
ignitionThickness ignitionThickness [ 0 1 0 0 0 0 0 ] 0;
ignitionThickness ignitionThickness [0 1 0 0 0 0 0] 0;
ignitionCircleFraction 1;
ignitionKernelArea ignitionKernelArea [ 0 2 0 0 0 0 0 ] 0;
ignitionKernelArea ignitionKernelArea [0 2 0 0 0 0 0] 0;
// ************************************************************************* //

View File

@ -17,15 +17,15 @@ FoamFile
engineMesh layered;
conRodLength conRodLength [ 0 1 0 0 0 0 0 ] 0.147;
conRodLength conRodLength [0 1 0 0 0 0 0] 0.147;
bore bore [ 0 1 0 0 0 0 0 ] 0.092;
bore bore [0 1 0 0 0 0 0] 0.092;
stroke stroke [ 0 1 0 0 0 0 0 ] 0.08423;
stroke stroke [0 1 0 0 0 0 0] 0.08423;
clearance clearance [ 0 1 0 0 0 0 0 ] 0.00115;
clearance clearance [0 1 0 0 0 0 0] 0.00115;
rpm rpm [ 0 0 -1 0 0 0 0 ] 1500;
rpm rpm [0 0 -1 0 0 0 0] 1500;
// ************************************************************************* //

View File

@ -27,7 +27,7 @@ thermoType
//energy absoluteInternalEnergy;
}
stoichiometricAirFuelMassRatio stoichiometricAirFuelMassRatio [ 0 0 0 0 0 0 0 ] 15.0336;
stoichiometricAirFuelMassRatio stoichiometricAirFuelMassRatio [0 0 0 0 0 0 0] 15.0336;
fuel
{

View File

@ -36,9 +36,9 @@ absorptionEmissionModel constantAbsorptionEmission;
constantAbsorptionEmissionCoeffs
{
absorptivity absorptivity [ 0 -1 0 0 0 0 0 ] 0.1;
emissivity emissivity [ 0 -1 0 0 0 0 0 ] 0.1;
E E [ 1 -1 -3 0 0 0 0 ] 0;
absorptivity absorptivity [0 -1 0 0 0 0 0] 0.1;
emissivity emissivity [0 -1 0 0 0 0 0] 0.1;
E E [1 -1 -3 0 0 0 0] 0;
}
greyMeanAbsorptionEmissionSootCoeffs

View File

@ -25,7 +25,7 @@ USAGE
unset timeOpt
# parse options
while [ "$#" -gt 0 ]
while [ "$#" -gt 0]
do
case "$1" in
-h | -help)

View File

@ -17,6 +17,6 @@ FoamFile
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1.0e-6;
nu [0 2 -1 0 0 0 0] 1.0e-6;
// ************************************************************************* //

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -3 0 0 0 0 ];
dimensions [0 2 -3 0 0 0 0];
internalField uniform 0.000765;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -3 0 0 0 0 ];
dimensions [0 2 -3 0 0 0 0];
internalField uniform 20;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -2 0 0 0 0 ];
dimensions [0 2 -2 0 0 0 0];
internalField uniform 1;

View File

@ -17,23 +17,6 @@ FoamFile
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1e-05;
CrossPowerLawCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
m m [ 0 0 1 0 0 0 0 ] 1;
n n [ 0 0 0 0 0 0 0 ] 1;
}
BirdCarreauCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
k k [ 0 0 1 0 0 0 0 ] 0;
n n [ 0 0 0 0 0 0 0 ] 1;
}
nu [0 2 -1 0 0 0 0] 1e-05;
// ************************************************************************* //

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -3 0 0 0 0 ];
dimensions [0 2 -3 0 0 0 0];
internalField uniform 200;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -2 0 0 0 0 ];
dimensions [0 2 -2 0 0 0 0];
internalField uniform 1;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -1 0 0 0 0 ];
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -3 0 0 0 0 ];
dimensions [0 2 -3 0 0 0 0];
internalField uniform 200;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -2 0 0 0 0 ];
dimensions [0 2 -2 0 0 0 0];
internalField uniform 1;

View File

@ -15,11 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
rho0 rho0 [ 1 -3 0 0 0 0 0 ] 1000;
rho0 rho0 [1 -3 0 0 0 0 0] 1000;
p0 p0 [ 1 -1 -2 0 0 0 0 ] 100000;
p0 p0 [1 -1 -2 0 0 0 0] 100000;
psi psi [ 0 -2 2 0 0 0 0 ] 4.54e-07;
psi psi [0 -2 2 0 0 0 0] 4.54e-07;
// ************************************************************************* //

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
mu mu [ 1 -1 -1 0 0 0 0 ] 0.001;
mu mu [1 -1 -1 0 0 0 0] 0.001;
// ************************************************************************* //

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 0 0 1 0 0 0 ];
dimensions [0 0 0 1 0 0 0];
internalField uniform 0;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 1 -1 0 0 0 0 ];
dimensions [0 1 -1 0 0 0 0];
internalField uniform ( 0 0 0 );

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 -3 0 0 0 0 0 ];
dimensions [0 -3 0 0 0 0 0];
internalField uniform 0;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 1 -1 -2 0 0 0 0 ];
dimensions [1 -1 -2 0 0 0 0];
internalField uniform ( 0 0 0 );

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 -3 0 0 0 0 0 ];
dimensions [0 -3 0 0 0 0 0];
internalField uniform 0;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 1 -1 -2 0 0 0 0 ];
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 0;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 1 -1 -2 0 0 0 0 ];
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 0;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 1 -2 -1 0 0 0 0 ];
dimensions [1 -2 -1 0 0 0 0];
internalField uniform ( 0 0 0 );

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 1 0 -3 0 0 0 0 ];
dimensions [1 0 -3 0 0 0 0];
internalField uniform 0;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 1 -3 0 0 0 0 0 ];
dimensions [1 -3 0 0 0 0 0];
internalField uniform 0;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 -3 0 0 0 0 0 ];
dimensions [0 -3 0 0 0 0 0];
internalField uniform 0;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 1 -1 0 0 0 0 ];
dimensions [0 1 -1 0 0 0 0];
internalField uniform ( 0 0 0 );

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 1 -1 0 0 0 0 ];
dimensions [0 1 -1 0 0 0 0];
internalField uniform ( 0 0 0 );

View File

@ -15,9 +15,8 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
epsilon0 epsilon0 [ -1 -3 4 0 0 2 0 ] 8.85419e-12;
k k [ -1 0 2 0 0 1 0 ] 0.00016;
epsilon0 epsilon0 [-1 -3 4 0 0 2 0] 8.85419e-12;
k k [-1 0 2 0 0 1 0] 0.00016;
// ************************************************************************* //

View File

@ -15,13 +15,12 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
rho rho [ 1 -3 0 0 0 0 0 ] 1;
rho [1 -3 0 0 0 0 0] 1;
nu nu [ 0 2 -1 0 0 0 0 ] 1;
nu [0 2 -1 0 0 0 0] 1;
mu mu [ 1 1 -2 0 0 -2 0 ] 1;
sigma sigma [ -1 -3 3 0 0 2 0 ] 1;
mu [1 1 -2 0 0 -2 0] 1;
sigma [-1 -3 3 0 0 2 0] 1;
// ************************************************************************* //

View File

@ -15,17 +15,16 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
strike strike [ 0 1 0 0 0 0 0 ] 40;
strike [0 1 0 0 0 0 0] 40;
r r [ 0 0 -1 0 0 0 0 ] 0.1;
r [0 0 -1 0 0 0 0] 0.1;
sigma sigma [ 0 0 -0.5 0 0 0 0 ] 0.2;
sigma [0 0 -0.5 0 0 0 0] 0.2;
s s [ 0 0 -1 0 0 0 0 ] 0;
s [0 0 -1 0 0 0 0] 0;
xi xi [ 0 0 -0.5 0 0 0 0 ] 0.1;
eta eta [ 0 0 0 0 0 0 0 ] 0;
xi [0 0 -0.5 0 0 0 0] 0.1;
eta [0 0 0 0 0 0 0] 0;
// ************************************************************************* //

View File

@ -32,6 +32,7 @@ FoamFile
defaultFaces
{
type empty;
inGroups 1(empty);
nFaces 2000;
startFace 501;
}

View File

@ -18,18 +18,18 @@ FoamFile
transportModel Newtonian;
// Laminar viscosity
nu nu [0 2 -1 0 0 0 0] 1e-05;
nu [0 2 -1 0 0 0 0] 1e-05;
// Thermal expansion coefficient
beta beta [0 0 0 -1 0 0 0] 3e-03;
beta [0 0 0 -1 0 0 0] 3e-03;
// Reference temperature
TRef TRef [0 0 0 1 0 0 0] 300;
TRef [0 0 0 1 0 0 0] 300;
// Laminar Prandtl number
Pr Pr [0 0 0 0 0 0 0] 0.9;
Pr [0 0 0 0 0 0 0] 0.9;
// Turbulent Prandtl number
Prt Prt [0 0 0 0 0 0 0] 0.7;
Prt [0 0 0 0 0 0 0] 0.7;
// ************************************************************************* //

View File

@ -18,18 +18,18 @@ FoamFile
transportModel Newtonian;
// Laminar viscosity
nu nu [0 2 -1 0 0 0 0] 1e-05;
nu [0 2 -1 0 0 0 0] 1e-05;
// Thermal expansion coefficient
beta beta [0 0 0 -1 0 0 0] 3e-03;
beta [0 0 0 -1 0 0 0] 3e-03;
// Reference temperature
TRef TRef [0 0 0 1 0 0 0] 300;
TRef [0 0 0 1 0 0 0] 300;
// Laminar Prandtl number
Pr Pr [0 0 0 0 0 0 0] 0.9;
Pr [0 0 0 0 0 0 0] 0.9;
// Turbulent Prandtl number
Prt Prt [0 0 0 0 0 0 0] 0.7;
Prt [0 0 0 0 0 0 0] 0.7;
// ************************************************************************* //

View File

@ -18,18 +18,18 @@ FoamFile
transportModel Newtonian;
// Laminar viscosity
nu nu [0 2 -1 0 0 0 0] 1e-05;
nu [0 2 -1 0 0 0 0] 1e-05;
// Thermal expansion coefficient
beta beta [0 0 0 -1 0 0 0] 3e-03;
beta [0 0 0 -1 0 0 0] 3e-03;
// Reference temperature
TRef TRef [0 0 0 1 0 0 0] 300;
TRef [0 0 0 1 0 0 0] 300;
// Laminar Prandtl number
Pr Pr [0 0 0 0 0 0 0] 0.9;
Pr [0 0 0 0 0 0 0] 0.9;
// Turbulent Prandtl number
Prt Prt [0 0 0 0 0 0 0] 0.7;
Prt [0 0 0 0 0 0 0] 0.7;
// ************************************************************************* //

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 0 0 1 0 0 0 ];
dimensions [0 0 0 1 0 0 0];
internalField uniform 300;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 1 -1 -2 0 0 0 0 ];
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 1e6;

View File

@ -51,7 +51,7 @@ init
totalWait=0
step=0
while [ 1 ]; do
while [1 ]; do
if [ -f $lockFile ]; then
log "found lock file ${lockFile} - waiting"
totalWait=$(expr $totalWait + $waitSec)

View File

@ -26,9 +26,9 @@ absorptionEmissionModel constantAbsorptionEmission;
constantAbsorptionEmissionCoeffs
{
absorptivity absorptivity [ 0 -1 0 0 0 0 0 ] 0.5;
emissivity emissivity [ 0 -1 0 0 0 0 0 ] 0.5;
E E [ 1 -1 -3 0 0 0 0 ] 0;
absorptivity absorptivity [0 -1 0 0 0 0 0] 0.5;
emissivity emissivity [0 -1 0 0 0 0 0] 0.5;
E E [1 -1 -3 0 0 0 0] 0;
}
scatterModel none;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 0 0 1 0 0 0 ];
dimensions [0 0 0 1 0 0 0];
internalField uniform 300;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 1 -1 0 0 0 0 ];
dimensions [0 1 -1 0 0 0 0];
internalField uniform ( 0.001 0 0 );

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -3 0 0 0 0 ];
dimensions [0 2 -3 0 0 0 0];
internalField uniform 0.01;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -2 0 0 0 0 ];
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0.1;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 1 -1 -2 0 0 0 0 ];
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 0;

Some files were not shown because too many files have changed in this diff Show More