thermalBaffle1DFvPatchScalarField: Correct handling of relaxation
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1696
This commit is contained in:
parent
cd2e18fe66
commit
8277c32802
2 changed files with 7 additions and 7 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|
@ -55,7 +55,7 @@ thermalBaffle1DFvPatchScalarField
|
||||||
solidDict_(),
|
solidDict_(),
|
||||||
solidPtr_(NULL),
|
solidPtr_(NULL),
|
||||||
QrPrevious_(p.size()),
|
QrPrevious_(p.size()),
|
||||||
QrRelaxation_(0),
|
QrRelaxation_(1),
|
||||||
QrName_("undefined-Qr")
|
QrName_("undefined-Qr")
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
@ -102,7 +102,7 @@ thermalBaffle1DFvPatchScalarField
|
||||||
solidDict_(dict),
|
solidDict_(dict),
|
||||||
solidPtr_(),
|
solidPtr_(),
|
||||||
QrPrevious_(p.size(), 0.0),
|
QrPrevious_(p.size(), 0.0),
|
||||||
QrRelaxation_(dict.lookupOrDefault<scalar>("relaxation", 0)),
|
QrRelaxation_(dict.lookupOrDefault<scalar>("relaxation", 1)),
|
||||||
QrName_(dict.lookupOrDefault<word>("Qr", "none"))
|
QrName_(dict.lookupOrDefault<word>("Qr", "none"))
|
||||||
{
|
{
|
||||||
fvPatchScalarField::operator=(scalarField("value", dict, p.size()));
|
fvPatchScalarField::operator=(scalarField("value", dict, p.size()));
|
||||||
|
|
@ -439,7 +439,7 @@ void thermalBaffle1DFvPatchScalarField<solidType>::write(Ostream& os) const
|
||||||
|
|
||||||
QrPrevious_.writeEntry("QrPrevious", os);
|
QrPrevious_.writeEntry("QrPrevious", os);
|
||||||
os.writeKeyword("Qr")<< QrName_ << token::END_STATEMENT << nl;
|
os.writeKeyword("Qr")<< QrName_ << token::END_STATEMENT << nl;
|
||||||
os.writeKeyword("QrRelaxation")<< QrRelaxation_
|
os.writeKeyword("relaxation")<< QrRelaxation_
|
||||||
<< token::END_STATEMENT << nl;
|
<< token::END_STATEMENT << nl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|
@ -50,7 +50,7 @@ Description
|
||||||
Qs uniform 100; // heat flux [W/m2]
|
Qs uniform 100; // heat flux [W/m2]
|
||||||
|
|
||||||
Qr none;
|
Qr none;
|
||||||
relaxation 0;
|
relaxation 1;
|
||||||
|
|
||||||
// Solid thermo
|
// Solid thermo
|
||||||
specie
|
specie
|
||||||
|
|
@ -81,7 +81,7 @@ Description
|
||||||
samplePatch myPatch_master_master;
|
samplePatch myPatch_master_master;
|
||||||
|
|
||||||
Qr none;
|
Qr none;
|
||||||
relaxation 0;
|
relaxation 1;
|
||||||
}
|
}
|
||||||
\endverbatim
|
\endverbatim
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue