mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
SchaefferFrictionalStress: phi input in deg as in JohnsonJacksonFrictionalStress
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1204
This commit is contained in:
@ -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-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -127,10 +127,12 @@ bool Foam::kineticTheoryModels::frictionalStressModels::JohnsonJackson::read()
|
||||
{
|
||||
coeffDict_ <<= dict_.subDict(typeName + "Coeffs");
|
||||
|
||||
Fr_.readIfPresent(coeffDict_);
|
||||
eta_.readIfPresent(coeffDict_);
|
||||
p_.readIfPresent(coeffDict_);
|
||||
phi_.readIfPresent(coeffDict_);
|
||||
Fr_.read(coeffDict_);
|
||||
eta_.read(coeffDict_);
|
||||
p_.read(coeffDict_);
|
||||
|
||||
phi_.read(coeffDict_);
|
||||
phi_ *= constant::mathematical::pi/180.0;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -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-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -57,7 +57,9 @@ Foam::kineticTheoryModels::frictionalStressModels::Schaeffer::Schaeffer
|
||||
frictionalStressModel(dict),
|
||||
coeffDict_(dict.subDict(typeName + "Coeffs")),
|
||||
phi_("phi", dimless, coeffDict_.lookup("phi"))
|
||||
{}
|
||||
{
|
||||
phi_ *= constant::mathematical::pi/180.0;
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
@ -158,7 +160,8 @@ bool Foam::kineticTheoryModels::frictionalStressModels::Schaeffer::read()
|
||||
{
|
||||
coeffDict_ <<= dict_.subDict(typeName + "Coeffs");
|
||||
|
||||
phi_.readIfPresent(coeffDict_);
|
||||
phi_.read(coeffDict_);
|
||||
phi_ *= constant::mathematical::pi/180.0;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user