Fixed missing return for bad flux
This commit is contained in:
parent
7b7dce6b60
commit
bdd4993527
2 changed files with 16 additions and 1 deletions
|
@ -488,7 +488,12 @@ EulerDdtScheme<Type>::fvcDdtPhiCorr
|
||||||
(
|
(
|
||||||
ddtIOobject,
|
ddtIOobject,
|
||||||
rDeltaT
|
rDeltaT
|
||||||
*this->fvcDdtPhiCoeff(rho.oldTime(), U.oldTime(), phiAbs.oldTime())
|
*this->fvcDdtPhiCoeff
|
||||||
|
(
|
||||||
|
rho.oldTime(),
|
||||||
|
U.oldTime(),
|
||||||
|
phiAbs.oldTime()
|
||||||
|
)
|
||||||
*(
|
*(
|
||||||
fvc::interpolate(rA)*phiAbs.oldTime()
|
fvc::interpolate(rA)*phiAbs.oldTime()
|
||||||
- (fvc::interpolate(rA*U.oldTime()) & mesh().Sf())
|
- (fvc::interpolate(rA*U.oldTime()) & mesh().Sf())
|
||||||
|
|
|
@ -318,6 +318,16 @@ steadyStateDdtScheme<Type>::fvcDdtPhiCorr
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
FatalErrorIn
|
||||||
|
(
|
||||||
|
"steadyStateDdtScheme<Type>::fvcDdtPhiCorr"
|
||||||
|
) << "dimensions of phi are not correct"
|
||||||
|
<< abort(FatalError);
|
||||||
|
|
||||||
|
return fluxFieldType::null();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue