|May 29, 2012, 15:27||
Importing Cylinders by Point Data Input with Radii
Join Date: Aug 2010
Posts: 42Rep Power: 8
Hello, thank you for reading this,
Something I have tried in the past is the importing of point and connectivity data into Ansys using the Formatted Point Input. I can successively import the points easily, but I was wondering if I can progamatically import cylinders using a similar approach. I am doing this in ANSYS ICEM CFD at the moment.
I have the beginning point, end point and radii for each segment. When I imported point data before, I built cylinders completely manually, but the tree I have this time is made up of hundreds to thousands of segments, so it would be a lot easier if I could programatically bring them in.
I understand this is possible using a TCL script. How would I look into writing one, and where would I execute the script?
Thanks for your help!
|May 31, 2012, 09:56||
ICEM CFD Scripting
Retired from CFD Online
Join Date: Mar 2009
Location: Ann Arbor, MI
Blog Entries: 1Rep Power: 38
Go to File => Replay Scripts => Replay control and record the steps you want to script... So go into point creation, create your points, then go into surface creation and create cylinders from those points...
Looking at your replay script, you will see the command for each of those operations. For more details about the structure of each command, go to Help => Programmers guide and look them up.
Then you can create a replay script using these commands and other tcl logic (some other help is given in the programmers guide) to setup loops, if statements, etc.
You can run the script a variety of ways, including in batch.
To run it in batch, run icemcfd -batch scriptname.rpl
It would be cool if you could post your final script here so people could learn from your experience.
|Thread||Thread Starter||Forum||Replies||Last Post|
|Transfer output data as input for second calculation||mannobot||Main CFD Forum||1||June 2, 2010 03:55|
|input data to a poisson solver||HaKu||Main CFD Forum||2||June 11, 2009 22:45|
|Text input commands to add data points||Kathryn||FLUENT||0||November 5, 2007 18:38|
|how to create the formatted point data for icemcfd||charles||CFX||3||February 28, 2006 21:01|
|CFX4.3 -build analysis form||Chie Min||CFX||5||July 12, 2001 23:19|