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

Running Solver in Batch

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 10, 2007, 11:45
Default Running Solver in Batch
  #1
Nick
Guest
 
Posts: n/a
I've been looking through the help files, but it doesn't seem to be very clear on this (Or at least I'm not seeing it). I want to know if its possible to have the solver automatically execute a series of runs, using the previous run as the initial values file.

For example, say I have three definition files, a.def, b.def and c.def

Is there a way to set up the solver to run a.def, then upon completion, run b.def with a.res as the initial values. Then, similarly with c.def using b.res as the initial values.
  Reply With Quote

Old   August 10, 2007, 13:36
Default Re: Running Solver in Batch
  #2
Robin
Guest
 
Posts: n/a
Hi Nick,


There are a couple ways to approach this. If a, b and c are parametric variations of the same setup, you can often set the parameters up to be driven by DesignXplorer within ANSYS Workbench. Driving Parameters may come from CAD (native CAD parameters are accessible if you have the appropriate ANSYS CAD interface), or from CEL expressions in Pre (which can subsequently be used in boundary conditions, source terms, etc.). DX also requires output parameters, which would come from expressions in Post that evaluate to a single value. I won't go into further details here on how to set it up; instructions are avaialbe in the documentation.

If the variations in a, b, and c are not parametric or at least are not available paramters (such as mesh density), then you need to write a script or batch file that does the job. What follows is an example of a simple batch file could be created which explicitely uses the expected results file name. If you want to get fancy, there are options to have cfx5solve.exe return the name of the RES and incorporate the output into a script.

----batch file-----
cfx5solve -def a.def
cfx5solve -def b.def -ini a_001.res -interp-iv
cfx5solve -def c.def -ini b_001.res -interp-iv
...

Regards,
Robin
  Reply With Quote

Old   August 10, 2007, 13:42
Default Re: Running Solver in Batch
  #3
Nick
Guest
 
Posts: n/a
Thanks a lot Robin, I'll look into the DX later on, but for now the batch file works great!
  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
Problem when running rhoSonicFoam solver gaottino OpenFOAM Running, Solving & CFD 3 March 1, 2011 04:59
command line / batch exporting monitor points from solver haconk CFX 1 July 1, 2009 09:00
Running Job in Batch mode (EFD) Nick Sessions FloEFD, FloWorks & FloTHERM 0 April 16, 2008 16:44
Kubuntu uses dash breaks All scripts in tutorials platopus OpenFOAM Bugs 8 April 15, 2008 07:52
problem running the solver chotet CFX 1 January 17, 2007 03:59


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