mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated clodu reqd inputs for uncoupled calcs
This commit is contained in:
@ -108,16 +108,22 @@ void Foam::KinematicCloud<CloudType>::solve(TrackData& td)
|
||||
|
||||
evolveCloud(td);
|
||||
|
||||
if (solution_.coupled())
|
||||
{
|
||||
td.cloud().relaxSources(td.cloud().cloudCopy());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
td.cloud().preEvolve();
|
||||
|
||||
evolveCloud(td);
|
||||
|
||||
if (solution_.coupled())
|
||||
{
|
||||
td.cloud().scaleSources();
|
||||
}
|
||||
}
|
||||
|
||||
td.cloud().info();
|
||||
|
||||
|
||||
@ -116,10 +116,16 @@ void Foam::cloudSolution::read()
|
||||
dict_.lookup("calcFrequency") >> calcFrequency_;
|
||||
dict_.lookup("maxCo") >> maxCo_;
|
||||
dict_.lookup("maxTrackTime") >> maxTrackTime_;
|
||||
|
||||
if (coupled_)
|
||||
{
|
||||
dict_.subDict("sourceTerms").lookup("resetOnStartup")
|
||||
>> resetSourcesOnStartup_;
|
||||
}
|
||||
}
|
||||
|
||||
if (coupled_)
|
||||
{
|
||||
const dictionary&
|
||||
schemesDict(dict_.subDict("sourceTerms").subDict("schemes"));
|
||||
|
||||
@ -152,6 +158,7 @@ void Foam::cloudSolution::read()
|
||||
is >> schemes_[i].second().second();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Foam::scalar Foam::cloudSolution::relaxCoeff(const word& fieldName) const
|
||||
|
||||
Reference in New Issue
Block a user