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

Create .def-File with Parameters

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 30, 2016, 09:20
Default Create .def-File with Parameters
  #1
New Member
 
Adrian
Join Date: Dec 2015
Location: Germany
Posts: 6
Rep Power: 10
Henrinavier is on a distinguished road
Hi there,

I face a new problem concerning parameterization: For bigger simulation jobs we send a .def-file to a grid (/compute cluster) and run it there. Now I want the Grid to run all my parameters not just the default, which it doesn't do.

Does somebody have a clue how to "get" the Parameters into the .def-File?

Thanks in advance,
Adrian
Henrinavier is offline   Reply With Quote

Old   May 30, 2016, 09:26
Default
  #2
Senior Member
 
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12
-Maxim- is on a distinguished road
you could create a bunch of def files in pre and let the cluster work through them via batch file.
you could also use a ccl file to go automatically through different cases. something like
cfx5solve -def <def file> -ccl <CCL file 1>
cfx5solve -def <def file> -ccl <CCL file 2>
cfx5solve -def <def file> -ccl <CCL file 3>
-Maxim- is offline   Reply With Quote

Old   May 30, 2016, 10:17
Default
  #3
New Member
 
Adrian
Join Date: Dec 2015
Location: Germany
Posts: 6
Rep Power: 10
Henrinavier is on a distinguished road
Thanks for the fast response!
I guess I should have mentioned that I use Workbench and that I'm not familiar with the coding in batch files. At the moment Ansys automatically creates one def-file, when I open the Solver.
I actually don't know how to manually create def-files (via workbench).

Do you know about an option that does not require scripting?
Henrinavier is offline   Reply With Quote

Old   May 30, 2016, 10:24
Default
  #4
Senior Member
 
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12
-Maxim- is on a distinguished road
you can define parameters as workbench output/input parameters and set up a parameter study in workbench quite easily. Just click the little box next to parameters and then a 'P' appears and the workbench introduces a new field/tab with parameters.
The documentation helps you to set up parameters and a parameter study. There's even a tutorial if I remember correctly.
Although it might be tricky to just let workbench write def files and send those to your cluster to calculate. Or do you choose the cluster right from the workbench?

Writing batch files is really not that difficult - might be worth looking into!
-Maxim- is offline   Reply With Quote

Old   May 30, 2016, 10:41
Default
  #5
New Member
 
Adrian
Join Date: Dec 2015
Location: Germany
Posts: 6
Rep Power: 10
Henrinavier is on a distinguished road
I know how to set parameters with workbench and I already have everything done except the solving. I'll look at some tutorials about the scripting today evening and see how realistic this approach is.

No, I open Ansys separately on the grid.
Henrinavier is offline   Reply With Quote

Old   May 30, 2016, 10:47
Default
  #6
Senior Member
 
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12
-Maxim- is on a distinguished road
yeah look up the syntax for cfx5solve in the documentation. It's really just one line of "code".
You can write/save the ccl files from Pre.
-Maxim- is offline   Reply With Quote

Reply

Tags
cluster, parameter

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 towanda OpenFOAM Community Contributions 6 September 5, 2015 21:03
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 16:02
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 01:41
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23


All times are GMT -4. The time now is 01:00.