mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Fixing reading of volumeUpdateMethod
Signed-off-by: Kutalmis Bercin <kutalmis.bercin@esi-group.com>
This commit is contained in:
committed by
Andrew Heather
parent
ba4a675cd3
commit
e646218af9
@ -61,20 +61,27 @@ inline Foam::ReactingParcel<ParcelType>::constantProperties::constantProperties
|
|||||||
ParcelType::constantProperties(parentDict),
|
ParcelType::constantProperties(parentDict),
|
||||||
pMin_(this->dict_, "pMin", 1000.0),
|
pMin_(this->dict_, "pMin", 1000.0),
|
||||||
constantVolume_(this->dict_, "constantVolume", false),
|
constantVolume_(this->dict_, "constantVolume", false),
|
||||||
volUpdateType_
|
volUpdateType_(this->dict_, "volumeUpdateMethod")
|
||||||
(
|
|
||||||
this->dict_,
|
|
||||||
"volumeUpdateMethod",
|
|
||||||
volumeUpdateType::mConstRho
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
// If constantVolume found use it
|
// If constantVolume found use it
|
||||||
if (this->dict_.found("constantVolume"))
|
if (this->dict_.found("constantVolume"))
|
||||||
{
|
{
|
||||||
volUpdateType_.setValue(mUndefined);
|
volUpdateType_.setValue(mUndefined);
|
||||||
}
|
}
|
||||||
else if (this->dict_.found("volumeUpdateMethod"))
|
else
|
||||||
{
|
{
|
||||||
|
if (!this->dict_.found("volumeUpdateMethod"))
|
||||||
|
{
|
||||||
|
FatalErrorInFunction
|
||||||
|
<< "Either 'constantVolume' or 'volumeUpdateMethod' " << nl
|
||||||
|
<< " must be provided. " << nl
|
||||||
|
<< " The new keyword is 'volumeUpdateMethod'. " << nl
|
||||||
|
<< " Available methods are : " << nl
|
||||||
|
<< " constantRho, constantVolume or updateRhoAndVol. " << nl
|
||||||
|
<< " 'constantVolume' is either true/false " << nl
|
||||||
|
<< nl << exit(FatalError);
|
||||||
|
}
|
||||||
|
|
||||||
const word volumeUpdateMethod
|
const word volumeUpdateMethod
|
||||||
(
|
(
|
||||||
this->dict_.getWord("volumeUpdateMethod")
|
this->dict_.getWord("volumeUpdateMethod")
|
||||||
|
|||||||
Reference in New Issue
Block a user