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

Using initial values specification with scripting

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 5, 2013, 06:14
Default Using initial values specification with scripting
  #1
New Member
 
Anna
Join Date: Jun 2012
Location: Finland
Posts: 19
Rep Power: 5
Kirjain is on a distinguished road
Hullo,

I'm currently working on a small university project, trying to investigate the effect of increasing Mach number on the shock formation in a nozzle.
To actually run the simulations I've been instructed to write a script to make my life easier. I'm running CFX Solver Manager remotely and sending off my files to another computer (I'm not too sure how this works as my knowledge of computing is limited). Nevertheless, this means I have to start off the simulation using the script and thus can't add initial values files (.res) by hand /with easy mouse clicking to the simulation I'm sending off. I tried adding the initial values file to my script but when I open the solve manager the run always seems to start from scratch. In other words if I define a run and say in my script I want the simulation to run let's say for two hours, I can't continue it remotely afterwards as the script doesn't work. Could someone please help me? I've added part of the script below in order to make things a bit easier to understand, sorry again for my lack of knowledge in the exact terminology and all that..!

-------------------------------
cd $PTMP/files
cfx5solve -par-dist $CFX_HOSTLIST -start-method "$LRZ_SYSTEM_SEGMENT" -double -def ExampleCase2.def -ini-file ExampleCase1_001.res -maxet "110 [min]"
-------------------------------

As seen above I (using the script) move to the right folder and define the .def file I want to use for the simulation. This works perfectly. But defining the initialisation file doesn't. What is the matter?

Thank-you for your time! Any help would be greatly appreciated.

Tara,
Anna
Kirjain is offline   Reply With Quote

Old   September 5, 2013, 08:11
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,830
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
What error message does it give?
ghorrocks is offline   Reply With Quote

Old   September 5, 2013, 08:51
Default
  #3
Senior Member
 
Edmund Singer P.E.
Join Date: Aug 2010
Location: Minneapolis, MN
Posts: 494
Rep Power: 11
singer1812 is on a distinguished road
Your post is also unclear. Are you having trouble with the run not using the initial file or are you talking about a restart after you have run it for 110min and it wont run anymore?


A simple work around for the initial file issue is to just use the interpolator in the Solver GUI and remove the -initial-file portion of the script as the def file will have the values within it.
singer1812 is offline   Reply With Quote

Old   September 5, 2013, 09:33
Default
  #4
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 523
Rep Power: 11
Lance is on a distinguished road
Quote:
Originally Posted by Kirjain View Post
Hullo,
I tried adding the initial values file to my script but when I open the solve manager the run always seems to start from scratch.

cfx5solve -par-dist $CFX_HOSTLIST -start-method "$LRZ_SYSTEM_SEGMENT" -double -def ExampleCase2.def -ini-file ExampleCase1_001.res -maxet "110 [min]"
If you use -ini-file <file> the run history is discarded from the .res file and you start from time = 0. If instead you use -continue-from-file <file> the run history is kept and you start from where the .res file ended.
Lance is offline   Reply With Quote

Old   September 5, 2013, 15:44
Default
  #5
Senior Member
 
Bruno
Join Date: Mar 2009
Location: Brazil
Posts: 236
Rep Power: 12
brunoc is on a distinguished road
Just to add something, for a complete list of command line options you can issue 'cfx5solve -help' on the prompt, as well as search the manual for 'cfx5solve command line'. It's one of the first hits.

Cheers.
brunoc is offline   Reply With Quote

Reply

Tags
cfx solver manager, initial values, scripting

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while running rhoPisoFoam.. nileshjrane OpenFOAM Running, Solving & CFD 8 August 26, 2010 12:50
Error log vw.cfd OpenFOAM 6 August 7, 2009 05:44
Differences between serial and parallel runs carsten OpenFOAM Bugs 11 September 12, 2008 11:16
Unknown error sivakumar OpenFOAM Pre-Processing 9 September 9, 2008 12:53
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 05:10.