|
[Sponsors] |
May 30, 2016, 10:20 |
Create .def-File with Parameters
|
#1 |
New Member
Adrian
Join Date: Dec 2015
Location: Germany
Posts: 6
Rep Power: 11 |
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 |
|
May 30, 2016, 10:26 |
|
#2 |
Senior Member
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 413
Rep Power: 13 |
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> |
|
May 30, 2016, 11:17 |
|
#3 |
New Member
Adrian
Join Date: Dec 2015
Location: Germany
Posts: 6
Rep Power: 11 |
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? |
|
May 30, 2016, 11:24 |
|
#4 |
Senior Member
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 413
Rep Power: 13 |
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! |
|
May 30, 2016, 11:41 |
|
#5 |
New Member
Adrian
Join Date: Dec 2015
Location: Germany
Posts: 6
Rep Power: 11 |
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. |
|
May 30, 2016, 11:47 |
|
#6 |
Senior Member
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 413
Rep Power: 13 |
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. |
|
Tags |
cluster, parameter |
|
|
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 22:03 |
[swak4Foam] swak4foam building problem | GGerber | OpenFOAM Community Contributions | 54 | April 24, 2015 17:02 |
Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 11:59 |
centOS 5.6 : paraFoam not working | yossi | OpenFOAM Installation | 2 | October 9, 2013 02:41 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |