mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: residuals function object - store results for further processing
This commit is contained in:
@ -87,7 +87,13 @@ void Foam::functionObjects::residuals::writeResidual(const word& fieldName)
|
|||||||
{
|
{
|
||||||
if (component(validComponents, cmpt) != -1)
|
if (component(validComponents, cmpt) != -1)
|
||||||
{
|
{
|
||||||
file() << token::TAB << component(residual, cmpt);
|
const scalar r = component(residual, cmpt);
|
||||||
|
|
||||||
|
file() << token::TAB << r;
|
||||||
|
|
||||||
|
const word resultName =
|
||||||
|
fieldName + word(pTraits<Type>::componentNames[cmpt]);
|
||||||
|
setResult(resultName, r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user