mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: thermoCoupleProbes - store properties under FO name to avoid clashes with other instances
This commit is contained in:
@ -67,9 +67,9 @@ Foam::functionObjects::thermoCoupleProbes::thermoCoupleProbes
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check if the property exist (resume old calculation)
|
// Check if the property exist (resume old calculation)
|
||||||
// or of it is new.
|
// or of it is new
|
||||||
dictionary probeDict;
|
dictionary probeDict;
|
||||||
if (getDict(typeName, probeDict))
|
if (getDict(name, probeDict))
|
||||||
{
|
{
|
||||||
probeDict.lookup("Tc") >> Ttc_;
|
probeDict.lookup("Tc") >> Ttc_;
|
||||||
}
|
}
|
||||||
@ -172,7 +172,7 @@ bool Foam::functionObjects::thermoCoupleProbes::write()
|
|||||||
|
|
||||||
dictionary probeDict;
|
dictionary probeDict;
|
||||||
probeDict.add("Tc", Ttc_);
|
probeDict.add("Tc", Ttc_);
|
||||||
setProperty(typeName, probeDict);
|
setProperty(name(), probeDict);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user