The use of the term 'source' in the context of post-processing is confusing and does not properly describe the process of region selection. The new names 'surfaceRegion' and 'volRegion' better describe the purpose of the functionObjects which is to provide field processing functionality limited to a specified region of space, either a surface or volume. The keyword 'source' is renamed 'regionType' which better describes the purpose which is to specify the method by which the surface or volume region is selected. The keyword to select the name of the surface or volume region is renamed from 'sourceName' to 'name' consistent with the other name-changes above.
89 lines
2.0 KiB
C++
89 lines
2.0 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: dev |
|
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
location "system";
|
|
object controlDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
application potentialFreeSurfaceFoam;
|
|
|
|
startFrom startTime;
|
|
|
|
startTime 0;
|
|
|
|
stopAt endTime;
|
|
|
|
endTime 20;
|
|
|
|
deltaT 0.001;
|
|
|
|
writeControl adjustableRunTime;
|
|
|
|
writeInterval 0.02;
|
|
|
|
purgeWrite 0;
|
|
|
|
writeFormat ascii;
|
|
|
|
writePrecision 6;
|
|
|
|
writeCompression uncompressed;
|
|
|
|
timeFormat general;
|
|
|
|
timePrecision 6;
|
|
|
|
runTimeModifiable yes;
|
|
|
|
adjustTimeStep yes;
|
|
|
|
maxCo 0.4;
|
|
|
|
maxDeltaT 1;
|
|
|
|
functions
|
|
{
|
|
forces
|
|
{
|
|
type forces;
|
|
libs ("libforces.so");
|
|
writeControl writeTime;
|
|
patches (floatingObject);
|
|
rho rhoInf;
|
|
log yes;
|
|
rhoInf 1000;
|
|
CofR (0 0 0);
|
|
}
|
|
|
|
poolHeight
|
|
{
|
|
type surfaceRegion;
|
|
libs ("libfieldFunctionObjects.so");
|
|
writeControl timeStep;
|
|
writeInterval 1;
|
|
log yes;
|
|
writeTotalArea no;
|
|
writeFields no;
|
|
regionType faceZone;
|
|
name f0;
|
|
operation areaAverage;
|
|
fields
|
|
(
|
|
zeta
|
|
);
|
|
|
|
}
|
|
};
|
|
|
|
// ************************************************************************* //
|