CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Create .def-File with Parameters (https://www.cfd-online.com/Forums/cfx/172394-create-def-file-parameters.html)

Henrinavier May 30, 2016 09:20

Create .def-File with Parameters
 
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

-Maxim- May 30, 2016 09:26

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>

Henrinavier May 30, 2016 10:17

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?

-Maxim- May 30, 2016 10:24

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!

Henrinavier May 30, 2016 10:41

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.

-Maxim- May 30, 2016 10:47

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.


All times are GMT -4. The time now is 03:29.