tutorials/modules/compressibleVoF/ballValve: Added cavitationVolume functionObject
to calculate and log the cavitation volume.
This commit is contained in:
@ -70,6 +70,22 @@ functions
|
||||
)
|
||||
|
||||
#includeFunc patchSurface(patch=".*(Walls|NonCouple)")
|
||||
|
||||
cavitationVolume
|
||||
{
|
||||
type volFieldValue;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
writeControl timeStep;
|
||||
writeInterval 1;
|
||||
writeFields false;
|
||||
|
||||
select all;
|
||||
|
||||
operation volIntegrate;
|
||||
|
||||
fields (alpha.vapour);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user