thermalBaffle1DFvPatchScalarField: Correct handling of relaxation

Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1696
This commit is contained in:
Henry
2015-05-18 16:32:43 +01:00
parent d93063e238
commit 93b3113b04
2 changed files with 6 additions and 6 deletions

View File

@ -55,7 +55,7 @@ thermalBaffle1DFvPatchScalarField
solidDict_(),
solidPtr_(NULL),
QrPrevious_(p.size()),
QrRelaxation_(0),
QrRelaxation_(1),
QrName_("undefined-Qr")
{}
@ -102,7 +102,7 @@ thermalBaffle1DFvPatchScalarField
solidDict_(dict),
solidPtr_(),
QrPrevious_(p.size(), 0.0),
QrRelaxation_(dict.lookupOrDefault<scalar>("relaxation", 0)),
QrRelaxation_(dict.lookupOrDefault<scalar>("relaxation", 1)),
QrName_(dict.lookupOrDefault<word>("Qr", "none"))
{
fvPatchScalarField::operator=(scalarField("value", dict, p.size()));
@ -439,7 +439,7 @@ void thermalBaffle1DFvPatchScalarField<solidType>::write(Ostream& os) const
QrPrevious_.writeEntry("QrPrevious", os);
os.writeKeyword("Qr")<< QrName_ << token::END_STATEMENT << nl;
os.writeKeyword("QrRelaxation")<< QrRelaxation_
os.writeKeyword("relaxation")<< QrRelaxation_
<< token::END_STATEMENT << nl;
}

View File

@ -50,7 +50,7 @@ Description
Qs uniform 100; // heat flux [W/m2]
Qr none;
relaxation 0;
relaxation 1;
// Solid thermo
specie
@ -81,7 +81,7 @@ Description
samplePatch myPatch_master_master;
Qr none;
relaxation 0;
relaxation 1;
}
\endverbatim
@ -136,7 +136,7 @@ class thermalBaffle1DFvPatchScalarField
//- Solid thermo
mutable autoPtr<solidType> solidPtr_;
//- Chache Qr for relaxation
//- Cache Qr for relaxation
scalarField QrPrevious_;
//- Relaxation for Qr