Utility sample: replaced by 'postProcess -func sample'

To re-use existing 'sampleDict' files simply add the following entries:

    type sets;
    libs ("libsampling.so");

and run

    postProcess -func sampleDict

It is probably better to also rename 'sampleDict' -> 'sample' and then run

    postProcess -func sampleDict
This commit is contained in:
Henry Weller
2016-06-13 14:27:46 +01:00
parent ffc5578812
commit d9f423ec85
22 changed files with 122 additions and 573 deletions

View File

@ -11,10 +11,13 @@ FoamFile
format ascii;
class dictionary;
location "system";
object sampleDict;
object sample;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type sets;
libs ("libsampling.so");
interpolationScheme cellPointFace;
writeFormat raw;

View File

@ -11,10 +11,13 @@ FoamFile
format ascii;
class dictionary;
location "system";
object sampleDict;
object sample;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type sets;
libs ("libsampling.so");
interpolationScheme cellPointFace;
setFormat raw;

View File

@ -11,10 +11,13 @@ FoamFile
format ascii;
class dictionary;
location "system";
object sampleDict;
object sample;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type sets;
libs ("libsampling.so");
interpolationScheme cellPoint;
setFormat raw;

View File

@ -9,6 +9,6 @@ application=`getApplication`
runApplication blockMesh
runApplication setFields
runApplication $application
runApplication sample
runApplication postProcess -func sample
#------------------------------------------------------------------------------

View File

@ -11,10 +11,13 @@ FoamFile
format ascii;
class dictionary;
location "system";
object sampleDict;
object sample;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type sets;
libs ("libsampling.so");
interpolationScheme cellPoint;
setFormat raw;

View File

@ -9,6 +9,6 @@ application=`getApplication`
runApplication blockMesh
runApplication $application
runApplication sample
runApplication postProcess -func sample
#------------------------------------------------------------------------------

View File

@ -15,6 +15,9 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type sets;
libs ("libsampling.so");
interpolationScheme cellPoint;
setFormat raw;

View File

@ -5,7 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -rf sets
rm -f validation/*.eps
#------------------------------------------------------------------------------

View File

@ -9,7 +9,7 @@ application=`getApplication`
runApplication blockMesh
runApplication $application
runApplication sample -latestTime
runApplication postProcess -latestTime -func sample
( cd validation && ./createGraphs )

View File

@ -11,11 +11,14 @@ FoamFile
format ascii;
class dictionary;
location "system";
object sampleDict;
object sample;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type sets;
libs ("libsampling.so");
interpolationScheme cellPointFace;
setFormat raw;

View File

@ -3,7 +3,7 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
# \\/ M anipulation |
#-------------------------------------------------------------------------------
# License
@ -86,7 +86,7 @@ then
exit 1
fi
SETSDIR="../postProcessing/sets"
SETSDIR="../postProcessing/sample"
if [ ! -d $SETSDIR ]
then