CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Restarting a Job in batch with .res as intialization

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 3, 2017, 04:44
Default Restarting a Job in batch with .res as intialization
  #1
Senior Member
 
Join Date: Mar 2013
Location: Germany
Posts: 357
Rep Power: 14
AS_Aero is on a distinguished road
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
AS_Aero is offline   Reply With Quote

Old   April 3, 2017, 09:18
Default
  #2
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 14
monkey1 is on a distinguished road
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
monkey1 is offline   Reply With Quote

Old   April 3, 2017, 09:22
Default
  #3
Senior Member
 
Join Date: Mar 2013
Location: Germany
Posts: 357
Rep Power: 14
AS_Aero is on a distinguished road
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
AS_Aero is offline   Reply With Quote

Old   April 3, 2017, 09:28
Default
  #4
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 14
monkey1 is on a distinguished road
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"

...
monkey1 is offline   Reply With Quote

Old   April 3, 2017, 09:31
Default
  #5
Senior Member
 
Join Date: Mar 2013
Location: Germany
Posts: 357
Rep Power: 14
AS_Aero is on a distinguished road
ok I will try and let you know ..
AS_Aero is offline   Reply With Quote

Old   April 5, 2017, 03:44
Default
  #6
Senior Member
 
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12
-Maxim- is on a distinguished road
CFX help says:
Quote:
-initial <file>

-ini <file>

Uses the initial values in the CFX-Solver results file <file>. The mesh from this results file is used unless the -interpolate-iv option is also specified. This option has been deprecated and should be replaced by -initial-file or -continue-from-file as appropriate.

-initial-configuration <configuration name>

-ini-conf <configuration name>

Uses initial values from the most recent results for the named configuration as a basic initial guess for the run. The run history from this file is discarded. The mesh from this results file is used unless the -interpolate-iv option is also specified. See Continuing the History in the CFX-Solver Modeling Guide for more details.

-initial-file <file>

-ini-file <file>

Uses initial values from the specified CFX-Solver Results file as a basic initial guess for the run. The run history from this file is discarded. The mesh from the configuration (.cfg) file or the CFX-Solver input file is used unless the -use-mesh-from-iv option is also specified. See Continuing the History in the CFX-Solver Modeling Guide for more details.

-continue-from-file <file>

-cont-from-file <file>

Uses initial values and continues the run from the specified CFX-Solver results file. The mesh from the CFX-Solver input file is used unless the -use-mesh-from-iv option is also specified. Only one -continue-from-file argument can be supplied. See Continuing the History in the CFX-Solver Modeling Guide for more details.

-continue-from-configuration <configuration name>

-cont-from-config <configuration name>

Uses initial values and continues the run from the most recent results for the named configuration. The mesh from the configuration (.cfg) file is used unless the -use-mesh-from-iv option is also specified. Only one -continue-from-configuration argument can be supplied. See Continuing the History in the CFX-Solver Modeling Guide for more details.
you will also find all the other commands such as setting the memory in the help file.
-Maxim- is offline   Reply With Quote

Old   April 5, 2017, 04:10
Default
  #7
Senior Member
 
Join Date: Mar 2013
Location: Germany
Posts: 357
Rep Power: 14
AS_Aero is on a distinguished road
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 ?
AS_Aero is offline   Reply With Quote

Old   April 5, 2017, 04:22
Default
  #8
Senior Member
 
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12
-Maxim- is on a distinguished road
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...
-Maxim- is offline   Reply With Quote

Old   April 5, 2017, 04:40
Default
  #9
Senior Member
 
Join Date: Mar 2013
Location: Germany
Posts: 357
Rep Power: 14
AS_Aero is on a distinguished road
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.
AS_Aero is offline   Reply With Quote

Old   April 5, 2017, 04:45
Default
  #10
Senior Member
 
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12
-Maxim- is on a distinguished road
Quote:
Originally Posted by AS_Aero View Post
Sorry if you dint understand my question.
So what exactly is your question?
Do you currently include the mesh in your *.trn-files? You have to define that in PRE.
-Maxim- is offline   Reply With Quote

Old   April 5, 2017, 04:56
Default
  #11
Senior Member
 
Join Date: Mar 2013
Location: Germany
Posts: 357
Rep Power: 14
AS_Aero is on a distinguished road
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 !!
AS_Aero is offline   Reply With Quote

Old   April 5, 2017, 04:59
Default
  #12
Senior Member
 
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12
-Maxim- is on a distinguished road
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)
-Maxim- is offline   Reply With Quote

Old   April 5, 2017, 05:08
Default
  #13
Senior Member
 
Join Date: Mar 2013
Location: Germany
Posts: 357
Rep Power: 14
AS_Aero is on a distinguished road
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 ?
AS_Aero is offline   Reply With Quote

Old   April 5, 2017, 06:11
Default
  #14
Senior Member
 
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12
-Maxim- is on a distinguished road
Quote:
Originally Posted by AS_Aero View Post
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 ?
Quote:
Originally Posted by -Maxim- View Post
Do you currently include the mesh in your *.trn-files? You have to define that in PRE.
Look it up in the help files. That's what they are there for.
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.
-Maxim- is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 08:50.