ENH: Renaming K to kappa and kappa to kappaRad in solid thermo and

updating tutorials
This commit is contained in:
sergio
2012-05-08 11:02:39 +01:00
parent 060a2b0f42
commit fa4fd968a8
87 changed files with 430 additions and 417 deletions

View File

@ -9,8 +9,8 @@
tmp<volScalarField> tcp = thermo.Cp(); tmp<volScalarField> tcp = thermo.Cp();
const volScalarField& cp = tcp(); const volScalarField& cp = tcp();
tmp<volScalarField> tkappa = thermo.K(); tmp<volScalarField> tkappa = thermo.kappa();
//tmp<volSymmTensorField> tkappa = thermo.directionalK()*betav; //tmp<volSymmTensorField> tkappa = thermo.directionalKappa()*betav;
const volScalarField& kappa = tkappa(); const volScalarField& kappa = tkappa();
//const volSymmTensorField& K = tK(); //const volSymmTensorField& K = tK();

View File

@ -7,7 +7,7 @@
tmp<volScalarField> tcp = thermo.Cp(); tmp<volScalarField> tcp = thermo.Cp();
const volScalarField& cp = tcp(); const volScalarField& cp = tcp();
tmp<volScalarField> tkappa = thermo.K(); tmp<volScalarField> tkappa = thermo.kappa();
//tmp<volSymmTensorField> tkappa = thermo.directionalkappa(); //tmp<volSymmTensorField> tkappa = thermo.directionalkappa();
const volScalarField& kappa = tkappa(); const volScalarField& kappa = tkappa();

View File

@ -9,8 +9,8 @@
tmp<volScalarField> tcp = thermo.Cp(); tmp<volScalarField> tcp = thermo.Cp();
const volScalarField& cp = tcp(); const volScalarField& cp = tcp();
tmp<volScalarField> tkappa = thermo.K(); tmp<volScalarField> tkappa = thermo.kappa();
//tmp<volSymmTensorField> tkappa = thermo.directionalK()*betav; //tmp<volSymmTensorField> tkappa = thermo.directionalKappa()*betav;
const volScalarField& kappa = tkappa(); const volScalarField& kappa = tkappa();
//const volSymmTensorField& K = tK(); //const volSymmTensorField& K = tK();

View File

@ -7,9 +7,9 @@
tmp<volScalarField> tcp = thermo.Cp(); tmp<volScalarField> tcp = thermo.Cp();
const volScalarField& cp = tcp(); const volScalarField& cp = tcp();
tmp<volScalarField> tkappa = thermo.K(); tmp<volScalarField> tkappa = thermo.kappa();
const volScalarField& kappa = tkappa(); const volScalarField& kappa = tkappa();
//tmp<volSymmTensorField> tkappa = thermo.directionalK(); //tmp<volSymmTensorField> tkappa = thermo.directionalKappa();
//const volSymmTensorField& kappa = tkappa(); //const volSymmTensorField& kappa = tkappa();
volScalarField& T = thermo.T(); volScalarField& T = thermo.T();

View File

@ -73,7 +73,7 @@ int main(int argc, char *argv[])
forAll(wallHeatFlux.boundaryField(), patchi) forAll(wallHeatFlux.boundaryField(), patchi)
{ {
wallHeatFlux.boundaryField()[patchi] = wallHeatFlux.boundaryField()[patchi] =
thermo().K(patchi) thermo().kappa(patchi)
*T.boundaryField()[patchi].snGrad(); *T.boundaryField()[patchi].snGrad();
if (isA<wallFvPatch>(mesh.boundary()[patchi])) if (isA<wallFvPatch>(mesh.boundary()[patchi]))

View File

@ -151,15 +151,15 @@ const tmp<volScalarField> noPyrolysis::Cp() const
} }
const volScalarField& noPyrolysis::kappa() const const volScalarField& noPyrolysis::kappaRad() const
{ {
return (solidThermo_->kappa()); return (solidThermo_->kappaRad());
} }
const volScalarField& noPyrolysis::K() const const volScalarField& noPyrolysis::kappa() const
{ {
return (solidThermo_->K()); return (solidThermo_->kappa());
} }

View File

@ -124,10 +124,10 @@ public:
virtual const tmp<volScalarField> Cp() const; virtual const tmp<volScalarField> Cp() const;
//- Return the region absorptivity [1/m] //- Return the region absorptivity [1/m]
virtual const volScalarField& kappa() const; virtual const volScalarField& kappaRad() const;
//- Return the region thermal conductivity [W/m/k] //- Return the region thermal conductivity [W/m/k]
virtual const volScalarField& K() const; virtual const volScalarField& kappa() const;
//- Return the total gas mass flux to primary region [kg/m2/s] //- Return the total gas mass flux to primary region [kg/m2/s]
virtual const surfaceScalarField& phiGas() const; virtual const surfaceScalarField& phiGas() const;

View File

@ -218,10 +218,10 @@ public:
virtual const tmp<volScalarField> Cp() const = 0; virtual const tmp<volScalarField> Cp() const = 0;
//- Return the region absorptivity [1/m] //- Return the region absorptivity [1/m]
virtual const volScalarField& kappa() const = 0; virtual const volScalarField& kappaRad() const = 0;
//- Return the region thermal conductivity [W/m/k] //- Return the region thermal conductivity [W/m/k]
virtual const volScalarField& K() const = 0; virtual const volScalarField& kappa() const = 0;
//- Return the total gas mass flux to primary region [kg/m2/s] //- Return the total gas mass flux to primary region [kg/m2/s]
virtual const surfaceScalarField& phiGas() const = 0; virtual const surfaceScalarField& phiGas() const = 0;

View File

@ -126,7 +126,7 @@ void reactingOneDim::updateQr()
const label cellI = cells[k]; const label cellI = cells[k];
const point& Cf1 = regionMesh().cellCentres()[cellI]; const point& Cf1 = regionMesh().cellCentres()[cellI];
const scalar delta = mag(Cf1 - Cf0); const scalar delta = mag(Cf1 - Cf0);
kappaInt += kappa_[cellI]*delta; kappaInt += kappaRad_[cellI]*delta;
Qr_[cellI] = Qr0*exp(-kappaInt); Qr_[cellI] = Qr0*exp(-kappaInt);
Cf0 = Cf1; Cf0 = Cf1;
} }
@ -294,7 +294,7 @@ void reactingOneDim::solveEnergy()
fvScalarMatrix TEqn fvScalarMatrix TEqn
( (
fvm::ddt(rhoCp, T_) fvm::ddt(rhoCp, T_)
- fvm::laplacian(K_, T_) - fvm::laplacian(kappa_, T_)
== ==
chemistrySh_ chemistrySh_
+ fvc::div(phiQr) + fvc::div(phiQr)
@ -347,8 +347,8 @@ reactingOneDim::reactingOneDim(const word& modelType, const fvMesh& mesh)
pyrolysisModel(modelType, mesh), pyrolysisModel(modelType, mesh),
solidChemistry_(solidChemistryModel::New(regionMesh())), solidChemistry_(solidChemistryModel::New(regionMesh())),
solidThermo_(solidChemistry_->solidThermo()), solidThermo_(solidChemistry_->solidThermo()),
kappaRad_(solidThermo_.kappaRad()),
kappa_(solidThermo_.kappa()), kappa_(solidThermo_.kappa()),
K_(solidThermo_.K()),
rho_(solidThermo_.rho()), rho_(solidThermo_.rho()),
Ys_(solidThermo_.composition().Y()), Ys_(solidThermo_.composition().Y()),
T_(solidThermo_.T()), T_(solidThermo_.T()),
@ -449,8 +449,8 @@ reactingOneDim::reactingOneDim
pyrolysisModel(modelType, mesh, dict), pyrolysisModel(modelType, mesh, dict),
solidChemistry_(solidChemistryModel::New(regionMesh())), solidChemistry_(solidChemistryModel::New(regionMesh())),
solidThermo_(solidChemistry_->solidThermo()), solidThermo_(solidChemistry_->solidThermo()),
kappaRad_(solidThermo_.kappaRad()),
kappa_(solidThermo_.kappa()), kappa_(solidThermo_.kappa()),
K_(solidThermo_.K()),
rho_(solidThermo_.rho()), rho_(solidThermo_.rho()),
Ys_(solidThermo_.composition().Y()), Ys_(solidThermo_.composition().Y()),
T_(solidThermo_.T()), T_(solidThermo_.T()),
@ -584,7 +584,7 @@ scalar reactingOneDim::solidRegionDiffNo() const
surfaceScalarField KrhoCpbyDelta surfaceScalarField KrhoCpbyDelta
( (
regionMesh().surfaceInterpolation::deltaCoeffs() regionMesh().surfaceInterpolation::deltaCoeffs()
* fvc::interpolate(K_) * fvc::interpolate(kappa_)
/ fvc::interpolate(Cp()*rho_) / fvc::interpolate(Cp()*rho_)
); );
@ -619,15 +619,15 @@ const tmp<volScalarField> reactingOneDim::Cp() const
} }
const volScalarField& reactingOneDim::kappa() const const volScalarField& reactingOneDim::kappaRad() const
{ {
return kappa_; return kappaRad_;
} }
const volScalarField& reactingOneDim::K() const const volScalarField& reactingOneDim::kappa() const
{ {
return K_; return kappa_;
} }

View File

@ -84,10 +84,10 @@ protected:
// Reference to solid thermo properties // Reference to solid thermo properties
//- Absorption coefficient [1/m] //- Absorption coefficient [1/m]
const volScalarField& kappa_; const volScalarField& kappaRad_;
//- Thermal conductivity [W/m/K] //- Thermal conductivity [W/m/K]
const volScalarField& K_; const volScalarField& kappa_;
//- Density [kg/m3] //- Density [kg/m3]
volScalarField& rho_; volScalarField& rho_;
@ -230,10 +230,10 @@ public:
virtual const tmp<volScalarField> Cp() const; virtual const tmp<volScalarField> Cp() const;
//- Return the region absorptivity [1/m] //- Return the region absorptivity [1/m]
virtual const volScalarField& kappa() const; virtual const volScalarField& kappaRad() const;
//- Return the region thermal conductivity [W/m/k] //- Return the region thermal conductivity [W/m/k]
virtual const volScalarField& K() const; virtual const volScalarField& kappa() const;
//- Return the total gas mass flux to primary region [kg/m2/s] //- Return the total gas mass flux to primary region [kg/m2/s]
virtual const surfaceScalarField& phiGas() const; virtual const surfaceScalarField& phiGas() const;

View File

@ -35,7 +35,7 @@ Description
// Coupled BC. // Coupled BC.
neighbourFieldName T; neighbourFieldName T;
K basicThermo; kappa basicThermo;
KName none; KName none;
@ -57,10 +57,10 @@ Description
//- thermo properties //- thermo properties
rho rho [1 -3 0 0 0 0 0] 80; rho rho [1 -3 0 0 0 0 0] 80;
Cp Cp [0 2 -2 -1 0 0 0] 15; Cp Cp [0 2 -2 -1 0 0 0] 15;
K K [1 1 -3 -1 0 0 0] 0.01; kappa kappa [1 1 -3 -1 0 0 0] 0.01;
//- radiative properties //- radiative properties
kappa kappa [0 -1 0 0 0 0 0] 0; kappaRad kappaRad [0 -1 0 0 0 0 0] 0;
sigmaS sigmaS [0 -1 0 0 0 0 0] 0; sigmaS sigmaS [0 -1 0 0 0 0 0] 0;
emissivity emissivity [0 0 0 0 0 0 0] 1; emissivity emissivity [0 0 0 0 0 0 0] 1;

View File

@ -95,9 +95,9 @@ const tmp<volScalarField> noThermo::Cp() const
); );
} }
const volScalarField& noThermo::kappa() const const volScalarField& noThermo::kappaRad() const
{ {
FatalErrorIn("const volScalarField& noThermo::kappa() const") FatalErrorIn("const volScalarField& noThermo::kappaRad() const")
<< "kappa field not available for " << type() << abort(FatalError); << "kappa field not available for " << type() << abort(FatalError);
return volScalarField::null(); return volScalarField::null();
} }
@ -111,9 +111,9 @@ const volScalarField& noThermo::rho() const
} }
const volScalarField& noThermo::K() const const volScalarField& noThermo::kappa() const
{ {
FatalErrorIn("const volScalarField& noThermo::K() const") FatalErrorIn("const volScalarField& noThermo::kappa() const")
<< "K field not available for " << type() << abort(FatalError); << "K field not available for " << type() << abort(FatalError);
return volScalarField::null(); return volScalarField::null();
} }

View File

@ -105,7 +105,7 @@ public:
virtual const tmp<volScalarField> Cp() const; virtual const tmp<volScalarField> Cp() const;
//- Return solid absortivity [1/m] //- Return solid absortivity [1/m]
virtual const volScalarField& kappa() const; virtual const volScalarField& kappaRad() const;
//- Return the film mean temperature [K] //- Return the film mean temperature [K]
virtual const volScalarField& T() const; virtual const volScalarField& T() const;
@ -114,7 +114,7 @@ public:
virtual const volScalarField& rho() const; virtual const volScalarField& rho() const;
//- Return thermal conductivity [W/m/K] //- Return thermal conductivity [W/m/K]
virtual const volScalarField& K() const; virtual const volScalarField& kappa() const;
// Evolution // Evolution

View File

@ -96,7 +96,7 @@ void thermoBaffle2D::solveEnergy()
volScalarField& Q = tQ(); volScalarField& Q = tQ();
volScalarField rhoCp("rhoCp", thermo_->rho()*thermo_->Cp()()); volScalarField rhoCp("rhoCp", thermo_->rho()*thermo_->Cp()());
volScalarField K("K", thermo_->K()); volScalarField kappa("kappa", thermo_->kappa());
//If region is one-dimension variable thickness //If region is one-dimension variable thickness
@ -119,7 +119,7 @@ void thermoBaffle2D::solveEnergy()
rhoCp[cellId] *= delta_.value()/thickness_[localFaceI]; rhoCp[cellId] *= delta_.value()/thickness_[localFaceI];
K[cellId] *= delta_.value()/thickness_[localFaceI]; kappa[cellId] *= delta_.value()/thickness_[localFaceI];
} }
} }
} }
@ -131,7 +131,7 @@ void thermoBaffle2D::solveEnergy()
fvScalarMatrix TEqn fvScalarMatrix TEqn
( (
fvm::ddt(rhoCp, T_) fvm::ddt(rhoCp, T_)
- fvm::laplacian(K, T_) - fvm::laplacian(kappa, T_)
== ==
Q Q
); );
@ -316,9 +316,9 @@ const tmp<volScalarField> thermoBaffle2D::Cp() const
} }
const volScalarField& thermoBaffle2D::kappa() const const volScalarField& thermoBaffle2D::kappaRad() const
{ {
return thermo_->kappa(); return thermo_->kappaRad();
} }
@ -328,9 +328,9 @@ const volScalarField& thermoBaffle2D::rho() const
} }
const volScalarField& thermoBaffle2D::K() const const volScalarField& thermoBaffle2D::kappa() const
{ {
return thermo_->K(); return thermo_->kappa();
} }
@ -362,7 +362,7 @@ void thermoBaffle2D::info() const
( (
mag(regionMesh().Sf().boundaryField()[patchI]) mag(regionMesh().Sf().boundaryField()[patchI])
* pT.snGrad() * pT.snGrad()
* thermo_->K(patchI) * thermo_->kappa(patchI)
) << endl; ) << endl;
} }
} }

View File

@ -155,7 +155,7 @@ public:
virtual const tmp<volScalarField> Cp() const; virtual const tmp<volScalarField> Cp() const;
//- Return solid absortivity [1/m] //- Return solid absortivity [1/m]
virtual const volScalarField& kappa() const; virtual const volScalarField& kappaRad() const;
//- Return the film mean temperature [K] //- Return the film mean temperature [K]
virtual const volScalarField& T() const; virtual const volScalarField& T() const;
@ -164,7 +164,7 @@ public:
virtual const volScalarField& rho() const; virtual const volScalarField& rho() const;
//- Return thermal conductivity [W/m/K] //- Return thermal conductivity [W/m/K]
virtual const volScalarField& K() const; virtual const volScalarField& kappa() const;
// Helper functions // Helper functions

View File

@ -211,10 +211,10 @@ public:
virtual const tmp<volScalarField> Cp() const = 0; virtual const tmp<volScalarField> Cp() const = 0;
//- Return the region absorptivity [1/m] //- Return the region absorptivity [1/m]
virtual const volScalarField& kappa() const = 0; virtual const volScalarField& kappaRad() const = 0;
//- Return the region thermal conductivity [W/m/k] //- Return the region thermal conductivity [W/m/k]
virtual const volScalarField& K() const = 0; virtual const volScalarField& kappa() const = 0;
// Evolution // Evolution

View File

@ -78,11 +78,11 @@ Foam::basicSolidThermo::basicSolidThermo(const fvMesh& mesh)
mesh, mesh,
dimMass/dimVolume dimMass/dimVolume
), ),
kappa_ kappaRad_
( (
IOobject IOobject
( (
"kappa", "kappaRad",
mesh.time().timeName(), mesh.time().timeName(),
mesh, mesh,
IOobject::NO_READ, IOobject::NO_READ,
@ -165,11 +165,11 @@ Foam::basicSolidThermo::basicSolidThermo
mesh, mesh,
dimMass/dimVolume dimMass/dimVolume
), ),
kappa_ kappaRad_
( (
IOobject IOobject
( (
"kappa", "kappaRad",
mesh.time().timeName(), mesh.time().timeName(),
mesh, mesh,
IOobject::NO_READ, IOobject::NO_READ,
@ -239,9 +239,9 @@ Foam::volScalarField& Foam::basicSolidThermo::rho()
} }
const Foam::volScalarField& Foam::basicSolidThermo::kappa() const const Foam::volScalarField& Foam::basicSolidThermo::kappaRad() const
{ {
return kappa_; return kappaRad_;
} }

View File

@ -73,7 +73,7 @@ protected:
volScalarField rho_; volScalarField rho_;
//- Absorption coefficient [1/m] //- Absorption coefficient [1/m]
volScalarField kappa_; volScalarField kappaRad_;
//- Scatter coeffcient [1/m] //- Scatter coeffcient [1/m]
volScalarField sigmaS_; volScalarField sigmaS_;
@ -157,7 +157,7 @@ public:
virtual volScalarField& rho(); virtual volScalarField& rho();
//- Absorption coefficient [1/m] //- Absorption coefficient [1/m]
virtual const volScalarField& kappa() const; virtual const volScalarField& kappaRad() const;
//- Emissivity coefficient //- Emissivity coefficient
virtual const volScalarField& sigmaS() const; virtual const volScalarField& sigmaS() const;
@ -169,10 +169,10 @@ public:
// Derived thermal properties // Derived thermal properties
//- Thermal conductivity [W/m/K] //- Thermal conductivity [W/m/K]
virtual tmp<volScalarField> K() const = 0; virtual tmp<volScalarField> kappa() const = 0;
//- Thermal conductivity [W/m/K] //- Thermal conductivity [W/m/K]
virtual tmp<volSymmTensorField> directionalK() const = 0; virtual tmp<volSymmTensorField> directionalKappa() const = 0;
//- Specific heat capacity [J/kg/K] //- Specific heat capacity [J/kg/K]
virtual tmp<volScalarField> Cp() const = 0; virtual tmp<volScalarField> Cp() const = 0;
@ -187,10 +187,10 @@ public:
// Per patch calculation // Per patch calculation
//- Thermal conductivity [W//m/K] //- Thermal conductivity [W//m/K]
virtual tmp<scalarField> K(const label patchI) const = 0; virtual tmp<scalarField> kappa(const label patchI) const = 0;
//- Thermal conductivity [W//m/K] //- Thermal conductivity [W//m/K]
virtual tmp<symmTensorField> directionalK(const label) const = 0; virtual tmp<symmTensorField> directionalKappa(const label) const = 0;
//- Specific heat capacity [J/kg/K)] //- Specific heat capacity [J/kg/K)]
virtual tmp<scalarField> Cp(const label patchI) const = 0; virtual tmp<scalarField> Cp(const label patchI) const = 0;

View File

@ -46,36 +46,36 @@ Foam::constSolidThermo::constSolidThermo
: :
basicSolidThermo(mesh, dict), basicSolidThermo(mesh, dict),
dict_(dict.subDict(typeName + "Coeffs")), dict_(dict.subDict(typeName + "Coeffs")),
constK_(dimensionedScalar(dict_.lookup("K"))), constKappa_(dimensionedScalar(dict_.lookup("kappa"))),
K_ kappa_
( (
IOobject IOobject
( (
"K", "kappa",
mesh.time().timeName(), mesh.time().timeName(),
mesh, mesh,
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
mesh, mesh,
constK_ constKappa_
), ),
constRho_(dimensionedScalar(dict_.lookup("rho"))), constRho_(dimensionedScalar(dict_.lookup("rho"))),
constCp_(dimensionedScalar(dict_.lookup("Cp"))), constCp_(dimensionedScalar(dict_.lookup("Cp"))),
constHf_(dimensionedScalar(dict_.lookup("Hf"))), constHf_(dimensionedScalar(dict_.lookup("Hf"))),
constEmissivity_(dimensionedScalar(dict_.lookup("emissivity"))), constEmissivity_(dimensionedScalar(dict_.lookup("emissivity"))),
constKappa_(dimensionedScalar(dict_.lookup("kappa"))), constKappaRad_(dimensionedScalar(dict_.lookup("kappaRad"))),
constSigmaS_(dimensionedScalar(dict_.lookup("sigmaS"))) constSigmaS_(dimensionedScalar(dict_.lookup("sigmaS")))
{ {
read(); read();
K_ = constK_; kappa_ = constKappa_;
rho_ = constRho_; rho_ = constRho_;
emissivity_ = constEmissivity_; emissivity_ = constEmissivity_;
kappa_ = constKappa_; kappaRad_ = constKappaRad_;
sigmaS_ = constSigmaS_; sigmaS_ = constSigmaS_;
} }
@ -85,36 +85,36 @@ Foam::constSolidThermo::constSolidThermo(const fvMesh& mesh)
: :
basicSolidThermo(mesh), basicSolidThermo(mesh),
dict_(subDict(typeName + "Coeffs")), dict_(subDict(typeName + "Coeffs")),
constK_(dimensionedScalar(dict_.lookup("K"))), constKappa_(dimensionedScalar(dict_.lookup("kappa"))),
K_ kappa_
( (
IOobject IOobject
( (
"K", "kappa",
mesh.time().timeName(), mesh.time().timeName(),
mesh, mesh,
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
mesh, mesh,
constK_ constKappa_
), ),
constRho_(dimensionedScalar(dict_.lookup("rho"))), constRho_(dimensionedScalar(dict_.lookup("rho"))),
constCp_(dimensionedScalar(dict_.lookup("Cp"))), constCp_(dimensionedScalar(dict_.lookup("Cp"))),
constHf_(dimensionedScalar(dict_.lookup("Hf"))), constHf_(dimensionedScalar(dict_.lookup("Hf"))),
constEmissivity_(dimensionedScalar(dict_.lookup("emissivity"))), constEmissivity_(dimensionedScalar(dict_.lookup("emissivity"))),
constKappa_(dimensionedScalar(dict_.lookup("kappa"))), constKappaRad_(dimensionedScalar(dict_.lookup("kappaRad"))),
constSigmaS_(dimensionedScalar(dict_.lookup("sigmaS"))) constSigmaS_(dimensionedScalar(dict_.lookup("sigmaS")))
{ {
read(); read();
K_ = constK_; kappa_ = constKappa_;
rho_ = constRho_; rho_ = constRho_;
emissivity_ = constEmissivity_; emissivity_ = constEmissivity_;
kappa_ = constKappa_; kappaRad_ = constKappaRad_;
sigmaS_ = constSigmaS_; sigmaS_ = constSigmaS_;
} }
@ -132,26 +132,26 @@ void Foam::constSolidThermo::correct()
{} {}
Foam::tmp<Foam::volScalarField> Foam::constSolidThermo::K() const Foam::tmp<Foam::volScalarField> Foam::constSolidThermo::kappa() const
{ {
return K_; return kappa_;
} }
Foam::tmp<Foam::volSymmTensorField> Foam::constSolidThermo::directionalK() const Foam::tmp<Foam::volSymmTensorField> Foam::constSolidThermo::directionalKappa() const
{ {
dimensionedSymmTensor t dimensionedSymmTensor t
( (
constK_.name(), constKappa_.name(),
constK_.dimensions(), constKappa_.dimensions(),
symmTensor symmTensor
( (
constK_.value(), constKappa_.value(),
0.0, 0.0,
0.0, 0.0,
constK_.value(), constKappa_.value(),
0.0, 0.0,
constK_.value() constKappa_.value()
) )
); );
return tmp<volSymmTensorField> return tmp<volSymmTensorField>
@ -160,7 +160,7 @@ Foam::tmp<Foam::volSymmTensorField> Foam::constSolidThermo::directionalK() const
( (
IOobject IOobject
( (
"K", "kappa",
mesh_.time().timeName(), mesh_.time().timeName(),
mesh_, mesh_,
IOobject::NO_READ, IOobject::NO_READ,
@ -215,28 +215,28 @@ Foam::tmp<Foam::volScalarField> Foam::constSolidThermo::Hf() const
} }
Foam::tmp<Foam::scalarField> Foam::constSolidThermo::K Foam::tmp<Foam::scalarField> Foam::constSolidThermo::kappa
( (
const label patchI const label patchI
) const ) const
{ {
return (K_.boundaryField()[patchI]); return (kappa_.boundaryField()[patchI]);
} }
Foam::tmp<Foam::symmTensorField> Foam::constSolidThermo::directionalK Foam::tmp<Foam::symmTensorField> Foam::constSolidThermo::directionalKappa
( (
const label patchI const label patchI
) const ) const
{ {
symmTensor t symmTensor t
( (
constK_.value(), constKappa_.value(),
0.0, 0.0,
0.0, 0.0,
constK_.value(), constKappa_.value(),
0.0, 0.0,
constK_.value() constKappa_.value()
); );
return tmp<symmTensorField> return tmp<symmTensorField>
( (
@ -291,19 +291,19 @@ bool Foam::constSolidThermo::read(const dictionary& dict)
{ {
constRho_ = dimensionedScalar(dict.lookup("rho")); constRho_ = dimensionedScalar(dict.lookup("rho"));
constCp_ = dimensionedScalar(dict.lookup("Cp")); constCp_ = dimensionedScalar(dict.lookup("Cp"));
constK_ = dimensionedScalar(dict.lookup("K")); constKappa_ = dimensionedScalar(dict.lookup("kappa"));
constHf_ = dimensionedScalar(dict.lookup("Hf")); constHf_ = dimensionedScalar(dict.lookup("Hf"));
constEmissivity_ = dimensionedScalar(dict.lookup("emissivity")); constEmissivity_ = dimensionedScalar(dict.lookup("emissivity"));
constKappa_ = dimensionedScalar(dict_.lookup("kappa")); constKappaRad_ = dimensionedScalar(dict_.lookup("kappaRad"));
constSigmaS_ = dimensionedScalar(dict_.lookup("sigmaS")); constSigmaS_ = dimensionedScalar(dict_.lookup("sigmaS"));
Info<< "Constructed constSolidThermo with" << nl Info<< "Constructed constSolidThermo with" << nl
<< " rho : " << constRho_ << nl << " rho : " << constRho_ << nl
<< " Cp : " << constCp_ << nl << " Cp : " << constCp_ << nl
<< " K : " << constK_ << nl << " kappa : " << constKappa_ << nl
<< " Hf : " << constHf_ << nl << " Hf : " << constHf_ << nl
<< " emissivity : " << constEmissivity_ << nl << " emissivity : " << constEmissivity_ << nl
<< " kappa : " << constKappa_ << nl << " kappaRad : " << constKappaRad_ << nl
<< " sigmaS : " << constSigmaS_ << nl << " sigmaS : " << constSigmaS_ << nl
<< endl; << endl;
@ -316,9 +316,9 @@ bool Foam::constSolidThermo::writeData(Ostream& os) const
bool ok = basicSolidThermo::writeData(os); bool ok = basicSolidThermo::writeData(os);
os.writeKeyword("rho") << constRho_ << token::END_STATEMENT << nl; os.writeKeyword("rho") << constRho_ << token::END_STATEMENT << nl;
os.writeKeyword("Cp") << constCp_ << token::END_STATEMENT << nl; os.writeKeyword("Cp") << constCp_ << token::END_STATEMENT << nl;
os.writeKeyword("K") << constK_ << token::END_STATEMENT << nl;
os.writeKeyword("Hf") << constHf_ << token::END_STATEMENT << nl;
os.writeKeyword("kappa") << constKappa_ << token::END_STATEMENT << nl; os.writeKeyword("kappa") << constKappa_ << token::END_STATEMENT << nl;
os.writeKeyword("Hf") << constHf_ << token::END_STATEMENT << nl;
os.writeKeyword("kappaRad") << constKappaRad_ << token::END_STATEMENT << nl;
os.writeKeyword("sigmaS") << constSigmaS_ << token::END_STATEMENT << nl; os.writeKeyword("sigmaS") << constSigmaS_ << token::END_STATEMENT << nl;
os.writeKeyword("emissivity") << constEmissivity_ << token::END_STATEMENT os.writeKeyword("emissivity") << constEmissivity_ << token::END_STATEMENT
<< nl; << nl;

View File

@ -58,10 +58,10 @@ private:
dictionary dict_; dictionary dict_;
//- Constant thermal conductivity [W/(m.K)] //- Constant thermal conductivity [W/(m.K)]
dimensionedScalar constK_; dimensionedScalar constKappa_;
//- Thermal conductivity field[W/(m.K)] //- Thermal conductivity field[W/(m.K)]
volScalarField K_; volScalarField kappa_;
//- Density [kg/m3] //- Density [kg/m3]
dimensionedScalar constRho_; dimensionedScalar constRho_;
@ -76,7 +76,7 @@ private:
dimensionedScalar constEmissivity_; dimensionedScalar constEmissivity_;
//- Absorptivity [1/m] //- Absorptivity [1/m]
dimensionedScalar constKappa_; dimensionedScalar constKappaRad_;
//- Scatter [1/m] //- Scatter [1/m]
dimensionedScalar constSigmaS_; dimensionedScalar constSigmaS_;
@ -110,10 +110,10 @@ public:
// Derived thermal properties // Derived thermal properties
//- Thermal conductivity [W/m/K] //- Thermal conductivity [W/m/K]
virtual tmp<volScalarField> K() const; virtual tmp<volScalarField> kappa() const;
//- Thermal conductivity [W/m/K] //- Thermal conductivity [W/m/K]
virtual tmp<volSymmTensorField> directionalK() const; virtual tmp<volSymmTensorField> directionalKappa() const;
//- Specific heat capacity [J/(kg.K)] //- Specific heat capacity [J/(kg.K)]
virtual tmp<volScalarField> Cp() const; virtual tmp<volScalarField> Cp() const;
@ -125,10 +125,10 @@ public:
// Per patch calculation // Per patch calculation
//- Thermal conductivity [W//m/K] //- Thermal conductivity [W//m/K]
virtual tmp<scalarField> K(const label patchI) const; virtual tmp<scalarField> kappa(const label patchI) const;
//- Thermal conductivity [W//m/K] //- Thermal conductivity [W//m/K]
virtual tmp<symmTensorField>directionalK(const label) const; virtual tmp<symmTensorField>directionalKappa(const label) const;
//- Specific heat capacity [J/kg/K)] //- Specific heat capacity [J/kg/K)]
virtual tmp<scalarField> Cp(const label patchI) const; virtual tmp<scalarField> Cp(const label patchI) const;

View File

@ -59,11 +59,11 @@ Foam::directionalKSolidThermo::directionalKSolidThermo
) )
: :
interpolatedSolidThermo(mesh, typeName + "Coeffs", dict), interpolatedSolidThermo(mesh, typeName + "Coeffs", dict),
directionalK_ directionalKappa_
( (
IOobject IOobject
( (
"K", "kappa",
mesh_.time().timeName(), mesh_.time().timeName(),
mesh_, mesh_,
IOobject::NO_READ, IOobject::NO_READ,
@ -93,11 +93,11 @@ Foam::directionalKSolidThermo::directionalKSolidThermo
Foam::directionalKSolidThermo::directionalKSolidThermo(const fvMesh& mesh) Foam::directionalKSolidThermo::directionalKSolidThermo(const fvMesh& mesh)
: :
interpolatedSolidThermo(mesh, typeName + "Coeffs"), interpolatedSolidThermo(mesh, typeName + "Coeffs"),
directionalK_ directionalKappa_
( (
IOobject IOobject
( (
"K", "kappa",
mesh_.time().timeName(), mesh_.time().timeName(),
mesh_, mesh_,
IOobject::NO_READ, IOobject::NO_READ,
@ -134,7 +134,8 @@ Foam::directionalKSolidThermo::~directionalKSolidThermo()
void Foam::directionalKSolidThermo::init() void Foam::directionalKSolidThermo::init()
{ {
KValues_ = Field<vector>(subDict(typeName + "Coeffs").lookup("KValues")); kappaValues_ =
Field<vector>(subDict(typeName + "Coeffs").lookup("kappaValues"));
// Determine transforms for cell centres // Determine transforms for cell centres
forAll(mesh_.C(), cellI) forAll(mesh_.C(), cellI)
@ -362,51 +363,51 @@ void Foam::directionalKSolidThermo::correct()
Foam::tmp<Foam::volSymmTensorField> Foam::tmp<Foam::volSymmTensorField>
Foam::directionalKSolidThermo::directionalK() const Foam::directionalKSolidThermo::directionalKappa() const
{ {
return directionalK_; return directionalKappa_;
} }
void Foam::directionalKSolidThermo::calculate() void Foam::directionalKSolidThermo::calculate()
{ {
// Correct directionalK // Correct directionalK
Field<vector> localK Field<vector> localKappa
( (
interpolateXY interpolateXY
( (
T_.internalField(), T_.internalField(),
TValues_, TValues_,
KValues_ kappaValues_
) )
); );
// Transform into global coordinate system // Transform into global coordinate system
transformField transformField
( (
directionalK_.internalField(), directionalKappa_.internalField(),
ccTransforms_.internalField(), ccTransforms_.internalField(),
localK localKappa
); );
forAll(directionalK_.boundaryField(), patchI) forAll(directionalKappa_.boundaryField(), patchI)
{ {
directionalK_.boundaryField()[patchI] == this->directionalK(patchI)(); directionalKappa_.boundaryField()[patchI] == this->directionalKappa(patchI)();
} }
} }
Foam::tmp<Foam::symmTensorField> Foam::directionalKSolidThermo::directionalK Foam::tmp<Foam::symmTensorField> Foam::directionalKSolidThermo::directionalKappa
( (
const label patchI const label patchI
) const ) const
{ {
const fvPatchScalarField& patchT = T_.boundaryField()[patchI]; const fvPatchScalarField& patchT = T_.boundaryField()[patchI];
Field<vector> localK(interpolateXY(patchT, TValues_, KValues_)); Field<vector> localKappa(interpolateXY(patchT, TValues_, kappaValues_));
tmp<symmTensorField> tglobalK(new symmTensorField(localK.size())); tmp<symmTensorField> tglobalK(new symmTensorField(localKappa.size()));
transformField(tglobalK(), ccTransforms_.boundaryField()[patchI], localK); transformField(tglobalK(), ccTransforms_.boundaryField()[patchI], localKappa);
return tglobalK; return tglobalK;
} }
@ -421,7 +422,7 @@ bool Foam::directionalKSolidThermo::read()
bool Foam::directionalKSolidThermo::read(const dictionary& dict) bool Foam::directionalKSolidThermo::read(const dictionary& dict)
{ {
coordSys_ = coordinateSystem(dict, mesh_); coordSys_ = coordinateSystem(dict, mesh_);
KValues_ = Field<vector>(subDict(typeName + "Coeffs").lookup("KValues")); kappaValues_ = Field<vector>(subDict(typeName + "Coeffs").lookup("kappaValues"));
return true; return true;
} }
@ -429,7 +430,8 @@ bool Foam::directionalKSolidThermo::read(const dictionary& dict)
bool Foam::directionalKSolidThermo::writeData(Ostream& os) const bool Foam::directionalKSolidThermo::writeData(Ostream& os) const
{ {
bool ok = interpolatedSolidThermo::writeData(os); bool ok = interpolatedSolidThermo::writeData(os);
os.writeKeyword("KValues") << KValues_ << token::END_STATEMENT << nl; os.writeKeyword("kappaValues")
<< kappaValues_ << token::END_STATEMENT << nl;
return ok && os.good(); return ok && os.good();
} }

View File

@ -54,10 +54,10 @@ class directionalKSolidThermo
// Private data // Private data
//- Thermal conductivity [W/(m.K)] //- Thermal conductivity [W/(m.K)]
volSymmTensorField directionalK_; volSymmTensorField directionalKappa_;
//- Thermal conductivity vector //- Thermal conductivity vector
Field<vector> KValues_; Field<vector> kappaValues_;
//- Coordinate system used for the directional properties //- Coordinate system used for the directional properties
coordinateSystem coordSys_; coordinateSystem coordSys_;
@ -117,26 +117,26 @@ public:
//- Access functions //- Access functions
//- Thermal conductivity [W/m/K] //- Thermal conductivity [W/m/K]
virtual tmp<volScalarField> K() const virtual tmp<volScalarField> kappa() const
{ {
notImplemented("directionalKSolidThermo::K() const"); notImplemented("directionalKSolidThermo::kappa() const");
return tmp<volScalarField>(NULL); return tmp<volScalarField>(NULL);
} }
//- Thermal conductivity [W/m/K] //- Thermal conductivity [W/m/K]
virtual tmp<volSymmTensorField> directionalK() const; virtual tmp<volSymmTensorField> directionalKappa() const;
// Per patch calculation // Per patch calculation
//- Thermal conductivity [W//m/K] //- Thermal conductivity [W//m/K]
virtual tmp<scalarField> K(const label patchI) const virtual tmp<scalarField> kappa(const label patchI) const
{ {
notImplemented("directionalKSolidThermo::K(const label) const"); notImplemented("directionalKSolidThermo::kappa(const label) const");
return tmp<scalarField>(NULL); return tmp<scalarField>(NULL);
} }
//- Thermal conductivity [W//m/K] //- Thermal conductivity [W//m/K]
virtual tmp<symmTensorField> directionalK(const label) const; virtual tmp<symmTensorField> directionalKappa(const label) const;
// I-O // I-O

View File

@ -39,8 +39,8 @@ Foam::interpolateSolid::interpolateSolid(const dictionary& dict)
<< " cp : " << cpValues_ << nl << " cp : " << cpValues_ << nl
<< " Hf : " << HfValues_ << nl << " Hf : " << HfValues_ << nl
<< " emissivity : " << emissivityValues_ << nl << " emissivity : " << emissivityValues_ << nl
<< " kappa : " << kappaValues_ << nl << " kappaRad : " << kappaRadValues_ << nl
<< " sigmaS : " << sigmaSValues_ << nl << " sigmaS : " << sigmaSValues_ << nl
<< endl; << endl;
@ -88,7 +88,7 @@ bool Foam::interpolateSolid::writeData(Ostream& os) const
os.writeKeyword("HfValues") << HfValues_ << token::END_STATEMENT << nl; os.writeKeyword("HfValues") << HfValues_ << token::END_STATEMENT << nl;
os.writeKeyword("emissivityValues") << emissivityValues_ << os.writeKeyword("emissivityValues") << emissivityValues_ <<
token::END_STATEMENT << nl; token::END_STATEMENT << nl;
os.writeKeyword("kappaValues") << kappaValues_ os.writeKeyword("kappaRadValues") << kappaRadValues_
<< token::END_STATEMENT << nl; << token::END_STATEMENT << nl;
os.writeKeyword("sigmaSValues") << sigmaSValues_ os.writeKeyword("sigmaSValues") << sigmaSValues_
<< token::END_STATEMENT << nl; << token::END_STATEMENT << nl;
@ -103,7 +103,7 @@ bool Foam::interpolateSolid::read(const dictionary& dict)
TValues_ = Field<scalar>(dict.lookup("TValues")); TValues_ = Field<scalar>(dict.lookup("TValues"));
rhoValues_ = Field<scalar>(dict.lookup("rhoValues")); rhoValues_ = Field<scalar>(dict.lookup("rhoValues"));
cpValues_ = Field<scalar>(dict.lookup("cpValues")); cpValues_ = Field<scalar>(dict.lookup("cpValues"));
kappaValues_ = Field<scalar>(dict.lookup("kappaValues")); kappaRadValues_ = Field<scalar>(dict.lookup("kappaRadValues"));
sigmaSValues_ = Field<scalar>(dict.lookup("sigmaSValues")); sigmaSValues_ = Field<scalar>(dict.lookup("sigmaSValues"));
HfValues_ = Field<scalar>(dict.lookup("HfValues")); HfValues_ = Field<scalar>(dict.lookup("HfValues"));
emissivityValues_ = Field<scalar>(dict.lookup("emissivityValues")); emissivityValues_ = Field<scalar>(dict.lookup("emissivityValues"));

View File

@ -63,7 +63,7 @@ protected:
Field<scalar> emissivityValues_; Field<scalar> emissivityValues_;
Field<scalar> kappaValues_; Field<scalar> kappaRadValues_;
Field<scalar> sigmaSValues_; Field<scalar> sigmaSValues_;

View File

@ -69,7 +69,7 @@ Foam::tmp<Foam::scalarField> Foam::interpolatedSolidThermo::emissivity
} }
Foam::tmp<Foam::scalarField> Foam::interpolatedSolidThermo::kappa Foam::tmp<Foam::scalarField> Foam::interpolatedSolidThermo::kappaRad
( (
const label patchI const label patchI
) const ) const
@ -82,7 +82,7 @@ Foam::tmp<Foam::scalarField> Foam::interpolatedSolidThermo::kappa
( (
T_.boundaryField()[patchI], T_.boundaryField()[patchI],
TValues_, TValues_,
kappaValues_ kappaRadValues_
) )
) )
); );
@ -178,16 +178,16 @@ void Foam::interpolatedSolidThermo::calculate()
// Correct absorptivity // Correct absorptivity
kappa_.internalField() = interpolateXY kappaRad_.internalField() = interpolateXY
( (
T_.internalField(), T_.internalField(),
TValues_, TValues_,
kappaValues_ kappaRadValues_
); );
forAll(kappa_.boundaryField(), patchI) forAll(kappaRad_.boundaryField(), patchI)
{ {
kappa_.boundaryField()[patchI] == this->kappa(patchI)(); kappaRad_.boundaryField()[patchI] == this->kappaRad(patchI)();
} }

View File

@ -69,7 +69,7 @@ private:
tmp<scalarField> sigmaS(const label) const; tmp<scalarField> sigmaS(const label) const;
//- Absorption coefficient [1/m] //- Absorption coefficient [1/m]
tmp<scalarField> kappa(const label) const; tmp<scalarField> kappaRad(const label) const;
//- Emissivity [] //- Emissivity []
tmp<scalarField> emissivity(const label) const; tmp<scalarField> emissivity(const label) const;

View File

@ -57,11 +57,11 @@ Foam::isotropicKSolidThermo::isotropicKSolidThermo
) )
: :
interpolatedSolidThermo(mesh, typeName + "Coeffs", dict), interpolatedSolidThermo(mesh, typeName + "Coeffs", dict),
K_ kappa_
( (
IOobject IOobject
( (
"K", "kappa",
mesh.time().timeName(), mesh.time().timeName(),
mesh, mesh,
IOobject::NO_READ, IOobject::NO_READ,
@ -70,7 +70,10 @@ Foam::isotropicKSolidThermo::isotropicKSolidThermo
mesh, mesh,
dimEnergy/dimTime/(dimLength*dimTemperature) dimEnergy/dimTime/(dimLength*dimTemperature)
), ),
KValues_ (Field<scalar>(subDict(typeName + "Coeffs").lookup("KValues"))) kappaValues_
(
Field<scalar>(subDict(typeName + "Coeffs").lookup("kappaValues"))
)
{ {
correct(); correct();
} }
@ -79,11 +82,11 @@ Foam::isotropicKSolidThermo::isotropicKSolidThermo
Foam::isotropicKSolidThermo::isotropicKSolidThermo(const fvMesh& mesh) Foam::isotropicKSolidThermo::isotropicKSolidThermo(const fvMesh& mesh)
: :
interpolatedSolidThermo(mesh, typeName + "Coeffs"), interpolatedSolidThermo(mesh, typeName + "Coeffs"),
K_ kappa_
( (
IOobject IOobject
( (
"K", "kappa",
mesh.time().timeName(), mesh.time().timeName(),
mesh, mesh,
IOobject::NO_READ, IOobject::NO_READ,
@ -92,7 +95,10 @@ Foam::isotropicKSolidThermo::isotropicKSolidThermo(const fvMesh& mesh)
mesh, mesh,
dimEnergy/dimTime/(dimLength*dimTemperature) dimEnergy/dimTime/(dimLength*dimTemperature)
), ),
KValues_ (Field<scalar>(subDict(typeName + "Coeffs").lookup("KValues"))) kappaValues_
(
Field<scalar>(subDict(typeName + "Coeffs").lookup("kappaValues"))
)
{ {
correct(); correct();
} }
@ -101,20 +107,20 @@ Foam::isotropicKSolidThermo::isotropicKSolidThermo(const fvMesh& mesh)
void Foam::isotropicKSolidThermo::correct() void Foam::isotropicKSolidThermo::correct()
{ {
// Correct K // Correct K
K_.internalField() = interpolateXY kappa_.internalField() = interpolateXY
( (
T_.internalField(), T_.internalField(),
TValues_, TValues_,
KValues_ kappaValues_
); );
forAll(K_.boundaryField(), patchI) forAll(kappa_.boundaryField(), patchI)
{ {
K_.boundaryField()[patchI] == interpolateXY kappa_.boundaryField()[patchI] == interpolateXY
( (
T_.boundaryField()[patchI], T_.boundaryField()[patchI],
TValues_, TValues_,
KValues_ kappaValues_
); );
} }
@ -122,31 +128,31 @@ void Foam::isotropicKSolidThermo::correct()
} }
Foam::tmp<Foam::volScalarField> Foam::isotropicKSolidThermo::K() const Foam::tmp<Foam::volScalarField> Foam::isotropicKSolidThermo::kappa() const
{ {
return K_; return kappa_;
} }
Foam::tmp<Foam::scalarField> Foam::isotropicKSolidThermo::K Foam::tmp<Foam::scalarField> Foam::isotropicKSolidThermo::kappa
( (
const label patchI const label patchI
) const ) const
{ {
return K_.boundaryField()[patchI]; return kappa_.boundaryField()[patchI];
} }
bool Foam::isotropicKSolidThermo::read() bool Foam::isotropicKSolidThermo::read()
{ {
KValues_ = Field<scalar>(subDict(typeName + "Coeffs").lookup("KValues")); kappaValues_ = Field<scalar>(subDict(typeName + "Coeffs").lookup("kappaValues"));
return true; return true;
} }
bool Foam::isotropicKSolidThermo::writeData(Ostream& os) const bool Foam::isotropicKSolidThermo::writeData(Ostream& os) const
{ {
os.writeKeyword("KValues") << KValues_ << token::END_STATEMENT << nl; os.writeKeyword("kappaValues") << kappaValues_ << token::END_STATEMENT << nl;
bool ok = interpolatedSolidThermo::writeData(os); bool ok = interpolatedSolidThermo::writeData(os);
return ok && os.good(); return ok && os.good();

View File

@ -53,10 +53,10 @@ class isotropicKSolidThermo
// Private data // Private data
//- Thermal conductivity [W/(m.K)] //- Thermal conductivity [W/(m.K)]
volScalarField K_; volScalarField kappa_;
//- Thermal conductivity vector //- Thermal conductivity vector
Field<scalar> KValues_; Field<scalar> kappaValues_;
public: public:
@ -87,26 +87,26 @@ public:
// Access functions // Access functions
//- Constant access to K //- Constant access to K
virtual tmp<volScalarField> K() const; virtual tmp<volScalarField> kappa() const;
//- Thermal conductivity [W/m/K] //- Thermal conductivity [W/m/K]
virtual tmp<volSymmTensorField> directionalK() const virtual tmp<volSymmTensorField> directionalKappa() const
{ {
notImplemented("directionalKSolidThermo::directionalK() const"); notImplemented("directionalKSolidThermo::directionalKappa() const");
return tmp<volSymmTensorField>(NULL); return tmp<volSymmTensorField>(NULL);
} }
// Per patch calculation // Per patch calculation
//- Thermal conductivity [W//m/K] //- Thermal conductivity [W//m/K]
virtual tmp<scalarField> K(const label patchI) const; virtual tmp<scalarField> kappa(const label patchI) const;
//- Thermal conductivity [W//m/K] //- Thermal conductivity [W//m/K]
virtual tmp<symmTensorField> directionalK(const label) const virtual tmp<symmTensorField> directionalKappa(const label) const
{ {
notImplemented notImplemented
( (
"directionalKSolidThermo::directionalK(const label) const" "directionalKSolidThermo::directionalKappa(const label) const"
); );
return tmp<symmTensorField>(NULL); return tmp<symmTensorField>(NULL);
} }

View File

@ -114,13 +114,13 @@ public:
virtual scalar rho(scalar T, label celli) const = 0; virtual scalar rho(scalar T, label celli) const = 0;
//- Absorption coefficient //- Absorption coefficient
virtual scalar kappa(scalar T, label celli) const = 0; virtual scalar kappaRad(scalar T, label celli) const = 0;
//- Scatter coefficient //- Scatter coefficient
virtual scalar sigmaS(scalar T, label celli) const = 0; virtual scalar sigmaS(scalar T, label celli) const = 0;
//- Thermal conductivity //- Thermal conductivity
virtual scalar K(scalar T, label celli) const = 0; virtual scalar kappa(scalar T, label celli) const = 0;
//- Emissivity coefficient //- Emissivity coefficient
virtual scalar emissivity(scalar T, label celli) const = 0; virtual scalar emissivity(scalar T, label celli) const = 0;

View File

@ -159,7 +159,7 @@ Foam::scalar Foam::multiComponentSolidMixture<ThermoSolidType>::h
template<class ThermoSolidType> template<class ThermoSolidType>
Foam::scalar Foam::multiComponentSolidMixture<ThermoSolidType>::kappa Foam::scalar Foam::multiComponentSolidMixture<ThermoSolidType>::kappaRad
( (
scalar T, label celli scalar T, label celli
) const ) const
@ -167,7 +167,7 @@ Foam::scalar Foam::multiComponentSolidMixture<ThermoSolidType>::kappa
scalar tmp = 0.0; scalar tmp = 0.0;
forAll(solidData_, i) forAll(solidData_, i)
{ {
tmp += solidData_[i].kappa(T)*X(i, celli, T); tmp += solidData_[i].kappaRad(T)*X(i, celli, T);
} }
return tmp; return tmp;
} }
@ -189,7 +189,7 @@ Foam::scalar Foam::multiComponentSolidMixture<ThermoSolidType>::sigmaS
template<class ThermoSolidType> template<class ThermoSolidType>
Foam::scalar Foam::multiComponentSolidMixture<ThermoSolidType>::K Foam::scalar Foam::multiComponentSolidMixture<ThermoSolidType>::kappa
( (
scalar T, label celli scalar T, label celli
) const ) const
@ -197,7 +197,7 @@ Foam::scalar Foam::multiComponentSolidMixture<ThermoSolidType>::K
scalar tmp = 0.0; scalar tmp = 0.0;
forAll(solidData_, i) forAll(solidData_, i)
{ {
tmp += solidData_[i].K(T)*X(i, celli, T); tmp += solidData_[i].kappa(T)*X(i, celli, T);
} }
return tmp; return tmp;
} }

View File

@ -99,13 +99,13 @@ public:
virtual scalar rho(scalar T, label celli) const; virtual scalar rho(scalar T, label celli) const;
//- Absorption coefficient //- Absorption coefficient
virtual scalar kappa(scalar T, label celli) const; virtual scalar kappaRad(scalar T, label celli) const;
//- Scatter coefficient //- Scatter coefficient
virtual scalar sigmaS(scalar T, label celli) const; virtual scalar sigmaS(scalar T, label celli) const;
//- Thermal conductivity //- Thermal conductivity
virtual scalar K(scalar T, label celli) const; virtual scalar kappa(scalar T, label celli) const;
//- Emissivity coefficient //- Emissivity coefficient
virtual scalar emissivity(scalar T, label celli) const; virtual scalar emissivity(scalar T, label celli) const;

View File

@ -34,8 +34,8 @@ void Foam::solidMixtureThermo<MixtureType>::calculate()
{ {
scalarField& rhoCells = rho_.internalField(); scalarField& rhoCells = rho_.internalField();
scalarField& KCells = K_.internalField();
scalarField& kappaCells = kappa_.internalField(); scalarField& kappaCells = kappa_.internalField();
scalarField& kappaRadCells = kappaRad_.internalField();
scalarField& sigmaSCells = sigmaS_.internalField(); scalarField& sigmaSCells = sigmaS_.internalField();
scalarField& emissivityCells = emissivity_.internalField(); scalarField& emissivityCells = emissivity_.internalField();
@ -44,9 +44,9 @@ void Foam::solidMixtureThermo<MixtureType>::calculate()
forAll(iT, celli) forAll(iT, celli)
{ {
rhoCells[celli] = MixtureType::rho(iT[celli], celli); rhoCells[celli] = MixtureType::rho(iT[celli], celli);
kappaCells[celli] = MixtureType::kappa(iT[celli], celli); kappaRadCells[celli] = MixtureType::kappaRad(iT[celli], celli);
sigmaSCells[celli] = MixtureType::sigmaS(iT[celli], celli); sigmaSCells[celli] = MixtureType::sigmaS(iT[celli], celli);
KCells[celli] = MixtureType::K(iT[celli], celli); kappaCells[celli] = MixtureType::kappa(iT[celli], celli);
emissivityCells[celli] = MixtureType::emissivity(iT[celli], celli); emissivityCells[celli] = MixtureType::emissivity(iT[celli], celli);
} }
@ -55,8 +55,8 @@ void Foam::solidMixtureThermo<MixtureType>::calculate()
forAll(bT, patchI) forAll(bT, patchI)
{ {
rho_.boundaryField()[patchI] == this->rho(patchI)(); rho_.boundaryField()[patchI] == this->rho(patchI)();
K_.boundaryField()[patchI] == this->K(patchI)();
kappa_.boundaryField()[patchI] == this->kappa(patchI)(); kappa_.boundaryField()[patchI] == this->kappa(patchI)();
kappaRad_.boundaryField()[patchI] == this->kappaRad(patchI)();
sigmaS_.boundaryField()[patchI] == this->sigmaS(patchI)(); sigmaS_.boundaryField()[patchI] == this->sigmaS(patchI)();
emissivity_.boundaryField()[patchI] == this->emissivity(patchI)(); emissivity_.boundaryField()[patchI] == this->emissivity(patchI)();
} }
@ -109,25 +109,25 @@ Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::sigmaS
template<class MixtureType> template<class MixtureType>
Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::kappa Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::kappaRad
( (
const label patchI const label patchI
) const ) const
{ {
const scalarField& patchT = T_.boundaryField()[patchI]; const scalarField& patchT = T_.boundaryField()[patchI];
const polyPatch& pp = mesh_.boundaryMesh()[patchI]; const polyPatch& pp = mesh_.boundaryMesh()[patchI];
const labelUList& cells = pp.faceCells(); const labelUList& cells = pp.faceCells();
tmp<scalarField> tKappa(new scalarField(patchT.size())); tmp<scalarField> tKappaRad(new scalarField(patchT.size()));
scalarField& kappa = tKappa(); scalarField& kappaRad = tKappaRad();
forAll(patchT, celli) forAll(patchT, celli)
{ {
kappa[celli] = kappaRad[celli] =
MixtureType::kappa(patchT[celli], cells[celli]); MixtureType::kappaRad(patchT[celli], cells[celli]);
} }
return tKappa; return tKappaRad;
} }
@ -163,11 +163,11 @@ Foam::solidMixtureThermo<MixtureType>::solidMixtureThermo
: :
basicSolidThermo(mesh), basicSolidThermo(mesh),
MixtureType(*this, mesh), MixtureType(*this, mesh),
K_ kappa_
( (
IOobject IOobject
( (
"K", "kappa",
mesh.time().timeName(), mesh.time().timeName(),
mesh, mesh,
IOobject::NO_READ, IOobject::NO_READ,
@ -190,11 +190,11 @@ Foam::solidMixtureThermo<MixtureType>::solidMixtureThermo
: :
basicSolidThermo(mesh, dict), basicSolidThermo(mesh, dict),
MixtureType(*this, mesh), MixtureType(*this, mesh),
K_ kappa_
( (
IOobject IOobject
( (
"K", "kappa",
mesh.time().timeName(), mesh.time().timeName(),
mesh, mesh,
IOobject::NO_READ, IOobject::NO_READ,
@ -225,9 +225,9 @@ void Foam::solidMixtureThermo<MixtureType>::correct()
template<class MixtureType> template<class MixtureType>
Foam::tmp<Foam::volScalarField> Foam::solidMixtureThermo<MixtureType>::K() const Foam::tmp<Foam::volScalarField> Foam::solidMixtureThermo<MixtureType>::kappa() const
{ {
return K_; return kappa_;
} }
@ -352,7 +352,7 @@ Foam::solidMixtureThermo<MixtureType>::Hf() const
template<class MixtureType> template<class MixtureType>
Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::K Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::kappa
( (
const label patchI const label patchI
) const ) const
@ -361,15 +361,15 @@ Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::K
const polyPatch& pp = mesh_.boundaryMesh()[patchI]; const polyPatch& pp = mesh_.boundaryMesh()[patchI];
const labelUList& cells = pp.faceCells(); const labelUList& cells = pp.faceCells();
tmp<scalarField> tK(new scalarField(patchT.size())); tmp<scalarField> tkappa(new scalarField(patchT.size()));
scalarField& K = tK(); scalarField& kappa = tkappa();
forAll(patchT, celli) forAll(patchT, celli)
{ {
K[celli] = MixtureType::K(patchT[celli], cells[celli]); kappa[celli] = MixtureType::kappa(patchT[celli], cells[celli]);
} }
return tK; return tkappa;
} }

View File

@ -57,7 +57,7 @@ protected:
// Protected data // Protected data
//- Thermal conductivity [W/m/K] //- Thermal conductivity [W/m/K]
volScalarField K_; volScalarField kappa_;
private: private:
@ -74,7 +74,7 @@ private:
tmp<scalarField> sigmaS(const label patchI) const; tmp<scalarField> sigmaS(const label patchI) const;
tmp<scalarField> kappa(const label patchI) const; tmp<scalarField> kappaRad(const label patchI) const;
tmp<scalarField> emissivity(const label patchI) const; tmp<scalarField> emissivity(const label patchI) const;
@ -118,12 +118,12 @@ public:
// Derived thermal properties // Derived thermal properties
//- Thermal conductivity [W/m/K] //- Thermal conductivity [W/m/K]
virtual tmp<volScalarField> K() const; virtual tmp<volScalarField> kappa() const;
//- Thermal conductivity [W/m/K] //- Thermal conductivity [W/m/K]
virtual tmp<volSymmTensorField> directionalK() const virtual tmp<volSymmTensorField> directionalKappa() const
{ {
notImplemented("solidMixtureThermo::directionalK() const"); notImplemented("solidMixtureThermo::directionalKappa() const");
return tmp<volSymmTensorField>(NULL); return tmp<volSymmTensorField>(NULL);
} }
@ -140,14 +140,14 @@ public:
// Per patch calculation // Per patch calculation
//- Thermal conductivity [W/(m.K)] //- Thermal conductivity [W/(m.K)]
virtual tmp<scalarField> K(const label patchI) const; virtual tmp<scalarField> kappa(const label patchI) const;
//- Thermal conductivity [W/(m.K)] //- Thermal conductivity [W/(m.K)]
virtual tmp<symmTensorField> directionalK(const label) const virtual tmp<symmTensorField> directionalKappa(const label) const
{ {
notImplemented notImplemented
( (
"solidMixtureThermo::directionalK(const label) const" "solidMixtureThermo::directionalKappa(const label) const"
); );
return tmp<symmTensorField>(NULL); return tmp<symmTensorField>(NULL);
} }

View File

@ -37,7 +37,7 @@ template<class thermo>
constSolidRad<thermo>::constSolidRad(const dictionary& dict) constSolidRad<thermo>::constSolidRad(const dictionary& dict)
: :
thermo(dict), thermo(dict),
kappa_(readScalar(dict.subDict("radiation").lookup("kappa"))), kappaRad_(readScalar(dict.subDict("radiation").lookup("kappaRad"))),
sigmaS_(readScalar(dict.subDict("radiation").lookup("sigmaS"))), sigmaS_(readScalar(dict.subDict("radiation").lookup("sigmaS"))),
emissivity_(readScalar(dict.subDict("radiation").lookup("emissivity"))) emissivity_(readScalar(dict.subDict("radiation").lookup("emissivity")))
{} {}
@ -49,7 +49,7 @@ template<class thermo>
Ostream& operator<<(Ostream& os, const constSolidRad<thermo>& pg) Ostream& operator<<(Ostream& os, const constSolidRad<thermo>& pg)
{ {
os << static_cast<const thermo&>(pg); os << static_cast<const thermo&>(pg);
os << tab << pg.kappa_ << tab << pg.sigmaS_ << tab << pg.emissivity_; os << tab << pg.kappaRad_ << tab << pg.sigmaS_ << tab << pg.emissivity_;
os.check("Ostream& operator<<(Ostream& os, const constSolidRad& st)"); os.check("Ostream& operator<<(Ostream& os, const constSolidRad& st)");
return os; return os;

View File

@ -62,7 +62,7 @@ class constSolidRad
// Private data // Private data
//- Absorption coefficient //- Absorption coefficient
scalar kappa_; scalar kappaRad_;
//- Scattering coefficient //- Scattering coefficient
scalar sigmaS_; scalar sigmaS_;
@ -75,7 +75,7 @@ class constSolidRad
inline constSolidRad inline constSolidRad
( (
const thermo& t, const thermo& t,
const scalar kappa, const scalar kappaRad,
const scalar sigmaS, const scalar sigmaS,
const scalar emissivity const scalar emissivity
); );
@ -101,7 +101,7 @@ public:
// Member functions // Member functions
//- Return absorption coefficient [1/m] //- Return absorption coefficient [1/m]
inline scalar kappa(scalar T) const; inline scalar kappaRad(scalar T) const;
//- Return scattering [1/m] //- Return scattering [1/m]
inline scalar sigmaS(scalar T) const; inline scalar sigmaS(scalar T) const;

View File

@ -36,13 +36,13 @@ template<class thermo>
inline constSolidRad<thermo>::constSolidRad inline constSolidRad<thermo>::constSolidRad
( (
const thermo& t, const thermo& t,
const scalar kappa, const scalar kappaRad,
const scalar sigmaS, const scalar sigmaS,
const scalar emissivity const scalar emissivity
) )
: :
thermo(t), thermo(t),
kappa_(kappa), kappaRad_(kappaRad),
sigmaS_(sigmaS), sigmaS_(sigmaS),
emissivity_(emissivity) emissivity_(emissivity)
{} {}
@ -59,7 +59,7 @@ inline constSolidRad<thermo>::constSolidRad
) )
: :
thermo(name, pg), thermo(name, pg),
kappa_(pg.kappa_), kappaRad_(pg.kappaRad_),
sigmaS_(pg.sigmaS_), sigmaS_(pg.sigmaS_),
emissivity_(pg.emissivity_) emissivity_(pg.emissivity_)
{} {}
@ -82,9 +82,9 @@ inline autoPtr<constSolidRad<thermo> > constSolidRad<thermo>::New(Istream& is)
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class thermo> template<class thermo>
inline scalar constSolidRad<thermo>::kappa(scalar) const inline scalar constSolidRad<thermo>::kappaRad(scalar) const
{ {
return kappa_; return kappaRad_;
} }

View File

@ -32,7 +32,7 @@ template<class thermo>
Foam::constSolidTransport<thermo>::constSolidTransport(const dictionary& dict) Foam::constSolidTransport<thermo>::constSolidTransport(const dictionary& dict)
: :
thermo(dict), thermo(dict),
K_(readScalar(dict.subDict("transport").lookup("K"))) kappa_(readScalar(dict.subDict("transport").lookup("kappa")))
{} {}
@ -46,7 +46,7 @@ Foam::Ostream& Foam::operator<<
) )
{ {
operator<<(os, static_cast<const thermo&>(ct)); operator<<(os, static_cast<const thermo&>(ct));
os << tab << ct.K_; os << tab << ct.kappa_;
os.check("Ostream& operator<<(Ostream& os,const constSolidTransport& ct)"); os.check("Ostream& operator<<(Ostream& os,const constSolidTransport& ct)");

View File

@ -65,7 +65,7 @@ class constSolidTransport
// Private data // Private data
//- Constant thermal conductivity. //- Constant thermal conductivity.
scalar K_; scalar kappa_;
// Private Member Functions // Private Member Functions
@ -74,7 +74,7 @@ class constSolidTransport
inline constSolidTransport inline constSolidTransport
( (
const thermo& t, const thermo& t,
const scalar k const scalar kappa
); );
@ -93,7 +93,7 @@ public:
// Member functions // Member functions
//- Thermal conductivity [W/mK] //- Thermal conductivity [W/mK]
inline scalar K(const scalar T) const; inline scalar kappa(const scalar T) const;
// Ostream Operator // Ostream Operator

View File

@ -29,11 +29,11 @@ template<class thermo>
inline Foam::constSolidTransport<thermo>::constSolidTransport inline Foam::constSolidTransport<thermo>::constSolidTransport
( (
const thermo& t, const thermo& t,
const scalar k const scalar kappa
) )
: :
thermo(t), thermo(t),
K_(k) kappa_(kappa)
{} {}
@ -45,16 +45,16 @@ inline Foam::constSolidTransport<thermo>::constSolidTransport
) )
: :
thermo(name, ct), thermo(name, ct),
K_(ct.K_) kappa_(ct.kappa_)
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class thermo> template<class thermo>
inline Foam::scalar Foam::constSolidTransport<thermo>::K(const scalar T) const inline Foam::scalar Foam::constSolidTransport<thermo>::kappa(const scalar T) const
{ {
return K_; return kappa_;
} }

View File

@ -35,12 +35,12 @@ Foam::exponentialSolidTransport<thermo>::exponentialSolidTransport
) )
: :
thermo(dict), thermo(dict),
K0_(0.0), kappa0_(0.0),
n0_(0.0), n0_(0.0),
Tref_(0.0) Tref_(0.0)
{ {
const dictionary& subDict = dict.subDict("transport"); const dictionary& subDict = dict.subDict("transport");
K0_ = readScalar(subDict.lookup("K0")); kappa0_ = readScalar(subDict.lookup("kappa0"));
n0_ = readScalar(subDict.lookup("n0")); n0_ = readScalar(subDict.lookup("n0"));
Tref_ = readScalar(subDict.lookup("Tref")); Tref_ = readScalar(subDict.lookup("Tref"));
} }
@ -55,7 +55,7 @@ Foam::Ostream& Foam::operator<<
) )
{ {
operator<<(os, static_cast<const thermo&>(et)); operator<<(os, static_cast<const thermo&>(et));
os << tab << et.K0_ << tab << et.n0_ << tab << et.Tref_; os << tab << et.kappa0_ << tab << et.n0_ << tab << et.Tref_;
os.check os.check
( (

View File

@ -64,7 +64,7 @@ class exponentialSolidTransport
// Private data // Private data
//- Constant thermal coefficient. //- Constant thermal coefficient.
scalar K0_; scalar kappa0_;
//- Exponent coefficient //- Exponent coefficient
scalar n0_; scalar n0_;
@ -79,7 +79,7 @@ class exponentialSolidTransport
inline exponentialSolidTransport inline exponentialSolidTransport
( (
const thermo& t, const thermo& t,
const scalar K0, const scalar kappa0,
const scalar n0, const scalar n0,
const scalar Tref const scalar Tref
); );
@ -104,7 +104,7 @@ public:
// Member functions // Member functions
//- Thermal conductivity [W/mK] //- Thermal conductivity [W/mK]
inline scalar K(const scalar T) const; inline scalar kappa(const scalar T) const;
// Ostream Operator // Ostream Operator

View File

@ -29,13 +29,13 @@ template<class thermo>
inline Foam::exponentialSolidTransport<thermo>::exponentialSolidTransport inline Foam::exponentialSolidTransport<thermo>::exponentialSolidTransport
( (
const thermo& t, const thermo& t,
const scalar K0, const scalar kappa0,
const scalar n0, const scalar n0,
const scalar Tref const scalar Tref
) )
: :
thermo(t), thermo(t),
K0_(K0), kappa0_(kappa0),
n0_(n0), n0_(n0),
Tref_(Tref) Tref_(Tref)
{} {}
@ -49,7 +49,7 @@ inline Foam::exponentialSolidTransport<thermo>::exponentialSolidTransport
) )
: :
thermo(name, ct), thermo(name, ct),
K0_(ct.K0_), kappa0_(ct.kappa0_),
n0_(ct.n0_), n0_(ct.n0_),
Tref_(ct.Tref_) Tref_(ct.Tref_)
{} {}
@ -58,12 +58,12 @@ inline Foam::exponentialSolidTransport<thermo>::exponentialSolidTransport
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class thermo> template<class thermo>
inline Foam::scalar Foam::exponentialSolidTransport<thermo>::K inline Foam::scalar Foam::exponentialSolidTransport<thermo>::kappa
( (
const scalar T const scalar T
) const ) const
{ {
return (K0_*pow(T/Tref_, n0_)); return (kappa0_*pow(T/Tref_, n0_));
} }

View File

@ -86,7 +86,7 @@ externalWallHeatFluxTemperatureFvPatchScalarField
) )
: :
mixedFvPatchScalarField(ptf, p, iF, mapper), mixedFvPatchScalarField(ptf, p, iF, mapper),
temperatureCoupledBase(patch(), ptf.KMethod(), ptf.KName()), temperatureCoupledBase(patch(), ptf.KMethod(), ptf.kappaName()),
oldMode_(unknown), oldMode_(unknown),
q_(ptf.q_, mapper), q_(ptf.q_, mapper),
h_(ptf.h_, mapper), h_(ptf.h_, mapper),
@ -181,7 +181,7 @@ externalWallHeatFluxTemperatureFvPatchScalarField
) )
: :
mixedFvPatchScalarField(tppsf, iF), mixedFvPatchScalarField(tppsf, iF),
temperatureCoupledBase(patch(), tppsf.KMethod(), tppsf.KName()), temperatureCoupledBase(patch(), tppsf.KMethod(), tppsf.kappaName()),
oldMode_(tppsf.oldMode_), oldMode_(tppsf.oldMode_),
q_(tppsf.q_), q_(tppsf.q_),
h_(tppsf.h_), h_(tppsf.h_),
@ -199,7 +199,7 @@ void Foam::externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs()
} }
scalarField q(size(), 0.0); scalarField q(size(), 0.0);
scalarField KDelta(K(*this)*patch().deltaCoeffs()); scalarField KDelta(kappa(*this)*patch().deltaCoeffs());
if (oldMode_ == fixedHeatFlux) if (oldMode_ == fixedHeatFlux)
{ {
@ -223,7 +223,7 @@ void Foam::externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs()
{ {
if (q[i] > 0) //in if (q[i] > 0) //in
{ {
this->refGrad()[i] = q[i]/K(*this)()[i]; this->refGrad()[i] = q[i]/kappa(*this)()[i];
this->refValue()[i] = 0.0; this->refValue()[i] = 0.0;
this->valueFraction()[i] = 0.0; this->valueFraction()[i] = 0.0;
} }
@ -239,7 +239,7 @@ void Foam::externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs()
if (debug) if (debug)
{ {
scalar Q = gSum(K(*this)*patch().magSf()*snGrad()); scalar Q = gSum(kappa(*this)*patch().magSf()*snGrad());
Info<< patch().boundaryMesh().mesh().name() << ':' Info<< patch().boundaryMesh().mesh().name() << ':'
<< patch().name() << ':' << patch().name() << ':'

View File

@ -34,12 +34,12 @@ Description
myWallPatch myWallPatch
{ {
type externalWallHeatFluxTemperature; type externalWallHeatFluxTemperature;
K solidThermo; // solidThermo or lookup kappa solidThermo; // solidThermo or lookup
q uniform 1000; // Heat flux / [W/m2] q uniform 1000; // Heat flux / [W/m2]
Ta uniform 300.0; // Tambient temperature /[K] Ta uniform 300.0; // Tambient temperature /[K]
h uniform 10.0; // Heat transfer coeff /[W/Km2] h uniform 10.0; // Heat transfer coeff /[W/Km2]
value uniform 300.0; // Initial temperature / [K] value uniform 300.0; // Initial temperature / [K]
KName none; kappaName none;
} }
Note: Note:

View File

@ -58,12 +58,12 @@ Foam::temperatureCoupledBase::temperatureCoupledBase
( (
const fvPatch& patch, const fvPatch& patch,
const word& calculationType, const word& calculationType,
const word& KName const word& kappaName
) )
: :
patch_(patch), patch_(patch),
method_(KMethodTypeNames_[calculationType]), method_(KMethodTypeNames_[calculationType]),
KName_(KName) kappaName_(kappaName)
{} {}
@ -74,14 +74,14 @@ Foam::temperatureCoupledBase::temperatureCoupledBase
) )
: :
patch_(patch), patch_(patch),
method_(KMethodTypeNames_.read(dict.lookup("K"))), method_(KMethodTypeNames_.read(dict.lookup("kappa"))),
KName_(dict.lookup("KName")) kappaName_(dict.lookup("kappaName"))
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::tmp<Foam::scalarField> Foam::temperatureCoupledBase::K Foam::tmp<Foam::scalarField> Foam::temperatureCoupledBase::kappa
( (
const scalarField& Tp const scalarField& Tp
) const ) const
@ -111,7 +111,7 @@ Foam::tmp<Foam::scalarField> Foam::temperatureCoupledBase::K
( (
"solidThermophysicalProperties" "solidThermophysicalProperties"
); );
return thermo.K(patch_.index()); return thermo.kappa(patch_.index());
} }
break; break;
@ -124,23 +124,23 @@ Foam::tmp<Foam::scalarField> Foam::temperatureCoupledBase::K
( (
"solidThermophysicalProperties" "solidThermophysicalProperties"
); );
return n & thermo.directionalK(patch_.index()) & n; return n & thermo.directionalKappa(patch_.index()) & n;
} }
break; break;
case LOOKUP: case LOOKUP:
{ {
if (mesh.objectRegistry::foundObject<volScalarField>(KName_)) if (mesh.objectRegistry::foundObject<volScalarField>(kappaName_))
{ {
return patch_.lookupPatchField<volScalarField, scalar>(KName_); return patch_.lookupPatchField<volScalarField, scalar>(kappaName_);
} }
else if else if
( (
mesh.objectRegistry::foundObject<volSymmTensorField>(KName_) mesh.objectRegistry::foundObject<volSymmTensorField>(kappaName_)
) )
{ {
const symmTensorField& KWall = const symmTensorField& KWall =
patch_.lookupPatchField<volSymmTensorField, scalar>(KName_); patch_.lookupPatchField<volSymmTensorField, scalar>(kappaName_);
const vectorField n(patch_.nf()); const vectorField n(patch_.nf());
@ -149,12 +149,12 @@ Foam::tmp<Foam::scalarField> Foam::temperatureCoupledBase::K
else else
{ {
FatalErrorIn("temperatureCoupledBase::K() const") FatalErrorIn("temperatureCoupledBase::K() const")
<< "Did not find field " << KName_ << "Did not find field " << kappaName_
<< " on mesh " << mesh.name() << " patch " << patch_.name() << " on mesh " << mesh.name() << " patch " << patch_.name()
<< endl << endl
<< "Please set 'K' to one of " << KMethodTypeNames_.toc() << "Please set 'kappa' to one of " << KMethodTypeNames_.toc()
<< " and 'KName' to the name of the volScalar" << " and 'kappaName' to the name of the volScalar"
<< " or volSymmTensor field (if K=lookup)" << " or volSymmTensor field (if kappa=lookup)"
<< exit(FatalError); << exit(FatalError);
return scalarField(0); return scalarField(0);
@ -163,11 +163,11 @@ Foam::tmp<Foam::scalarField> Foam::temperatureCoupledBase::K
default: default:
{ {
FatalErrorIn("temperatureCoupledBase::K() const") FatalErrorIn("temperatureCoupledBase::kappa() const")
<< "Unimplemented method " << method_ << endl << "Unimplemented method " << method_ << endl
<< "Please set 'K' to one of " << KMethodTypeNames_.toc() << "Please set 'kappa' to one of " << KMethodTypeNames_.toc()
<< " and 'KName' to the name of the volScalar" << " and 'kappaName' to the name of the volScalar"
<< " or volSymmTensor field (if K=lookup)" << " or volSymmTensor field (if kappa=lookup)"
<< exit(FatalError); << exit(FatalError);
} }
break; break;
@ -178,9 +178,9 @@ Foam::tmp<Foam::scalarField> Foam::temperatureCoupledBase::K
void Foam::temperatureCoupledBase::write(Ostream& os) const void Foam::temperatureCoupledBase::write(Ostream& os) const
{ {
os.writeKeyword("K") << KMethodTypeNames_[method_] os.writeKeyword("kappa") << KMethodTypeNames_[method_]
<< token::END_STATEMENT << nl; << token::END_STATEMENT << nl;
os.writeKeyword("KName") << KName_ << token::END_STATEMENT << nl; os.writeKeyword("kappaName") << kappaName_ << token::END_STATEMENT << nl;
} }

View File

@ -27,13 +27,14 @@ Class
Description Description
Common functions for use in temperature coupled boundaries. For now only Common functions for use in temperature coupled boundaries. For now only
K() : heat conduction at patch. Gets supplied how to lookup/calculate K: kappa() : heat conduction at patch. Gets supplied how to lookup/calculate
kappa:
- 'lookup' : lookup volScalarField (or volSymmTensorField) with name - 'lookup' : lookup volScalarField (or volSymmTensorField) with name
- 'basicThermo' : use basicThermo and default compressible::turbulenceModel - 'basicThermo' : use basicThermo and default compressible::turbulenceModel
to calculate K to calculate kappa
- 'solidThermo' : use basicSolidThermo K() - 'solidThermo' : use basicSolidThermo kappa()
- 'directionalSolidThermo' directionalK() - 'directionalSolidThermo' directionalKappa()
SourceFiles SourceFiles
temperatureCoupledBase.C temperatureCoupledBase.C
@ -59,7 +60,7 @@ namespace Foam
class temperatureCoupledBase class temperatureCoupledBase
{ {
public: public:
//- Type of supplied K //- Type of supplied Kappa
enum KMethodType enum KMethodType
{ {
BASICTHERMO, BASICTHERMO,
@ -81,7 +82,7 @@ private:
const KMethodType method_; const KMethodType method_;
//- Name of thermal conductivity field (if looked up from database) //- Name of thermal conductivity field (if looked up from database)
const word KName_; const word kappaName_;
public: public:
@ -113,13 +114,13 @@ public:
} }
//- Name of thermal conductivity field //- Name of thermal conductivity field
const word& KName() const const word& kappaName() const
{ {
return KName_; return kappaName_;
} }
//- Given patch temperature calculate corresponding K field //- Given patch temperature calculate corresponding K field
tmp<scalarField> K(const scalarField& Tp) const; tmp<scalarField> kappa(const scalarField& Tp) const;
//- Write //- Write
void write(Ostream&) const; void write(Ostream&) const;

View File

@ -292,7 +292,7 @@ void temperatureThermoBaffle1DFvPatchScalarField<solidType>::updateCoeffs()
// Create fields for solid properties // Create fields for solid properties
forAll(KDeltaw, i) forAll(KDeltaw, i)
{ {
KDeltaw[i] = solid_().K((Tp[i] + nbrTp[i])/2.0)/thickness_[i]; KDeltaw[i] = solid_().kappa((Tp[i] + nbrTp[i])/2.0)/thickness_[i];
} }
const scalarField q const scalarField q

View File

@ -114,9 +114,9 @@ class temperatureThermoBaffle1DFvPatchScalarField
} }
scalar K(const scalar T) const scalar kappa(const scalar T) const
{ {
return solidPtr_().K(T); return solidPtr_().kappa(T);
} }
}; };

View File

@ -93,7 +93,7 @@ turbulentHeatFluxTemperatureFvPatchScalarField
) )
: :
fixedGradientFvPatchScalarField(ptf, p, iF, mapper), fixedGradientFvPatchScalarField(ptf, p, iF, mapper),
temperatureCoupledBase(patch(), ptf.KMethod(), ptf.KName()), temperatureCoupledBase(patch(), ptf.KMethod(), ptf.kappaName()),
heatSource_(ptf.heatSource_), heatSource_(ptf.heatSource_),
q_(ptf.q_, mapper) q_(ptf.q_, mapper)
{} {}
@ -124,7 +124,7 @@ turbulentHeatFluxTemperatureFvPatchScalarField
) )
: :
fixedGradientFvPatchScalarField(thftpsf), fixedGradientFvPatchScalarField(thftpsf),
temperatureCoupledBase(patch(), thftpsf.KMethod(), thftpsf.KName()), temperatureCoupledBase(patch(), thftpsf.KMethod(), thftpsf.kappaName()),
heatSource_(thftpsf.heatSource_), heatSource_(thftpsf.heatSource_),
q_(thftpsf.q_) q_(thftpsf.q_)
{} {}
@ -138,7 +138,7 @@ turbulentHeatFluxTemperatureFvPatchScalarField
) )
: :
fixedGradientFvPatchScalarField(thftpsf, iF), fixedGradientFvPatchScalarField(thftpsf, iF),
temperatureCoupledBase(patch(), thftpsf.KMethod(), thftpsf.KName()), temperatureCoupledBase(patch(), thftpsf.KMethod(), thftpsf.kappaName()),
heatSource_(thftpsf.heatSource_), heatSource_(thftpsf.heatSource_),
q_(thftpsf.q_) q_(thftpsf.q_)
{} {}
@ -188,12 +188,12 @@ void turbulentHeatFluxTemperatureFvPatchScalarField::updateCoeffs()
case hsPower: case hsPower:
{ {
const scalar Ap = gSum(patch().magSf()); const scalar Ap = gSum(patch().magSf());
gradient() = q_/(Ap*K(Tp)); gradient() = q_/(Ap*kappa(Tp));
break; break;
} }
case hsFlux: case hsFlux:
{ {
gradient() = q_/K(Tp); gradient() = q_/kappa(Tp);
break; break;
} }
default: default:

View File

@ -36,7 +36,7 @@ Description
type compressible::turbulentHeatFluxTemperature; type compressible::turbulentHeatFluxTemperature;
heatSource flux; // power [W]; flux [W/m2] heatSource flux; // power [W]; flux [W/m2]
q uniform 10; // heat power or flux q uniform 10; // heat power or flux
K basicThermo; // calculate K by alphaEff*thermo.Cp kappa basicThermo; // calculate kappa=alphaEff*thermo.Cp
value uniform 300; // initial temperature value value uniform 300; // initial temperature value
} }

View File

@ -68,7 +68,7 @@ turbulentTemperatureCoupledBaffleMixedFvPatchScalarField
) )
: :
mixedFvPatchScalarField(ptf, p, iF, mapper), mixedFvPatchScalarField(ptf, p, iF, mapper),
temperatureCoupledBase(patch(), ptf.KMethod(), ptf.KName()), temperatureCoupledBase(patch(), ptf.KMethod(), ptf.kappaName()),
neighbourFieldName_(ptf.neighbourFieldName_) neighbourFieldName_(ptf.neighbourFieldName_)
{} {}
@ -131,7 +131,7 @@ turbulentTemperatureCoupledBaffleMixedFvPatchScalarField
) )
: :
mixedFvPatchScalarField(wtcsf, iF), mixedFvPatchScalarField(wtcsf, iF),
temperatureCoupledBase(patch(), wtcsf.KMethod(), wtcsf.KName()), temperatureCoupledBase(patch(), wtcsf.KMethod(), wtcsf.kappaName()),
neighbourFieldName_(wtcsf.neighbourFieldName_) neighbourFieldName_(wtcsf.neighbourFieldName_)
{} {}
@ -186,11 +186,11 @@ void turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs()
scalarField nbrIntFld(nbrField.patchInternalField()); scalarField nbrIntFld(nbrField.patchInternalField());
distMap.distribute(nbrIntFld); distMap.distribute(nbrIntFld);
// Swap to obtain full local values of neighbour K*delta // Swap to obtain full local values of neighbour kappa*delta
scalarField nbrKDelta(nbrField.K(nbrField)*nbrPatch.deltaCoeffs()); scalarField nbrKDelta(nbrField.kappa(nbrField)*nbrPatch.deltaCoeffs());
distMap.distribute(nbrKDelta); distMap.distribute(nbrKDelta);
tmp<scalarField> myKDelta = K(*this)*patch().deltaCoeffs(); tmp<scalarField> myKDelta = kappa(*this)*patch().deltaCoeffs();
// Both sides agree on // Both sides agree on
@ -219,7 +219,7 @@ void turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs()
if (debug) if (debug)
{ {
scalar Q = gSum(K(*this)*patch().magSf()*snGrad()); scalar Q = gSum(kappa(*this)*patch().magSf()*snGrad());
Info<< patch().boundaryMesh().mesh().name() << ':' Info<< patch().boundaryMesh().mesh().name() << ':'
<< patch().name() << ':' << patch().name() << ':'

View File

@ -41,18 +41,20 @@ Description
{ {
type compressible::turbulentTemperatureCoupledBaffleMixed; type compressible::turbulentTemperatureCoupledBaffleMixed;
neighbourFieldName T; neighbourFieldName T;
K lookup; kappa lookup;
KName K; kappaName kappa;
value uniform 300; value uniform 300;
} }
Needs to be on underlying mapped(Wall)FvPatch. Needs to be on underlying mapped(Wall)FvPatch.
Note: K : heat conduction at patch. Gets supplied how to lookup/calculate K: Note: kappa : heat conduction at patch. Gets supplied how to lookup/calculate
kappa:
- 'lookup' : lookup volScalarField (or volSymmTensorField) with name - 'lookup' : lookup volScalarField (or volSymmTensorField) with name
- 'basicThermo' : use basicThermo and compressible::RASmodel to calculate K - 'basicThermo' : use basicThermo and compressible::RASmodel to calculate
- 'solidThermo' : use basicSolidThermo K() kappa
- 'directionalSolidThermo' directionalK() - 'solidThermo' : use basicSolidThermo kappa()
- 'directionalSolidThermo' directionalKappa()
Note: runs in parallel with arbitrary decomposition. Uses mapped Note: runs in parallel with arbitrary decomposition. Uses mapped
functionality to calculate exchange. functionality to calculate exchange.

View File

@ -67,7 +67,7 @@ turbulentTemperatureRadCoupledMixedFvPatchScalarField
) )
: :
mixedFvPatchScalarField(psf, p, iF, mapper), mixedFvPatchScalarField(psf, p, iF, mapper),
temperatureCoupledBase(patch(), psf.KMethod(), psf.KName()), temperatureCoupledBase(patch(), psf.KMethod(), psf.kappaName()),
TnbrName_(psf.TnbrName_), TnbrName_(psf.TnbrName_),
QrNbrName_(psf.QrNbrName_), QrNbrName_(psf.QrNbrName_),
QrName_(psf.QrName_) QrName_(psf.QrName_)
@ -134,7 +134,7 @@ turbulentTemperatureRadCoupledMixedFvPatchScalarField
) )
: :
mixedFvPatchScalarField(psf, iF), mixedFvPatchScalarField(psf, iF),
temperatureCoupledBase(patch(), psf.KMethod(), psf.KName()), temperatureCoupledBase(patch(), psf.KMethod(), psf.kappaName()),
TnbrName_(psf.TnbrName_), TnbrName_(psf.TnbrName_),
QrNbrName_(psf.QrNbrName_), QrNbrName_(psf.QrNbrName_),
QrName_(psf.QrName_) QrName_(psf.QrName_)
@ -182,11 +182,11 @@ void turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs()
// Swap to obtain full local values of neighbour K*delta // Swap to obtain full local values of neighbour K*delta
scalarField KDeltaNbr(nbrField.K(nbrField)*nbrPatch.deltaCoeffs()); scalarField KDeltaNbr(nbrField.kappa(nbrField)*nbrPatch.deltaCoeffs());
distMap.distribute(KDeltaNbr); distMap.distribute(KDeltaNbr);
scalarField KDelta(K(*this)*patch().deltaCoeffs()); scalarField KDelta(kappa(*this)*patch().deltaCoeffs());
scalarField Qr(Tp.size(), 0.0); scalarField Qr(Tp.size(), 0.0);
if (QrName_ != "none") if (QrName_ != "none")

View File

@ -35,8 +35,8 @@ Description
{ {
type compressible::turbulentTemperatureRadCoupledMixed; type compressible::turbulentTemperatureRadCoupledMixed;
TNbr T; // name of T field on neighbour region TNbr T; // name of T field on neighbour region
K lookup; kappa lookup;
KName K; KappaName kappa;
QrNbr Qr; // or none. Name of Qr field on neighbour region QrNbr Qr; // or none. Name of Qr field on neighbour region
Qr Qr; // or none. Name of Qr field on local region Qr Qr; // or none. Name of Qr field on local region
value uniform 300; value uniform 300;
@ -44,12 +44,13 @@ Description
Needs to be on underlying mapped(Wall)FvPatch. Needs to be on underlying mapped(Wall)FvPatch.
Note: K : heat conduction at patch. Gets supplied how to lookup/calculate Note: kappa : heat conduction at patch. Gets supplied how to
K: lookup/calculate
kappa:
- 'lookup' : lookup volScalarField (or volSymmTensorField) with name - 'lookup' : lookup volScalarField (or volSymmTensorField) with name
- 'basicThermo' : use basicThermo and compressible::RASmodel to calculate K - 'basicThermo' : use basicThermo and compressible::RASmodel to calculate K
- 'solidThermo' : use basicSolidThermo K() - 'solidThermo' : use basicSolidThermo kappa()
- 'directionalSolidThermo' directionalK() - 'directionalSolidThermo' directionalKappa()
Note: runs in parallel with arbitrary decomposition. Uses mapped Note: runs in parallel with arbitrary decomposition. Uses mapped
functionality to calculate exchange. functionality to calculate exchange.

View File

@ -50,10 +50,10 @@ boundaryField
{ {
type compressible::turbulentTemperatureRadCoupledMixed; type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T; Tnbr T;
K basicThermo; kappa basicThermo;
QrNbr none; QrNbr none;
Qr Qr; Qr Qr;
KName none; kappaName none;
value $internalField; value $internalField;
} }
} }

View File

@ -41,8 +41,8 @@ boundaryField
{ {
type compressible::turbulentTemperatureRadCoupledMixed; type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T; Tnbr T;
K solidThermo; kappa solidThermo;
KName none; kappaName none;
QrNbr Qr; QrNbr Qr;
Qr none; Qr none;
value uniform 298.15; value uniform 298.15;

View File

@ -26,12 +26,12 @@ vCoeffs
{ {
transport transport
{ {
K 0.135; kappa 0.135;
} }
radiation radiation
{ {
sigmaS 0.0; sigmaS 0.0;
kappa 0.0; //opaque kappaRad 0.0; //opaque
emissivity 0.17; emissivity 0.17;
} }
thermodynamics thermodynamics
@ -49,12 +49,12 @@ charCoeffs
{ {
transport transport
{ {
K 0.4; kappa 0.4;
} }
radiation radiation
{ {
sigmaS 0.0; sigmaS 0.0;
kappa 0.0; kappaRad 0.0;
emissivity 0.85; emissivity 0.85;
} }
thermodynamics thermodynamics

View File

@ -24,8 +24,8 @@ dictionaryReplacement
{ {
type compressible::temperatureThermoBaffle; type compressible::temperatureThermoBaffle;
neighbourFieldName T; neighbourFieldName T;
K solidThermo; kappa solidThermo;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }

View File

@ -94,12 +94,12 @@ dictionaryReplacement
Qs uniform 100; // heat flux [W/m2] Qs uniform 100; // heat flux [W/m2]
transport transport
{ {
K 1.0; kappa 1.0;
} }
radiation radiation
{ {
sigmaS 0; sigmaS 0;
kappa 0; kappaRad 0;
emissivity 0; emissivity 0;
} }
thermodynamics thermodynamics

View File

@ -94,12 +94,12 @@ dictionaryReplacement
Qs uniform 300; // heat flux [W/m2] Qs uniform 300; // heat flux [W/m2]
transport transport
{ {
K 1.0; kappa 1.0;
} }
radiation radiation
{ {
sigmaS 0; sigmaS 0;
kappa 0; kappaRad 0;
emissivity 0; emissivity 0;
} }
thermodynamics thermodynamics

View File

@ -95,7 +95,7 @@ dictionaryReplacement
// Coupled BC. // Coupled BC.
neighbourFieldName T; neighbourFieldName T;
K basicThermo; kappa basicThermo;
KName none; KName none;
@ -117,10 +117,10 @@ dictionaryReplacement
//- thermo properties //- thermo properties
rho rho [1 -3 0 0 0 0 0] 80; rho rho [1 -3 0 0 0 0 0] 80;
Cp Cp [0 2 -2 -1 0 0 0] 15; Cp Cp [0 2 -2 -1 0 0 0] 15;
K K [1 1 -3 -1 0 0 0] 0.01; kappa kappa [1 1 -3 -1 0 0 0] 0.01;
//- radiative properties //- radiative properties
kappa kappa [0 -1 0 0 0 0 0] 0; kappaRad kappaRad [0 -1 0 0 0 0 0] 0;
sigmaS sigmaS [0 -1 0 0 0 0 0] 0; sigmaS sigmaS [0 -1 0 0 0 0 0] 0;
emissivity emissivity [0 0 0 0 0 0 0] 1; emissivity emissivity [0 0 0 0 0 0 0] 1;

View File

@ -37,7 +37,7 @@ do
done done
# Run # Run
#runParallel `getApplication` 4 runParallel `getApplication` 4
# Reconstruct # Reconstruct
#for i in bottomAir topAir heater leftSolid rightSolid #for i in bottomAir topAir heater leftSolid rightSolid

View File

@ -23,10 +23,10 @@ constSolidThermoCoeffs
//- thermo properties //- thermo properties
rho rho [1 -3 0 0 0 0 0] 8000; rho rho [1 -3 0 0 0 0 0] 8000;
Cp Cp [0 2 -2 -1 0 0 0] 450; Cp Cp [0 2 -2 -1 0 0 0] 450;
K K [1 1 -3 -1 0 0 0] 80; kappa kappa [1 1 -3 -1 0 0 0] 80;
//- radiation properties //- radiation properties
kappa kappa [0 -1 0 0 0 0 0] 0; kappaRad kappaRad [0 -1 0 0 0 0 0] 0;
sigmaS sigmaS [0 -1 0 0 0 0 0] 0; sigmaS sigmaS [0 -1 0 0 0 0 0] 0;
emissivity emissivity [0 0 0 0 0 0 0] 0; emissivity emissivity [0 0 0 0 0 0 0] 0;
@ -41,11 +41,11 @@ isotropicKSolidThermoCoeffs
TValues (100 1000); TValues (100 1000);
rhoValues (1000 1700); rhoValues (1000 1700);
cpValues (1700 1700); cpValues (1700 1700);
KValues (80 40); kappaValues (80 40);
//- radiation properties //- radiation properties
emissivityValues (1 1); emissivityValues (1 1);
kappaValues (0 0); kappaRadValues (0 0);
sigmaSValues (0 0); sigmaSValues (0 0);
//- chemical properties //- chemical properties
@ -63,7 +63,7 @@ directionalKSolidThermoCoeffs
TValues (100 1000); TValues (100 1000);
rhoValues (1000 1700); rhoValues (1000 1700);
cpValues (1700 1700); cpValues (1700 1700);
KValues ((10 10 10) (40 40 40)); kappaValues ((10 10 10) (40 40 40));
coordinateSystem coordinateSystem
{ {
@ -81,7 +81,7 @@ directionalKSolidThermoCoeffs
//- radiation properties //- radiation properties
emissivityValues (1 1); emissivityValues (1 1);
kappaValues (1 1); kappaRadValues (1 1);
sigmaSValues (1 1); sigmaSValues (1 1);
} }
@ -94,14 +94,15 @@ pmmaCoeffs
{ {
transport transport
{ {
K0 0.152;
kappa0 0.152;
n0 1.3; n0 1.3;
Tref 300; //K0*pow(T/Tref_, n0)) Tref 300; //K0*pow(T/Tref_, n0))
} }
radiation radiation
{ {
sigmaS 0.0; sigmaS 0.0;
kappa 0.0; kappaRad 0.0;
emissivity 0.1; emissivity 0.1;
} }
thermodynamics thermodynamics
@ -121,7 +122,7 @@ charCoeffs
{ {
transport transport
{ {
K0 0.4; kappa0 0.4;
n0 1.3; n0 1.3;
Tref 300; //K0*pow(T/Tref_, n0)) Tref 300; //K0*pow(T/Tref_, n0))
} }
@ -129,7 +130,7 @@ charCoeffs
radiation radiation
{ {
sigmaS 0.0; sigmaS 0.0;
kappa 0.0; kappaRad 0.0;
emissivity 0.0; emissivity 0.0;
} }

View File

@ -57,8 +57,8 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureCoupledBaffleMixed; type compressible::turbulentTemperatureCoupledBaffleMixed;
neighbourFieldName T; neighbourFieldName T;
K basicThermo; kappa basicThermo;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
} }

View File

@ -47,8 +47,8 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureCoupledBaffleMixed; type compressible::turbulentTemperatureCoupledBaffleMixed;
neighbourFieldName T; neighbourFieldName T;
K solidThermo; kappa solidThermo;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
minY minY

View File

@ -43,8 +43,8 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureCoupledBaffleMixed; type compressible::turbulentTemperatureCoupledBaffleMixed;
neighbourFieldName T; neighbourFieldName T;
K solidThermo; kappa solidThermo;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
} }

View File

@ -43,8 +43,8 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureCoupledBaffleMixed; type compressible::turbulentTemperatureCoupledBaffleMixed;
neighbourFieldName T; neighbourFieldName T;
K solidThermo; kappa solidThermo;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
} }

View File

@ -68,8 +68,8 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureCoupledBaffleMixed; type compressible::turbulentTemperatureCoupledBaffleMixed;
neighbourFieldName T; neighbourFieldName T;
K basicThermo; kappa basicThermo;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
} }

View File

@ -70,8 +70,8 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureCoupledBaffleMixed; type compressible::turbulentTemperatureCoupledBaffleMixed;
neighbourFieldName T; neighbourFieldName T;
K basicThermo; kappa basicThermo;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
} }

View File

@ -57,8 +57,8 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureCoupledBaffleMixed; type compressible::turbulentTemperatureCoupledBaffleMixed;
neighbourFieldName T; neighbourFieldName T;
K basicThermo; kappa basicThermo;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
} }

View File

@ -48,8 +48,8 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureCoupledBaffleMixed; type compressible::turbulentTemperatureCoupledBaffleMixed;
neighbourFieldName T; neighbourFieldName T;
K solidThermo; kappa solidThermo;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
minY minY

View File

@ -43,8 +43,8 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureCoupledBaffleMixed; type compressible::turbulentTemperatureCoupledBaffleMixed;
neighbourFieldName T; neighbourFieldName T;
K solidThermo; kappa solidThermo;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
} }

View File

@ -43,8 +43,8 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureCoupledBaffleMixed; type compressible::turbulentTemperatureCoupledBaffleMixed;
neighbourFieldName T; neighbourFieldName T;
K solidThermo; kappa solidThermo;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
} }

View File

@ -69,8 +69,8 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureCoupledBaffleMixed; type compressible::turbulentTemperatureCoupledBaffleMixed;
neighbourFieldName T; neighbourFieldName T;
K basicThermo; kappa basicThermo;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
} }

View File

@ -25,10 +25,10 @@ constSolidThermoCoeffs
//- thermo properties //- thermo properties
rho rho [1 -3 0 0 0 0 0] 8000; rho rho [1 -3 0 0 0 0 0] 8000;
Cp Cp [0 2 -2 -1 0 0 0] 450; Cp Cp [0 2 -2 -1 0 0 0] 450;
K K [1 1 -3 -1 0 0 0] 80; kappa kappa [1 1 -3 -1 0 0 0] 80;
//- radiation properties //- radiation properties
kappa kappa [0 -1 0 0 0 0 0] 0; kappaRad kappaRad [0 -1 0 0 0 0 0] 0;
sigmaS sigmaS [0 -1 0 0 0 0 0] 0; sigmaS sigmaS [0 -1 0 0 0 0 0] 0;
emissivity emissivity [0 0 0 0 0 0 0] 1; emissivity emissivity [0 0 0 0 0 0 0] 1;
@ -43,11 +43,11 @@ isotropicKSolidThermoCoeffs
TValues (100 1000); TValues (100 1000);
rhoValues (1000 1700); rhoValues (1000 1700);
cpValues (1700 1700); cpValues (1700 1700);
KValues (80 40); kappaValues (80 40);
//- radiation properties //- radiation properties
emissivityValues (1 1); emissivityValues (1 1);
kappaValues (0 0); kappaRadValues (0 0);
sigmaSValues (0 0); sigmaSValues (0 0);
//- chemical properties //- chemical properties
@ -65,7 +65,7 @@ directionalKSolidThermoCoeffs
TValues (100 1000); TValues (100 1000);
rhoValues (1700 1700); rhoValues (1700 1700);
cpValues (1700 1700); cpValues (1700 1700);
KValues ((10 10 10) (40 40 40)); kappaValues ((10 10 10) (40 40 40));
coordinateSystem coordinateSystem
{ {
@ -83,7 +83,7 @@ directionalKSolidThermoCoeffs
//- radiation properties //- radiation properties
emissivityValues (1 1); emissivityValues (1 1);
kappaValues (1 1); kappaRadValues (1 1);
sigmaSValues (1 1); sigmaSValues (1 1);
} }
@ -96,14 +96,14 @@ pmmaCoeffs
{ {
transport transport
{ {
K0 0.152; kappa0 0.152;
n0 1.3; n0 1.3;
Tref 300; //K0*pow(T/Tref_, n0)) Tref 300; //K0*pow(T/Tref_, n0))
} }
radiation radiation
{ {
sigmaS 0.0; sigmaS 0.0;
kappa 0.0; kappaRad 0.0;
emissivity 0.1; emissivity 0.1;
} }
thermodynamics thermodynamics
@ -123,14 +123,14 @@ charCoeffs
{ {
transport transport
{ {
K0 0.4; kappa0 0.4;
n0 1.3; n0 1.3;
Tref 300; //K0*pow(T/Tref_, n0)) Tref 300; //K0*pow(T/Tref_, n0))
} }
radiation radiation
{ {
sigmaS 0.0; sigmaS 0.0;
kappa 0.0; kappaRad 0.0;
emissivity 0.0; emissivity 0.0;
} }
thermodynamics thermodynamics

View File

@ -57,8 +57,8 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureCoupledBaffleMixed; type compressible::turbulentTemperatureCoupledBaffleMixed;
neighbourFieldName T; neighbourFieldName T;
K basicThermo; kappa basicThermo;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
} }

View File

@ -47,8 +47,8 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureCoupledBaffleMixed; type compressible::turbulentTemperatureCoupledBaffleMixed;
neighbourFieldName T; neighbourFieldName T;
K solidThermo; kappa solidThermo;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
minY minY

View File

@ -43,8 +43,8 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureCoupledBaffleMixed; type compressible::turbulentTemperatureCoupledBaffleMixed;
neighbourFieldName T; neighbourFieldName T;
K solidThermo; kappa solidThermo;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
} }

View File

@ -43,8 +43,8 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureCoupledBaffleMixed; type compressible::turbulentTemperatureCoupledBaffleMixed;
neighbourFieldName T; neighbourFieldName T;
K solidThermo; kappa solidThermo;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
} }

View File

@ -68,8 +68,8 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureCoupledBaffleMixed; type compressible::turbulentTemperatureCoupledBaffleMixed;
neighbourFieldName T; neighbourFieldName T;
K basicThermo; kappa basicThermo;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
} }

View File

@ -25,10 +25,10 @@ constSolidThermoCoeffs
//- thermo properties //- thermo properties
rho rho [1 -3 0 0 0 0 0] 8000; rho rho [1 -3 0 0 0 0 0] 8000;
Cp Cp [0 2 -2 -1 0 0 0] 450; Cp Cp [0 2 -2 -1 0 0 0] 450;
K K [1 1 -3 -1 0 0 0] 80; kappa kappa [1 1 -3 -1 0 0 0] 80;
//- radiation properties //- radiation properties
kappa kappa [0 -1 0 0 0 0 0] 0; kappaRad kappaRad [0 -1 0 0 0 0 0] 0;
sigmaS sigmaS [0 -1 0 0 0 0 0] 0; sigmaS sigmaS [0 -1 0 0 0 0 0] 0;
emissivity emissivity [0 0 0 0 0 0 0] 1; emissivity emissivity [0 0 0 0 0 0 0] 1;
@ -43,11 +43,11 @@ isotropicKSolidThermoCoeffs
TValues (100 1000); TValues (100 1000);
rhoValues (1000 1700); rhoValues (1000 1700);
cpValues (1700 1700); cpValues (1700 1700);
KValues (80 40); kappaValues (80 40);
//- radiation properties //- radiation properties
emissivityValues (1 1); emissivityValues (1 1);
kappaValues (0 0); kappaRadValues (0 0);
sigmaSValues (0 0); sigmaSValues (0 0);
//- chemical properties //- chemical properties
@ -65,7 +65,7 @@ directionalKSolidThermoCoeffs
TValues (100 1000); TValues (100 1000);
rhoValues (1700 1700); rhoValues (1700 1700);
cpValues (1700 1700); cpValues (1700 1700);
KValues ((10 10 10) (40 40 40)); kappaValues ((10 10 10) (40 40 40));
coordinateSystem coordinateSystem
{ {
@ -83,8 +83,8 @@ directionalKSolidThermoCoeffs
//- radiation properties //- radiation properties
emissivityValues (1 1); emissivityValues (1 1);
kappaValues (1 1); kappaRadValues (1 1);
sigmaSValues (1 1); sigmaSValues (1 1);
} }
solidComponents solidComponents
@ -96,7 +96,7 @@ pmmaCoeffs
{ {
transport transport
{ {
K0 0.152; kappa0 0.152;
n0 1.3; n0 1.3;
Tref 300; //K0*pow(T/Tref_, n0)) Tref 300; //K0*pow(T/Tref_, n0))
} }
@ -104,7 +104,7 @@ pmmaCoeffs
radiation radiation
{ {
sigmaS 0.0; sigmaS 0.0;
kappa 0.0; kappaRad 0.0;
emissivity 0.1; emissivity 0.1;
} }
@ -126,7 +126,7 @@ charCoeffs
{ {
transport transport
{ {
K0 0.4; kappa0 0.4;
n0 1.3; n0 1.3;
Tref 300; //K0*pow(T/Tref_, n0)) Tref 300; //K0*pow(T/Tref_, n0))
} }
@ -134,7 +134,7 @@ charCoeffs
radiation radiation
{ {
sigmaS 0.0; sigmaS 0.0;
kappa 0.0; kappaRad 0.0;
emissivity 0.0; emissivity 0.0;
} }

View File

@ -25,10 +25,10 @@ constSolidThermoCoeffs
//- thermo properties //- thermo properties
rho rho [1 -3 0 0 0 0 0] 8000; rho rho [1 -3 0 0 0 0 0] 8000;
Cp Cp [0 2 -2 -1 0 0 0] 450; Cp Cp [0 2 -2 -1 0 0 0] 450;
K K [1 1 -3 -1 0 0 0] 80; kappa kappa [1 1 -3 -1 0 0 0] 80;
//- radiation properties //- radiation properties
kappa kappa [0 -1 0 0 0 0 0] 0; kappaRad kappaRad [0 -1 0 0 0 0 0] 0;
sigmaS sigmaS [0 -1 0 0 0 0 0] 0; sigmaS sigmaS [0 -1 0 0 0 0 0] 0;
emissivity emissivity [0 0 0 0 0 0 0] 0.5; emissivity emissivity [0 0 0 0 0 0 0] 0.5;
@ -43,11 +43,11 @@ isotropicKSolidThermoCoeffs
TValues (100 1000); TValues (100 1000);
rhoValues (1000 1700); rhoValues (1000 1700);
cpValues (1700 1700); cpValues (1700 1700);
KValues (80 40); kappaValues (80 40);
//- radiation properties //- radiation properties
emissivityValues (1 1); emissivityValues (1 1);
kappaValues (0 0); kappaRadValues (0 0);
sigmaSValues (0 0); sigmaSValues (0 0);
//- chemical properties //- chemical properties
@ -65,7 +65,7 @@ directionalKSolidThermoCoeffs
TValues (100 1000); TValues (100 1000);
rhoValues (1700 1700); rhoValues (1700 1700);
cpValues (1700 1700); cpValues (1700 1700);
KValues ((10 10 10) (40 40 40)); kappaValues ((10 10 10) (40 40 40));
coordinateSystem coordinateSystem
{ {
@ -83,8 +83,8 @@ directionalKSolidThermoCoeffs
//- radiation properties //- radiation properties
emissivityValues (1 1); emissivityValues (1 1);
kappaValues (1 1); kappaRadValues (1 1);
sigmaSValues (1 1); sigmaSValues (1 1);
} }
solidComponents solidComponents
@ -96,7 +96,7 @@ pmmaCoeffs
{ {
transport transport
{ {
K0 0.152; kappa0 0.152;
n0 1.3; n0 1.3;
Tref 300; //K0*pow(T/Tref_, n0)) Tref 300; //K0*pow(T/Tref_, n0))
} }
@ -104,7 +104,7 @@ pmmaCoeffs
radiation radiation
{ {
sigmaS 0.0; sigmaS 0.0;
kappa 0.0; kappaRad 0.0;
emissivity 0.1; emissivity 0.1;
} }
@ -126,7 +126,7 @@ charCoeffs
{ {
transport transport
{ {
K0 0.4; kappa0 0.4;
n0 1.3; n0 1.3;
Tref 300; //K0*pow(T/Tref_, n0)) Tref 300; //K0*pow(T/Tref_, n0))
} }
@ -134,7 +134,7 @@ charCoeffs
radiation radiation
{ {
sigmaS 0.0; sigmaS 0.0;
kappa 0.0; kappaRad 0.0;
emissivity 0.0; emissivity 0.0;
} }

View File

@ -55,10 +55,10 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureRadCoupledMixed; type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T; Tnbr T;
K basicThermo; kappa basicThermo;
QrNbr none; QrNbr none;
Qr Qr; Qr Qr;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
} }

View File

@ -48,10 +48,10 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureRadCoupledMixed; type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T; Tnbr T;
K solidThermo; kappa solidThermo;
QrNbr Qr; QrNbr Qr;
Qr none; Qr none;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
@ -59,10 +59,10 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureRadCoupledMixed; type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T; Tnbr T;
K solidThermo; kappa solidThermo;
QrNbr Qr; QrNbr Qr;
Qr none; Qr none;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
@ -70,8 +70,8 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureCoupledBaffleMixed; type compressible::turbulentTemperatureCoupledBaffleMixed;
neighbourFieldName T; neighbourFieldName T;
K solidThermo; kappa solidThermo;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
minY minY

View File

@ -44,10 +44,10 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureRadCoupledMixed; type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T; Tnbr T;
K solidThermo; kappa solidThermo;
QrNbr Qr; QrNbr Qr;
Qr none; Qr none;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
@ -55,10 +55,10 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureRadCoupledMixed; type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T; Tnbr T;
K solidThermo; kappa solidThermo;
QrNbr Qr; QrNbr Qr;
Qr none; Qr none;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
@ -66,8 +66,8 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureCoupledBaffleMixed; type compressible::turbulentTemperatureCoupledBaffleMixed;
neighbourFieldName T; neighbourFieldName T;
K solidThermo; kappa solidThermo;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
} }

View File

@ -44,10 +44,10 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureRadCoupledMixed; type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T; Tnbr T;
K solidThermo; kappa solidThermo;
QrNbr Qr; QrNbr Qr;
Qr none; Qr none;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
@ -55,10 +55,10 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureRadCoupledMixed; type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T; Tnbr T;
K solidThermo; kappa solidThermo;
QrNbr Qr; QrNbr Qr;
Qr none; Qr none;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }

View File

@ -66,10 +66,10 @@ dictionaryReplacement
{ {
type compressible::turbulentTemperatureRadCoupledMixed; type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T; Tnbr T;
K basicThermo; kappa basicThermo;
QrNbr none; QrNbr none;
Qr Qr; Qr Qr;
KName none; kappaName none;
value uniform 300; value uniform 300;
} }
} }