|
[Sponsors] |
Restarting a Job in batch with .res as intialization |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 3, 2017, 04:44 |
Restarting a Job in batch with .res as intialization
|
#1 |
Senior Member
Join Date: Mar 2013
Location: Germany
Posts: 357
Rep Power: 14 |
Hi All
I want to run my case on cluster and am using a batch script for that. But I have a doubt how to insert the .res file to initialize my case. So I have a Rans .res file and I am using that to intialize my LES. So how can i insert on the below mentioned arguments I also have to save the .ccl file so for LES I will have to save the LES.def and LES.ccl, but while creating the .def file for les should I insert the RANS.res already or can I do it with this script ? -------------------------------------------- # CFX arguments CFXARGS="-def RANS_6.def -ccl RANS_6.ccl -double -size-mms 2.0" # limit runtime (argument to CFX option -maxet) #MAXET="1440 [min]" SIMNAME=$PBS_JOBID # number of cores to use per node (must be an even number!) PPN=20 # ANSYS version to use module add ansys/17.1 |
|
April 3, 2017, 09:18 |
|
#2 |
Senior Member
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 14 |
Do not know about the correct use in your script, but I think you should look for an option like:
-continue-from-file Meaning you would say that the les.def has to be solved with -continue-from-file rans.res as initial values.... Maybe this might lead to you to the solution |
|
April 3, 2017, 09:22 |
|
#3 |
Senior Member
Join Date: Mar 2013
Location: Germany
Posts: 357
Rep Power: 14 |
Hi
Well the one you are saying is most common one but I have a script given from the university and it has this option like what I have written. So I dont know how to change here and I wanted a solution for that |
|
April 3, 2017, 09:28 |
|
#4 |
Senior Member
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 14 |
I would just have tried smth like:
# CFX arguments CFXARGS="-def LES.def -continue-from-file RANS.res -ccl LES.ccl -double -size-mms 2.0" ... |
|
April 3, 2017, 09:31 |
|
#5 |
Senior Member
Join Date: Mar 2013
Location: Germany
Posts: 357
Rep Power: 14 |
ok I will try and let you know ..
|
|
April 5, 2017, 03:44 |
|
#6 | |
Senior Member
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12 |
CFX help says:
Quote:
|
||
April 5, 2017, 04:10 |
|
#7 |
Senior Member
Join Date: Mar 2013
Location: Germany
Posts: 357
Rep Power: 14 |
So the ini works when I start from a RANS.res file but what if I need to continue to run my LES case with .trn file ? or restart my case from the last .trn file ?
Can I use the same ini instead of .res file can i give .trn file ? |
|
April 5, 2017, 04:22 |
|
#8 |
Senior Member
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12 |
AFAIK you need to include the mesh in the *.trn files to be able to restart from those.
You should use the search function of this forum. A lot of your questions have already been answered multiple times... |
|
April 5, 2017, 04:40 |
|
#9 |
Senior Member
Join Date: Mar 2013
Location: Germany
Posts: 357
Rep Power: 14 |
Ofcourse when I restart my case due to limited wall time I am going to use the same mesh why would I change the mesh. Its just restarting the Simulation with the last .trn file. Sorry if you dint understand my question.
|
|
April 5, 2017, 04:45 |
|
#10 |
Senior Member
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12 |
||
April 5, 2017, 04:56 |
|
#11 |
Senior Member
Join Date: Mar 2013
Location: Germany
Posts: 357
Rep Power: 14 |
So my question was how to start an LES from a RAN.res file which ran for 3000 Iterations lets say.
And I got the answer that in my script I can do # CFX arguments CFXARGS="-def RANS_6.def -ini RANS.res -ccl RANS_6.ccl -double -size-mms 2.0" This works well now but since its LES and my walltime is limited I need to restart my case every 24 hours. So for that I am using the same script with the same command line but with a change instead of .res I use .trn # CFX arguments CFXARGS="-def RANS_6.def -ini LES100000.trn -ccl RANS_6.ccl -double -size-mms 2.0" So here I dont insert my mesh but already the .def file has the mesh details. I hope I made you clear and let me know if I am doing some mistake !! |
|
April 5, 2017, 04:59 |
|
#12 |
Senior Member
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12 |
okay. And I answered to that: IF you include your mesh in the *.trn-files, you should be able to continue from your *.trn-file.
Use "-cont-from-file XXX.trn" instead of "-ini-file XYZ.res" so that your simulation history will continue (monitor points etc) |
|
April 5, 2017, 05:08 |
|
#13 |
Senior Member
Join Date: Mar 2013
Location: Germany
Posts: 357
Rep Power: 14 |
So how can we include the mesh in the *.trn file ? What do you mean by that ? And now my case is running perfectly after giving -ini *.trn as well. So does it mean that it can be wrong ?
Also I have a doubt ! In my .out file the RMS residual values are updated till the current timesteps, but my Turbulence K-E is not it just shows till the RANS iterations and from there no TKE values are updated. Is it becoz am using LES WALE model ? |
|
April 5, 2017, 06:11 |
|
#14 | ||
Senior Member
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12 |
Quote:
Quote:
If your case runs "perfectly", everything is good. If you searched this forum, you would find posts, where people were only continue from a *.trn file when they included the mesh. I searched the forum and that's why I was suggesting that you include the mesh. |
|||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FLUENT Batch job | Saravanan | FLUENT | 11 | May 14, 2014 16:47 |
batch job | shahrbanoo | AVL FIRE | 5 | December 15, 2013 12:08 |
Restarting batch job of system coupling in ANSYS14 | bbhv | ANSYS | 0 | June 25, 2012 08:30 |
[Question]About batch job | fluboy | FLUENT | 2 | August 12, 2009 11:10 |
Running Job in Batch mode (EFD) | Nick Sessions | FloEFD, FloWorks & FloTHERM | 0 | April 16, 2008 16:44 |