mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: rename tutorial from wingFlutter to wingMotion. Not
necessarily a flutter.
This commit is contained in:
@ -4,13 +4,13 @@ cd ${0%/*} || exit 1 # run from this directory
|
|||||||
# Source tutorial run functions
|
# Source tutorial run functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cd wingFlutter_snappyHexMesh
|
cd wingMotion_snappyHexMesh
|
||||||
cleanCase
|
cleanCase
|
||||||
|
|
||||||
cd ../wingFlutter2D_simpleFoam
|
cd ../wingMotion2D_simpleFoam
|
||||||
cleanCase
|
cleanCase
|
||||||
|
|
||||||
cd ../wingFlutter2D_pimpleDyMFoam
|
cd ../wingMotion2D_pimpleDyMFoam
|
||||||
cleanCase
|
cleanCase
|
||||||
rm -rf 0
|
rm -rf 0
|
||||||
|
|
||||||
@ -5,22 +5,22 @@ cd ${0%/*} || exit 1 # run from this directory
|
|||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
# Make 3D mesh in slab of cells.
|
# Make 3D mesh in slab of cells.
|
||||||
cd wingFlutter_snappyHexMesh
|
cd wingMotion_snappyHexMesh
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
runApplication snappyHexMesh -overwrite
|
runApplication snappyHexMesh -overwrite
|
||||||
|
|
||||||
# Make a 2D mesh by extruding a patch and solve to steady state.
|
# Make a 2D mesh by extruding a patch and solve to steady state.
|
||||||
cd ../wingFlutter2D_simpleFoam
|
cd ../wingMotion2D_simpleFoam
|
||||||
runApplication extrudeMesh
|
runApplication extrudeMesh
|
||||||
runApplication createPatch -overwrite
|
runApplication createPatch -overwrite
|
||||||
runApplication simpleFoam
|
runApplication simpleFoam
|
||||||
|
|
||||||
# Copy the mesh from the steady state case and map the results to a
|
# Copy the mesh from the steady state case and map the results to a
|
||||||
# mesh motion case, then solve transient.
|
# mesh motion case, then solve transient.
|
||||||
cd ../wingFlutter2D_pimpleDyMFoam
|
cd ../wingMotion2D_pimpleDyMFoam
|
||||||
cp -r ../wingFlutter2D_simpleFoam/constant/polyMesh/* constant/polyMesh/
|
cp -r ../wingMotion2D_simpleFoam/constant/polyMesh/* constant/polyMesh/
|
||||||
cp -r 0.org 0
|
cp -r 0.org 0
|
||||||
runApplication mapFields ../wingFlutter2D_simpleFoam -sourceTime latestTime -consistent
|
runApplication mapFields ../wingMotion2D_simpleFoam -sourceTime latestTime -consistent
|
||||||
mv 0/pointDisplacement.unmapped 0/pointDisplacement
|
mv 0/pointDisplacement.unmapped 0/pointDisplacement
|
||||||
runApplication decomposePar
|
runApplication decomposePar
|
||||||
runParallel pimpleDyMFoam 3
|
runParallel pimpleDyMFoam 3
|
||||||
@ -18,7 +18,7 @@ FoamFile
|
|||||||
// patch : from patch of another case ('sourceCase')
|
// patch : from patch of another case ('sourceCase')
|
||||||
|
|
||||||
constructFrom patch;
|
constructFrom patch;
|
||||||
sourceCase "../wingFlutter_snappyHexMesh";
|
sourceCase "../wingMotion_snappyHexMesh";
|
||||||
sourcePatches (front);
|
sourcePatches (front);
|
||||||
|
|
||||||
// If construct from patch: patch to use for back (can be same as sourcePatch)
|
// If construct from patch: patch to use for back (can be same as sourcePatch)
|
||||||
Reference in New Issue
Block a user