|
[Sponsors] |
fail to run series of runApplication topoSet -dict |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 8, 2018, 01:03 |
fail to run series of runApplication topoSet -dict
|
#1 |
Member
Join Date: Jan 2018
Location: Malaysia
Posts: 58
Rep Power: 8 |
Hi, I am trying to use Allrun bash script to run openFoam job. Below is the complete script
Code:
#!/bin/sh echo start running Allrun cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions # Set application name application=`getApplication` # meshing runApplication blockMesh runApplication topoSet -dict system/topoSetDict/topoSetDict_noCarInt runApplication subsetMesh -overwrite noCarIntCS runApplication topoSet -dict system/topoSetDict/topoSetDict_updateCSCZ # refineMesh runApplication refineMesh -overwrite runApplication topoSet -dict system/topoSetDict/topoSetDict_updateCSCZ2 # setFields runApplication setFields echo end #------------------------------------------------------------------------------ Code:
runApplication topoSet -dict system/topoSetDict/topoSetDict_noCarInt runApplication topoSet -dict system/topoSetDict/topoSetDict_updateCSCZ runApplication topoSet -dict system/topoSetDict/topoSetDict_updateCSCZ2 I tried "> quit" and change runApplication into foamJob, but it is still cnt be solved I would be grateful and thanks to all advice and suggestions Thanks for your time in reading this. Jia Hui |
|
May 25, 2022, 13:56 |
|
#2 |
Member
Federico Zabaleta
Join Date: May 2016
Posts: 47
Rep Power: 10 |
I don't know about the setSet issue, but the problem with runApplication occurs because once runApplication runs topoSet for the first time, it saves the log file in log.topoSet. Then, when it tries to run topoSet again, it detects that it has already been run (because log.topoSet exist), and skips the command.
If you wanna run topoSet in several instances you should do: Code:
runApplication -s 1 topoSet ... runApplication -s 2 topoSet ... runApplication -s 3 topoSet ... I know the thread is old but it may be useful for someone else.. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
topoSet simpleFoam parallelized run error | HakikiCanakkaleli | OpenFOAM Pre-Processing | 5 | October 5, 2018 11:52 |
Allrun for SHM and LTSInterFoam | laurent98 | OpenFOAM Running, Solving & CFD | 4 | November 18, 2012 21:07 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |
Fail to run when turn on Wll Contact Angle | hsieh | OpenFOAM Running, Solving & CFD | 8 | May 21, 2008 02:02 |
Parallel run fail in CFX5.7.1 in Linux FC.4 | Begonia | CFX | 1 | August 2, 2005 09:03 |