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