ENH: Deriving thermalBaffle BC for thermal regions from mixedCoupleRad BC. This

incorporates Qr into the balance at the boundary. Qr and QrNrb entries are
    necessary now.
    The coolingCircuit tutorial case was modified accordingly.
This commit is contained in:
Sergio Ferraris
2013-08-07 16:10:55 +01:00
parent 03c28e5d89
commit 673860a09d
4 changed files with 20 additions and 14 deletions

View File

@ -42,7 +42,7 @@ thermalBaffleFvPatchScalarField
const DimensionedField<scalar, volMesh>& iF
)
:
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField(p, iF),
turbulentTemperatureRadCoupledMixedFvPatchScalarField(p, iF),
owner_(false),
baffle_(),
dict_(dictionary::null)
@ -58,7 +58,7 @@ thermalBaffleFvPatchScalarField
const fvPatchFieldMapper& mapper
)
:
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField
turbulentTemperatureRadCoupledMixedFvPatchScalarField
(
ptf,
p,
@ -79,7 +79,7 @@ thermalBaffleFvPatchScalarField
const dictionary& dict
)
:
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField(p, iF, dict),
turbulentTemperatureRadCoupledMixedFvPatchScalarField(p, iF, dict),
owner_(false),
baffle_(),
dict_(dict)
@ -134,7 +134,7 @@ thermalBaffleFvPatchScalarField
const DimensionedField<scalar, volMesh>& iF
)
:
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField(ptf, iF),
turbulentTemperatureRadCoupledMixedFvPatchScalarField(ptf, iF),
owner_(ptf.owner_),
baffle_(ptf.baffle_),
dict_(ptf.dict_)
@ -177,13 +177,13 @@ void thermalBaffleFvPatchScalarField::updateCoeffs()
baffle_->evolve();
}
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs();
turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs();
}
void thermalBaffleFvPatchScalarField::write(Ostream& os) const
{
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::write(os);
turbulentTemperatureRadCoupledMixedFvPatchScalarField::write(os);
const fvMesh& thisMesh = patch().boundaryMesh().mesh();

View File

@ -50,9 +50,11 @@ Description
type compressible::temperatureThermoBaffle;
// Coupled boundary condition
neighbourFieldName T;
kappa fluidThermo;
KName none;
Tnbr T;
kappa fluidThermo; // or solidThermo
KappaName none;
QrNbr Qr; // or none.Name of Qr field on neighbour region
Qr Qr; // or none.Name of Qr field on local region
// Thermo baffle model
@ -111,7 +113,7 @@ Description
\endverbatim
SeeAlso
Foam::turbulentTemperatureCoupledBaffleMixedFvPatchScalarField
Foam::turbulentTemperatureRadCoupledMixedFvPatchScalarField
Foam::regionModels::thermalBaffleModels::thermalBaffleModel
SourceFiles
@ -126,7 +128,7 @@ SourceFiles
#include "autoPtr.H"
#include "regionModel.H"
#include "thermalBaffleModel.H"
#include "turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H"
#include "turbulentTemperatureRadCoupledMixedFvPatchScalarField.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -142,7 +144,7 @@ namespace compressible
class thermalBaffleFvPatchScalarField
:
public turbulentTemperatureCoupledBaffleMixedFvPatchScalarField
public turbulentTemperatureRadCoupledMixedFvPatchScalarField
{
// Private data

View File

@ -23,9 +23,11 @@ dictionaryReplacement
"region0_to.*"
{
type compressible::thermalBaffle;
neighbourFieldName T;
Tnbr T;
kappa solidThermo;
kappaName none;
QrNbr none;
Qr none;
value uniform 300;
}
baffleFaces2_side

View File

@ -94,9 +94,11 @@ dictionaryReplacement
type compressible::thermalBaffle;
// Coupled BC.
neighbourFieldName T;
Tnbr T;
kappa fluidThermo;
kappaName none;
QrNbr none;
Qr none;
// Thermo baffle model
thermalBaffleModel thermalBaffle;