functionObjects: renamed faceSource -> surfaceRegion, cellSource -> volRegion
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.
This commit is contained in:
@ -55,14 +55,14 @@ functions
|
||||
{
|
||||
inletFlux
|
||||
{
|
||||
type faceSource;
|
||||
type surfaceRegion;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
writeControl timeStep;
|
||||
log true;
|
||||
// Output field values as well
|
||||
writeFields false;
|
||||
source patch;
|
||||
sourceName inlet;
|
||||
regionType patch;
|
||||
name inlet;
|
||||
operation sum;
|
||||
|
||||
fields
|
||||
@ -74,13 +74,13 @@ functions
|
||||
outletFlux
|
||||
{
|
||||
$inletFlux;
|
||||
sourceName outlet;
|
||||
name outlet;
|
||||
}
|
||||
|
||||
atmosphereFlux
|
||||
{
|
||||
$inletFlux;
|
||||
sourceName atmosphere;
|
||||
name atmosphere;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -28,7 +28,7 @@ expansionRatio 1.0;
|
||||
linearDirectionCoeffs
|
||||
{
|
||||
axisPt (0 0 0);
|
||||
direction (1 -0.2 -0.02);
|
||||
direction (1 -0.2 -0.03);
|
||||
thickness 40;
|
||||
}
|
||||
|
||||
|
||||
@ -10,6 +10,5 @@ inletFlowRate 75;
|
||||
pressure 0;
|
||||
turbulentKE 4.14e-03;
|
||||
turbulentEpsilon 4.39e-05;
|
||||
#inputMode merge
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
awk '{print $1 " " $3}' postProcessing/poolHeight/0/faceSource.dat > poolHeight_vs_time
|
||||
awk '{print $1 " " $3}' postProcessing/poolHeight/0/surfaceRegion.dat > poolHeight_vs_time
|
||||
|
||||
@ -67,15 +67,15 @@ functions
|
||||
|
||||
poolHeight
|
||||
{
|
||||
type faceSource;
|
||||
type surfaceRegion;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
writeControl timeStep;
|
||||
writeInterval 1;
|
||||
log yes;
|
||||
writeTotalArea no;
|
||||
writeFields no;
|
||||
source faceZone;
|
||||
sourceName f0;
|
||||
regionType faceZone;
|
||||
name f0;
|
||||
operation areaAverage;
|
||||
fields
|
||||
(
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
awk '{print $1 " " $3}' postProcessing/poolHeight/0/faceSource.dat > poolHeight_vs_time
|
||||
awk '{print $1 " " $3}' postProcessing/poolHeight/0/surfaceRegion.dat > poolHeight_vs_time
|
||||
|
||||
@ -67,15 +67,15 @@ functions
|
||||
|
||||
poolHeight
|
||||
{
|
||||
type faceSource;
|
||||
type surfaceRegion;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
writeControl timeStep;
|
||||
writeInterval 1;
|
||||
log yes;
|
||||
writeTotalArea no;
|
||||
writeFields no;
|
||||
source faceZone;
|
||||
sourceName f0;
|
||||
regionType faceZone;
|
||||
name f0;
|
||||
operation areaAverage;
|
||||
fields
|
||||
(
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
inletMassFlowRate
|
||||
{
|
||||
type faceSource;
|
||||
type surfaceRegion;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
fields
|
||||
@ -21,8 +21,8 @@ inletMassFlowRate
|
||||
log true;
|
||||
surfaceFormat null;
|
||||
|
||||
source patch;
|
||||
sourceName inlet;
|
||||
regionType patch;
|
||||
name inlet;
|
||||
|
||||
operation sum;
|
||||
|
||||
@ -31,7 +31,7 @@ inletMassFlowRate
|
||||
|
||||
outletMassFlowRate
|
||||
{
|
||||
type faceSource;
|
||||
type surfaceRegion;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
fields
|
||||
@ -44,8 +44,8 @@ outletMassFlowRate
|
||||
log true;
|
||||
surfaceFormat null;
|
||||
|
||||
source patch;
|
||||
sourceName outlet;
|
||||
regionType patch;
|
||||
name outlet;
|
||||
|
||||
operation sum;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user