|
[Sponsors] |
April 2, 2012, 08:08 |
Creating many def files for parametric study
|
#1 |
Senior Member
Join Date: Oct 2010
Location: Zurich
Posts: 176
Rep Power: 16 |
Hi,
I want to do a parametric study where I want to vary one or two parameters in my simulation over a large number of values. I found that one can generate a .pre session file to record the change in parameter value. I think I can edit this session file in text editor and create multiple commands to edit and create multiple def files (like a loop). This way I would be able to create the large number of def files I need without any tedious work and error. I just need a confirmation whether this is the right way to create multiple def files for a simulation where only one or two variables have to be changed. Or is their any better and safer (from point of view of error in setting up the simulations) way to do this? Thanks for your inputs! Chander |
|
April 2, 2012, 08:39 |
|
#2 |
Senior Member
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20 |
you can also try to script the batch process with the -ccl option (search the manual) when starting from command line. This way you won´t have multiple def-files but multiple res files with different "inputs" and one "master"-def.
neewbie |
|
April 2, 2012, 09:34 |
|
#3 |
Member
Luis Filipe Fabiani
Join Date: Apr 2009
Posts: 43
Rep Power: 17 |
Chander,
I think that the Ansys Workbech can do some parametrization, you should take a look into it. Best regards |
|
April 2, 2012, 09:49 |
|
#4 |
Senior Member
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20 |
and yes ... ofcourse you can also use the parameter study within the workbench schematic .. but i guessed that the topic was about creating several def-files.
|
|
April 2, 2012, 10:15 |
|
#5 |
Member
Oleg
Join Date: Nov 2011
Location: Ukraine, Kharkov
Posts: 57
Rep Power: 15 |
As far as i know when parametrization is applied in workbench and the option "Exported" is checked you can do parametric study and it creates separate folder for each design point. In this folder it saves .cfx, .def, .res for each design point. files. You can output values that you are interested right to workbench and then just copy results as a table.
|
|
April 2, 2012, 11:48 |
|
#6 |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
Instead of creating several .def files I would only use one .def and append a ccl command to each run instead. Create a file called ccl_input with the contents you want to change (in this case convergence criteria for an additional variable):
FLOW: Flow Analysis 1 SOLVER CONTROL: EQUATION CLASS: av CONVERGENCE CRITERIA: Residual Target = 1.E-4 Residual Type = RMS END END END and then in the batch file just add -ccl "filename", as: cfx5solve -def deffile.def -ccl ccl_input In this way you only need to create a text file for each simulation, instead of a .def file. Should be easy to script the text files as well. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
creating geometry using "Script files" in ICEMCFD | jaber | Main CFD Forum | 1 | November 11, 2007 10:28 |
Problems with Meshing: Collapsed Cells | Emmanuel Resch | Siemens | 1 | July 30, 2007 04:02 |
Gerris software installation | mer | Main CFD Forum | 2 | November 12, 2005 09:50 |
Results saving in CFD | hawk | Main CFD Forum | 16 | July 21, 2005 21:51 |
How to study different stationary states | Marta | FLUENT | 3 | January 24, 2005 13:32 |