mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: thermoCoupleProbes - simplified initialisation
This commit is contained in:
@ -71,14 +71,7 @@ Foam::functionObjects::thermoCoupleProbes::thermoCoupleProbes
|
||||
|
||||
// Check if the property exist (resume old calculation)
|
||||
// or of it is new.
|
||||
if (foundProperty(typeName))
|
||||
{
|
||||
const dictionary& dict =
|
||||
this->stateDict().subDict(this->name()).subDict(typeName);
|
||||
|
||||
dict.lookup("Tc") >> Ttc_;
|
||||
}
|
||||
else
|
||||
if (!getProperty("Tc", Ttc_))
|
||||
{
|
||||
Ttc_ = probes::sample(thermo_.T());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user