mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Improved the basic tutorial clean functions.
This commit is contained in:
@ -61,12 +61,17 @@ cleanTimeDirectories ()
|
|||||||
cleanCase ()
|
cleanCase ()
|
||||||
{
|
{
|
||||||
cleanTimeDirectories
|
cleanTimeDirectories
|
||||||
|
rm -rf processor* > /dev/null 2>&1
|
||||||
|
rm -rf probes* > /dev/null 2>&1
|
||||||
|
rm -rf forces* > /dev/null 2>&1
|
||||||
|
|
||||||
rm -rf constant/polyMesh/{allOwner*,cell*,face*,meshModifiers*} \
|
rm -rf system/machines \
|
||||||
|
constant/polyMesh/{allOwner*,cell*,face*,meshModifiers*} \
|
||||||
constant/polyMesh/{owner*,neighbour*,point*,edge*} \
|
constant/polyMesh/{owner*,neighbour*,point*,edge*} \
|
||||||
constant/polyMesh/{cellLevel*,pointLevel*,refinementHistory*,surfaceIndex*} \
|
constant/polyMesh/{cellLevel*,pointLevel*,refinementHistory*,surfaceIndex*} \
|
||||||
constant/{cellLevel*,pointLevel*} \
|
constant/{cellToRegion,cellLevel*,pointLevel*} \
|
||||||
constant/polyMesh/sets/ \
|
constant/polyMesh/sets/ \
|
||||||
|
VTK \
|
||||||
> /dev/null 2>&1
|
> /dev/null 2>&1
|
||||||
|
|
||||||
for f in `find . -name "*Dict"`
|
for f in `find . -name "*Dict"`
|
||||||
@ -76,13 +81,6 @@ cleanCase ()
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanParallelCase ()
|
|
||||||
{
|
|
||||||
cleanCase
|
|
||||||
|
|
||||||
rm -rf processor* > /dev/null 2>&1
|
|
||||||
}
|
|
||||||
|
|
||||||
removeCase ()
|
removeCase ()
|
||||||
{
|
{
|
||||||
echo "Removing $case case"
|
echo "Removing $case case"
|
||||||
|
|||||||
@ -5,5 +5,3 @@
|
|||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
rm -rf 0/lagrangian 0/dsmcSigmaTcRMax
|
rm -rf 0/lagrangian 0/dsmcSigmaTcRMax
|
||||||
rm -rf processor*
|
|
||||||
rm -f system/machines
|
|
||||||
@ -5,6 +5,3 @@
|
|||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
rm -rf 0/lagrangian 0/dsmcSigmaTcRMax
|
rm -rf 0/lagrangian 0/dsmcSigmaTcRMax
|
||||||
rm -rf processor*
|
|
||||||
rm -rf forces1
|
|
||||||
rm -f system/machines
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# Source tutorial clean functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
|
||||||
|
|
||||||
cleanCase
|
|
||||||
rm -rf VTK
|
|
||||||
rm -rf constant/cellToRegion constant/polyMesh/sets
|
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
|
||||||
@ -47,10 +47,10 @@ runTimeModifiable yes;
|
|||||||
|
|
||||||
functions
|
functions
|
||||||
{
|
{
|
||||||
probes1
|
probes
|
||||||
{
|
{
|
||||||
type probes;
|
type probes;
|
||||||
functionObjectLibs ( "libsampling.so" );
|
functionObjectLibs ("libsampling.so");
|
||||||
enabled true;
|
enabled true;
|
||||||
outputControl timeStep;
|
outputControl timeStep;
|
||||||
outputInterval 1;
|
outputInterval 1;
|
||||||
@ -74,7 +74,7 @@ functions
|
|||||||
fieldAverage1
|
fieldAverage1
|
||||||
{
|
{
|
||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ("libfieldFunctionObjects.so");
|
||||||
enabled true;
|
enabled true;
|
||||||
outputControl outputTime;
|
outputControl outputTime;
|
||||||
fields
|
fields
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user