You are on page 1of 7

Workshop 4a: Geometry

Creation in PREP7
15.0 Release

Introduction to Mechanical
APDL (MAPDL)
1 © 2015 ANSYS, Inc. March 30, 2015
Input Commands to Create a Simple
Solid Model

2 © 2015 ANSYS, Inc. March 30, 2015


Input Commands to Create a
Simple Solid Model
We will enter 14 commands on the command line to create the geometry shown
on the previous slide. Start by clearing the database as shown below .

3 © 2015 ANSYS, Inc. March 30, 2015


Input Commands to Create a
Simple Solid Model
You may then use either of the following options:
1) Enter the commands shown below one by one on the command line in the
GUI, or
2) Create a text file containing the commands and read the text file into MAPDL
using File > Read Input from…
Note: you do not need to enter
the command block headers or
the comments that follow the
exclamation marks (!). These
are included here to explain
what the commands do.

4 © 2015 ANSYS, Inc. March 30, 2015


Input Commands to Create a
Simple Solid Model
The steps performed by these commands are graphically depicted here and on the
following slides to illustrate the workflow. Here we create two solid primitives.

bloc,-a/2,a/2,-a/2,a/2,-a/2,a/2

sphe,,r

5 © 2015 ANSYS, Inc. March 30, 2015


Input Commands to Create a
Simple Solid Model
Then a couple of Boolean operations are performed… subtract the sphere from the
block and slice the remaining volume with the workplane.

vsbv,1,2

vsbw,all

6 © 2015 ANSYS, Inc. March 30, 2015


Input Commands to Create a
Simple Solid Model
Next, the lower volume is deleted and the faces at z=0 are extruded.

vsel,r,loc,z,-a,0
vdel,all,,,1

asel,r,loc,z
vext,all,,,0,0,-l_legs

alls
vplo ! CREATE IMAGE
7 © 2015 ANSYS, Inc. March 30, 2015

You might also like