ENH: Converted all cellSet/faceSet/pointSet to topoSet.

This commit is contained in:
mattijs
2010-05-10 17:17:49 +01:00
parent 49bf24b194
commit c367e07642
58 changed files with 415 additions and 1530 deletions

View File

@ -4,7 +4,6 @@ cd ${0%/*} || exit 1 # run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
rm system/cellSetDict > /dev/null 2>&1
rm -rf 0 > /dev/null 2>&1
cleanCase

View File

@ -7,19 +7,8 @@ cd ${0%/*} || exit 1 # run from this directory
# Set application name
application="interDyMFoam"
makeMeshByCellSet()
{
while [ $# -ge 1 ]
do
echo "Running cellSet operation $1"
cp system/cellSetDict.$1 system/cellSetDict
cellSet > log.cellSet.$1 2>&1
shift
done
}
runApplication blockMesh
makeMeshByCellSet 1 2
runApplication topoSet
runApplication subsetMesh -overwrite c0 -patch floatingObject
cp -r 0.org 0 > /dev/null 2>&1
runApplication setFields

View File

@ -1,24 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object cellSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
name c0;
action invert;
topoSetSources ();
// ************************************************************************* //

View File

@ -10,20 +10,28 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
object cellSetDict;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
name c0;
action new;
topoSetSources
actions
(
boxToCell
{
box (0.35 0.35 0.44) (0.65 0.65 0.56);
name c0;
type cellSet;
action new;
source boxToCell;
sourceDict
{
box (0.35 0.35 0.44) (0.65 0.65 0.56);
}
}
{
name c0;
type cellSet;
action invert;
}
);