Skip to content

Commit

Permalink
thermalBaffle1DFvPatchScalarField: Correct handling of relaxation
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry authored and Henry committed May 18, 2015
1 parent cd2e18f commit 8277c32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
Expand Down Expand Up @@ -55,7 +55,7 @@ thermalBaffle1DFvPatchScalarField
solidDict_(),
solidPtr_(NULL),
QrPrevious_(p.size()),
QrRelaxation_(0),
QrRelaxation_(1),
QrName_("undefined-Qr")
{}

Expand Down Expand Up @@ -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()));
Expand Down Expand Up @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
Expand Down Expand Up @@ -50,7 +50,7 @@ Description
Qs uniform 100; // heat flux [W/m2]
Qr none;
relaxation 0;
relaxation 1;
// Solid thermo
specie
Expand Down Expand Up @@ -81,7 +81,7 @@ Description
samplePatch myPatch_master_master;
Qr none;
relaxation 0;
relaxation 1;
}
\endverbatim
Expand Down

0 comments on commit 8277c32

Please sign in to comment.