Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
13ef974e
Commit
13ef974e
authored
Apr 20, 2012
by
sergio
Browse files
ENH: Adding -overwrite option to mirrorMesh and update tutorial
parent
ea1706fe
Changes
4
Hide whitespace changes
Inline
Side-by-side
applications/utilities/mesh/manipulation/mirrorMesh/mirrorMesh.C
View file @
13ef974e
...
...
@@ -37,15 +37,24 @@ using namespace Foam;
int
main
(
int
argc
,
char
*
argv
[])
{
# include "addOverwriteOption.H"
# include "setRootCase.H"
# include "createTime.H"
const
bool
overwrite
=
args
.
optionFound
(
"overwrite"
);
if
(
!
overwrite
)
{
runTime
++
;
}
mirrorFvMesh
mesh
(
IOobject
(
mirrorFvMesh
::
defaultRegion
,
runTime
.
timeName
(),
runTime
.
constant
(),
runTime
)
);
...
...
tutorials/incompressible/pimpleFoam/elipsekkLOmega/Allclean
View file @
13ef974e
...
...
@@ -5,6 +5,5 @@ cd ${0%/*} || exit 1 # run from this directory
.
$WM_PROJECT_DIR
/bin/tools/CleanFunctions
cleanCase
rm
-rf
0/polyMesh
# ----------------------------------------------------------------- end-of-file
tutorials/incompressible/pimpleFoam/elipsekkLOmega/Allrun
View file @
13ef974e
...
...
@@ -10,17 +10,14 @@ application=`getApplication`
runApplication blockMesh
transformPoints
-scale
'(1.6666 1 1)'
#cp system/changeDictionaryDict.X system/changeDictionaryDict
runApplication changeDictionary
-instance
system
-dict
system/changeDictionaryDict.X
runApplication mirrorMesh
runApplication mirrorMesh
-overwrite
rm
log.mirrorMesh
rm
log.changeDictionary
#cp system/changeDictionaryDict.Y system/changeDictionaryDict
runApplication changeDictionary
-instance
system
-dict
system/changeDictionaryDict.Y
runApplication mirrorMesh
cp
-rf
0/polyMesh constant/
runApplication mirrorMesh
-overwrite
runApplication topoSet
runApplication createPatch
-overwrite
...
...
tutorials/incompressible/pimpleFoam/elipsekkLOmega/constant/polyMesh/boundary
deleted
100644 → 0
View file @
ea1706fe
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "0/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
5
(
left
{
type symmetryPlane;
nFaces 320;
startFace 99210;
}
outlet
{
type patch;
nFaces 320;
startFace 99530;
}
up
{
type symmetryPlane;
nFaces 380;
startFace 99850;
}
hole
{
type wall;
nFaces 560;
startFace 100230;
}
frontAndBack
{
type empty;
nFaces 100000;
startFace 100790;
}
)
// ************************************************************************* //
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment