Scripting geometry in ansys workbench

Click For Summary
Creating scripted geometry in ANSYS Workbench is feasible, particularly for applications like a pipe conveyor. Users can utilize commands in the scripting environment, such as /prep7 for preprocessing and defining material properties with commands like mp and et. The example provided demonstrates how to set up a coordinate system, define a pipe element type, and create a simple 1-meter length pipe geometry using keypoints and lines. Additionally, meshing can be specified with commands like lesize and latt to control element distribution. This approach allows for automated geometry creation based on input data.
00sorty00
Messages
2
Reaction score
0
How to create a script geometry.
Is it possible?
some type?
I need to create a script to pipe conveyor.
After entering the input data is created geometry.

pls help me
 
Engineering news on Phys.org
Hi

Please, find a example hereafter:

/prep7
csys,0 !default coordinate system
!first create material + type + real constante
mp,1 !"mp" command to complete
et,1,pipe16 !here i chose pipe old element type 16 of version 5.1 (but sometimes I used it for v12 or v14)
r,1,... !"r" command to complete

!now the geometry - pipe 1 meter length
k,1, !"k"command for kpoint kp1 (0,0,0)
k,2,1, !kp2 (1,0,0)
L,1,2 !line geometry

!meshing
lesize,...!number of elements or length for one element pipe
latt,1,1,1
 
My idea is that I want to use immerse Whitetail Antlers in a fishtank to measure their volumetric displacement (the Boone and Crockett system is the current record measurement standard to place in a juxtaposition with) I would use some sight glass plumbed into the side of the tank to get the change in height so that I can multiply by the tank cross-section. Simple Idea. But... Is there a simple mechanical way to amplify the height in the sight glass to increase measurement precision...

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
6K
  • · Replies 7 ·
Replies
7
Views
16K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 11 ·
Replies
11
Views
12K
Replies
1
Views
7K
Replies
1
Views
6K