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

View File

@ -50,9 +50,11 @@ Description
type compressible::temperatureThermoBaffle; type compressible::temperatureThermoBaffle;
// Coupled boundary condition // Coupled boundary condition
neighbourFieldName T; Tnbr T;
kappa fluidThermo; kappa fluidThermo; // or solidThermo
KName none; 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 // Thermo baffle model
@ -111,7 +113,7 @@ Description
\endverbatim \endverbatim
SeeAlso SeeAlso
Foam::turbulentTemperatureCoupledBaffleMixedFvPatchScalarField Foam::turbulentTemperatureRadCoupledMixedFvPatchScalarField
Foam::regionModels::thermalBaffleModels::thermalBaffleModel Foam::regionModels::thermalBaffleModels::thermalBaffleModel
SourceFiles SourceFiles
@ -126,7 +128,7 @@ SourceFiles
#include "autoPtr.H" #include "autoPtr.H"
#include "regionModel.H" #include "regionModel.H"
#include "thermalBaffleModel.H" #include "thermalBaffleModel.H"
#include "turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H" #include "turbulentTemperatureRadCoupledMixedFvPatchScalarField.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -142,7 +144,7 @@ namespace compressible
class thermalBaffleFvPatchScalarField class thermalBaffleFvPatchScalarField
: :
public turbulentTemperatureCoupledBaffleMixedFvPatchScalarField public turbulentTemperatureRadCoupledMixedFvPatchScalarField
{ {
// Private data // Private data

View File

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

View File

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