From d6dc105cb8e006c2733ba16d8e298fe1c36d5fe9 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Tue, 3 Dec 2013 20:20:21 +0000 Subject: [PATCH] Solid mechanics tutorial updates --- .../elasticSolidFoam/timeVaryingPlateHole/0/U | 1 - .../HronTurekFsi/Allrun | 9 +++++---- .../HronTurekFsi/makeSerialLinks | 16 +--------------- .../HronTurekFsi/removeSerialLinks | 12 +----------- 4 files changed, 7 insertions(+), 31 deletions(-) diff --git a/tutorials/solidMechanics/elasticSolidFoam/timeVaryingPlateHole/0/U b/tutorials/solidMechanics/elasticSolidFoam/timeVaryingPlateHole/0/U index c28dd8a47..058f36adb 100644 --- a/tutorials/solidMechanics/elasticSolidFoam/timeVaryingPlateHole/0/U +++ b/tutorials/solidMechanics/elasticSolidFoam/timeVaryingPlateHole/0/U @@ -32,7 +32,6 @@ boundaryField nonLinear off; fileName "$FOAM_CASE/constant/timeVsRightTraction"; } - down { type symmetryPlane; diff --git a/tutorials/solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/Allrun b/tutorials/solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/Allrun index c3fb36133..b88f392dc 100755 --- a/tutorials/solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/Allrun +++ b/tutorials/solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/Allrun @@ -5,19 +5,20 @@ # Get application name from directory application="icoFsiElasticNonLinULSolidFoam" -cd fluid; +cd fluid runApplication fluent3DMeshToFoam fluid.msh runApplication changeDictionary runApplication setSet -batch batch.setSet runApplication setsToZones -noFlipMap +cd .. -cd ../solid; +cd solid runApplication fluent3DMeshToFoam solid.msh runApplication changeDictionary runApplication setSet -batch batch.setSet runApplication setsToZones -noFlipMap - cd .. + ./makeSerialLinks fluid solid -(cd fluid; runApplication $application) +(cd fluid ; runApplication $application) diff --git a/tutorials/solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/makeSerialLinks b/tutorials/solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/makeSerialLinks index c46e038c9..fd8b852e6 100755 --- a/tutorials/solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/makeSerialLinks +++ b/tutorials/solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/makeSerialLinks @@ -1,26 +1,12 @@ -#!/bin/tcsh - -# Check for proper number of command line args. -if ($#argv != 2) then - echo "Usage: makeLinks fluidCase solidCase" - goto done -endif +#!/bin/sh cd $1 - - cd constant - ln -s ../../$2/constant solid - cd ../system - ln -s ../../$2/system solid - cd ../0 - ln -s ../../$2/0 solid - cd ../../ diff --git a/tutorials/solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/removeSerialLinks b/tutorials/solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/removeSerialLinks index bd4f134e7..996eaab41 100755 --- a/tutorials/solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/removeSerialLinks +++ b/tutorials/solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/removeSerialLinks @@ -1,17 +1,7 @@ -#!/bin/tcsh - -# Check for proper number of command line args. -if ($#argv != 2) then - echo "Usage: makeLinks fluidCase solidCase" - goto done -endif +#!/bin/sh cd $1 - rm -rf 0/solid - rm -rf constant/solid - rm -rf system/solid - cd ..