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

Creating many def files for parametric study

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 2, 2012, 07:08
Default Creating many def files for parametric study
  #1
Senior Member
 
Join Date: Oct 2010
Location: Zurich
Posts: 176
Rep Power: 6
Chander is on a distinguished road
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
Chander is offline   Reply With Quote

Old   April 2, 2012, 07:39
Default
  #2
Senior Member
 
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 446
Rep Power: 11
mvoss is on a distinguished road
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
mvoss is offline   Reply With Quote

Old   April 2, 2012, 08:34
Default
  #3
Member
 
Luis Filipe Fabiani
Join Date: Apr 2009
Posts: 43
Rep Power: 8
lffabiani is on a distinguished road
Chander,

I think that the Ansys Workbech can do some parametrization, you should take a look into it.

Best regards
lffabiani is offline   Reply With Quote

Old   April 2, 2012, 08:49
Default
  #4
Senior Member
 
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 446
Rep Power: 11
mvoss is on a distinguished road
Quote:
Originally Posted by lffabiani View Post
Chander,

I think that the Ansys Workbech can do some parametrization, you should take a look into it.

Best regards
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.
mvoss is offline   Reply With Quote

Old   April 2, 2012, 09:15
Default
  #5
Member
 
Oleg
Join Date: Nov 2011
Location: Ukraine, Kharkov
Posts: 57
Rep Power: 5
olegmang is on a distinguished road
Quote:
Originally Posted by neewbie View Post
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.
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.
olegmang is offline   Reply With Quote

Old   April 2, 2012, 10:48
Default
  #6
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 540
Rep Power: 11
Lance is on a distinguished road
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.
Lance is offline   Reply With Quote

Reply

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
creating geometry using "Script files" in ICEMCFD jaber Main CFD Forum 1 November 11, 2007 10:28
Problems with Meshing: Collapsed Cells Emmanuel Resch CD-adapco 1 July 30, 2007 03: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 20:51
How to study different stationary states Marta FLUENT 3 January 24, 2005 13:32


All times are GMT -4. The time now is 13:55.