mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Clouds - only read parcel fields when solution is active
This commit is contained in:
@ -114,12 +114,12 @@ Foam::CollidingCloud<CloudType>::CollidingCloud
|
||||
if (this->solution().active())
|
||||
{
|
||||
setModels();
|
||||
}
|
||||
|
||||
if (readFields)
|
||||
{
|
||||
parcelType::readFields(*this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -360,12 +360,12 @@ Foam::KinematicCloud<CloudType>::KinematicCloud
|
||||
if (solution_.active())
|
||||
{
|
||||
setModels();
|
||||
}
|
||||
|
||||
if (readFields)
|
||||
{
|
||||
parcelType::readFields(*this);
|
||||
}
|
||||
}
|
||||
|
||||
if (solution_.resetSourcesOnStartup())
|
||||
{
|
||||
|
||||
@ -117,6 +117,11 @@ Foam::ReactingCloud<CloudType>::ReactingCloud
|
||||
if (this->solution().active())
|
||||
{
|
||||
setModels();
|
||||
|
||||
if (readFields)
|
||||
{
|
||||
parcelType::readFields(*this, this->composition());
|
||||
}
|
||||
}
|
||||
|
||||
// Set storage for mass source fields and initialise to zero
|
||||
@ -142,11 +147,6 @@ Foam::ReactingCloud<CloudType>::ReactingCloud
|
||||
);
|
||||
}
|
||||
|
||||
if (readFields)
|
||||
{
|
||||
parcelType::readFields(*this, this->composition());
|
||||
}
|
||||
|
||||
if (this->solution().resetSourcesOnStartup())
|
||||
{
|
||||
resetSourceTerms();
|
||||
|
||||
@ -94,12 +94,12 @@ Foam::ReactingMultiphaseCloud<CloudType>::ReactingMultiphaseCloud
|
||||
if (this->solution().active())
|
||||
{
|
||||
setModels();
|
||||
}
|
||||
|
||||
if (readFields)
|
||||
{
|
||||
parcelType::readFields(*this, this->composition());
|
||||
}
|
||||
}
|
||||
|
||||
if (this->solution().resetSourcesOnStartup())
|
||||
{
|
||||
|
||||
@ -135,12 +135,12 @@ Foam::ThermoCloud<CloudType>::ThermoCloud
|
||||
if (this->solution().active())
|
||||
{
|
||||
setModels();
|
||||
}
|
||||
|
||||
if (readFields)
|
||||
{
|
||||
parcelType::readFields(*this);
|
||||
}
|
||||
}
|
||||
|
||||
if (this->solution().resetSourcesOnStartup())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user