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

@ -9,7 +9,7 @@ cd ${0%/*} || exit 1 # run from this directory
rm -rf constant/polyMesh/sets > /dev/null 2>&1
rm -rf 0/polyMesh > /dev/null 2>&1
rm system/cellSetDict > /dev/null 2>&1
rm system/topoSetDict > /dev/null 2>&1
cleanCase
)
@ -21,7 +21,7 @@ cd ${0%/*} || exit 1 # run from this directory
rm -rf constant/polyMesh/sets > /dev/null 2>&1
rm -rf 0 > /dev/null 2>&1
cp -r 0.org 0
rm system/cellSetDict > /dev/null 2>&1
rm system/topoSetDict > /dev/null 2>&1
rm -rf processor[0-9] > /dev/null 2>&1
cleanCase

View File

@ -12,8 +12,8 @@ refineMeshByCellSet()
while [ $# -ge 1 ]
do
echo "creating cell set for primary zone - $1"
cp system/cellSetDict.$1 system/cellSetDict
cellSet > log.cellSet.$1 2>&1
cp system/topoSetDict.$1 system/topoSetDict
topoSet > log.topoSet.$1 2>&1
echo "refining primary zone - $1"
refineMesh -dict -overwrite > log.refineMesh.$1 2>&1

View File

@ -11,19 +11,21 @@ FoamFile
format ascii;
class dictionary;
location "system";
object cellSetDict.1;
object topoSetDict.1;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
name c0;
action new;
topoSetSources
actions
(
boxToCell
{
box (0.004 -0.001 -1) (0.012 0.001 1);
name c0;
type cellSet;
action new;
source boxToCell;
sourceDict
{
box (0.004 -0.001 -1) (0.012 0.001 1);
}
}
);

View File

@ -11,19 +11,21 @@ FoamFile
format ascii;
class dictionary;
location "system";
object cellSetDict.3;
object topoSetDict.2;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
name c0;
action new;
topoSetSources
actions
(
boxToCell
{
box (0.00475 -0.000375 -1) (0.009 0.000375 1);
name c0;
type cellSet;
action new;
source boxToCell;
sourceDict
{
box (0.0045 -0.00075 -1) (0.0095 0.00075 1);
}
}
);

View File

@ -11,19 +11,21 @@ FoamFile
format ascii;
class dictionary;
location "system";
object cellSetDict.1;
object topoSetDict.3;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
name c0;
action new;
topoSetSources
actions
(
boxToCell
{
box ( 0.004 -0.001 -1 ) ( 0.012 0.001 1 );
name c0;
type cellSet;
action new;
source boxToCell;
sourceDict
{
box (0.00475 -0.000375 -1) (0.009 0.000375 1);
}
}
);

View File

@ -1,31 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object cellSetDict.2;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
name c0;
action new;
topoSetSources
(
boxToCell
{
box ( 0.0045 -0.00075 -1 ) ( 0.0095 0.00075 1 );
}
);
// ************************************************************************* //

View File

@ -1,31 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object cellSetDict.3;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
name c0;
action new;
topoSetSources
(
boxToCell
{
box ( 0.00475 -0.000375 -1 ) ( 0.009 0.000375 1 );
}
);
// ************************************************************************* //

View File

@ -11,19 +11,21 @@ FoamFile
format ascii;
class dictionary;
location "system";
object cellSetDict.2;
object topoSetDict.1;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
name c0;
action new;
topoSetSources
actions
(
boxToCell
{
box (0.0045 -0.00075 -1) (0.0095 0.00075 1);
name c0;
type cellSet;
action new;
source boxToCell;
sourceDict
{
box ( 0.004 -0.001 -1 ) ( 0.012 0.001 1 );
}
}
);

View File

@ -0,0 +1,33 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object topoSetDict.2;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions
(
{
name c0;
type cellSet;
action new;
source boxToCell;
sourceDict
{
box ( 0.0045 -0.00075 -1 ) ( 0.0095 0.00075 1 );
}
}
);
// ************************************************************************* //

View File

@ -0,0 +1,33 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object topoSetDict.3;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions
(
{
name c0;
type cellSet;
action new;
source boxToCell;
sourceDict
{
box ( 0.00475 -0.000375 -1 ) ( 0.009 0.000375 1 );
}
}
);
// ************************************************************************* //