CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ANSYS Meshing & Geometry (https://www.cfd-online.com/Forums/ansys-meshing/)
-   -   [DesignModeler] How to write the script in the ansys design modeler? (https://www.cfd-online.com/Forums/ansys-meshing/102864-how-write-script-ansys-design-modeler.html)

deddy1973 June 4, 2012 22:27

How to write the script in the ansys design modeler?
 
I would like to create the ship hull geometry paramaters automatically using ansys design modeler, but I know it is hard to use the design modeler standard tools (we know in the creating of parameters are available only for offset/moving and rotation). Also, I know that we can write the script to make a model in the design modeler, however I don't know how to write the script (especially: ways of script writing and the program language used). Please give me some recommendations

Marabelle July 22, 2013 08:14

Hi!
I know it is quite a long time ago that you posted your question (approx. 1 year...) Did you find out how to write these scripts? I just found out this option under File->"write skript" and "run skript" but also I don't have any experience in the programming language jscript. Do you have any tips and tricks for me?
Thanks!

merper October 3, 2013 17:33

Perhaps this will help as a starting course:

This script will create the geometry specified. You may be able to reverse engineer it to learn some tricks.

http://www.sharcnet.ca/Software/Flue...eaExample.html


However, there is not much documentation from ansys on it. I've talked with the reps.

Marabelle October 4, 2013 05:08

thanks a lot! I found a half-automatical solution now, with a saved script (with the "write script" function) and I duplicate my model and overwrite the sketches so I don't have to create the areas etc. and set the mesh sizing etc. again every time. I only have to set the conections to the new sketches and delete the old ones...
But by the time, I will try that tutorial, maybe it makes me life even easier. Thanks!


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