mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: fluxSummary function object - added faceZone area output on construction
This commit is contained in:
@ -677,8 +677,11 @@ Foam::fluxSummary::~fluxSummary()
|
||||
|
||||
void Foam::fluxSummary::read(const dictionary& dict)
|
||||
{
|
||||
if (active_)
|
||||
if (!active_)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
functionObjectFile::read(dict);
|
||||
|
||||
log_ = dict.lookupOrDefault<Switch>("log", true);
|
||||
@ -791,6 +794,21 @@ void Foam::fluxSummary::read(const dictionary& dict)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Provide some output
|
||||
if (log_)
|
||||
{
|
||||
Info<< type() << " " << name_ << " output:" << nl;
|
||||
|
||||
forAll(faceZoneName_, zoneI)
|
||||
{
|
||||
const word& zoneName = faceZoneName_[zoneI];
|
||||
scalar zoneArea = faceArea_[zoneI];
|
||||
|
||||
Info<< " Zone: " << zoneName << ", area: " << zoneArea << nl;
|
||||
}
|
||||
|
||||
Info<< endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user