DesignModeler Example
DesignModeler Example
Solution:
The script file is written in JScript (extension *.js)
Results
Point sequence data (dmpoint.txt) used in script: text format
# Group 1
1 1 0.0 0.0 0.0
1 2 0.0 1.0 0.0
1 3 1.0 1.0 0.0
1 4 1.0 0.0 0.0
#Group 2
2 1 2.0 1.0 0.0
2 2 2.0 0.0 0.0
Reading point sequence data: a total of six points are read in two groups. It is not necessary to group the
point sequence data.
Create a line body of hollow squares consisting of four lines from the four points of group 1.
Here, specify edge ID = 1 only for certain edges.
Similarly, a second line body that is "U-shaped" is created from two points of group 1 and two points of
group 2. Here, edge ID = 2, 3, 4 is specified for the three edges respectively.
In this step, all edges constituting a line body are selected to create a surface body.
Therefore, the line body must be closed.
The second surface body will be created using a different method. In this method, the edge is selected
using the ID of the edge specified at the time of line body creation. The ID of the edge can be specified
irrespective of the line body and it may be shared/reused.
Additional Notes
The main problem with creating a surface body is getting the wrong side of the face. In 2D analysis, it
may be a big issue in ANSYS Meshing if the face is not properly oriented. With the second method, you
can rotate the face clockwise, but in the first method, DesignModeler will choose an orientation based on
the table. If you end up with the opposite face, simply turn it over using Surface Flip.
Also, the edge ID used in the second method can only be set in the script; it cannot be set from normal
GUI operations.