mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add dictionary-driven multi-pass stitchMesh facility
- the dictionary-driven variant of stitchMesh allows sequential
application of 'stitch' operation with requiring intermediate
writing to disk.
- Without arguments:
* stitchMesh uses a system/stitchMeshDict or -dict dict
- With arguments:
* master/slave patches specified on the command-line as in previous
versions.
This commit is contained in:
@ -4,9 +4,11 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
runApplication ./Allmesh
|
||||
|
||||
for dir in x y z
|
||||
do
|
||||
runApplication -s dir-$dir stitchMesh -partial outer$dir inner$dir
|
||||
done
|
||||
# Use stitchMesh with dictionary
|
||||
|
||||
# runApplication stitchMesh -intermediate
|
||||
runApplication stitchMesh -overwrite
|
||||
|
||||
runApplication checkMesh
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
15
tutorials/mesh/stitchMesh/simple-cube1/Allrun-args
Executable file
15
tutorials/mesh/stitchMesh/simple-cube1/Allrun-args
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
|
||||
|
||||
runApplication ./Allmesh
|
||||
|
||||
# Use stitchMesh with command arguments (no dictionary)
|
||||
for dir in x y z
|
||||
do
|
||||
runApplication -s dir-$dir stitchMesh -partial outer$dir inner$dir
|
||||
done
|
||||
|
||||
runApplication checkMesh
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
38
tutorials/mesh/stitchMesh/simple-cube1/system/stitchMeshDict
Normal file
38
tutorials/mesh/stitchMesh/simple-cube1/system/stitchMeshDict
Normal file
@ -0,0 +1,38 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object stitchMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
outerx
|
||||
{
|
||||
match partial; // partial | integral | perfect
|
||||
master outerx;
|
||||
slave innerx;
|
||||
}
|
||||
|
||||
outery
|
||||
{
|
||||
match partial;
|
||||
master outery;
|
||||
slave innery;
|
||||
}
|
||||
|
||||
outerz
|
||||
{
|
||||
match partial;
|
||||
master outerz;
|
||||
slave innerz;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user