BUG: Changing init for thermocouple FO. Changing radiation.correct in fireFoam to allow

correct case re-start
This commit is contained in:
sergio
2016-10-27 08:49:47 -07:00
parent f4d80786eb
commit ccf3b9db13
2 changed files with 9 additions and 3 deletions

View File

@ -9,7 +9,6 @@ tmp<fv::convectionScheme<scalar>> mvConvection
)
);
{
radiation->correct();
combustion->correct();
dQ = combustion->dQ();
volScalarField Yt(0.0*Y[0]);
@ -48,6 +47,8 @@ tmp<fv::convectionScheme<scalar>> mvConvection
Y[inertIndex] = scalar(1) - Yt;
Y[inertIndex].max(0.0);
radiation->correct();
volScalarField& he = thermo.he();
fvScalarMatrix EEqn

View File

@ -68,9 +68,14 @@ Foam::functionObjects::thermoCoupleProbes::thermoCoupleProbes
// Check if the property exist (resume old calculation)
// or of it is new.
if (!getProperty("Tc", Ttc_))
dictionary probeDict;
if (getDict(typeName, probeDict))
{
Ttc_ = probes::sample(thermo_.T());
probeDict.lookup("Tc") >> Ttc_;
}
else
{
Ttc_ = probes::sample(thermo_.T());
}
// Note: can only create the solver once all samples have been found