Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help a newbie w/ Prep7 commands for input file please

Status
Not open for further replies.

ProtoformX

Aerospace
Mar 13, 2005
17
Hi. I am totally new to Ansys and I need some help with inputting some Prep7 commands into an input file, so this thread is going to be full of questions (not all at once though). My first question is how to use AATT to assign material attributes to areas. I have 2 rectangular areas, 2 material types, and 1 element type. My current input file is as follows:


/FILNAM,Flywheel12
/title, Axisymmetric Flywheel12 Geometry (half model)
/prep7

rihub=0.03000
rohub=0.03420
ririm=0.03420
rorim=0.07600
h=0.08334
delta=1.e-4

k,1,rihub,0.
k,2,rihub,h/2
k,3,rohub,h/2
k,4,rohub,0.

k,5,ririm-delta/2,0.
k,6,ririm-delta/2,h/2
k,7,rorim,h/2
k,8,rorim,0.

L,1,2
L,2,3
L,3,4
L,4,1

L,5,6
L,6,7
L,7,8
L,8,5

!define element type 1 as 6 node triangle axisymmetric
et, 1, plane2
keyopt, 1, 3, 1

!define material 1 as steel
mp, ex, 1, 1.99948e11
mp, prxy, 1, 0.27
mp, dens, 1, 7744
mp, mu, 1, 0.1


!define material 2 as carbon-epoxy
mp, ex, 2, 1.e10
mp, ey, 2, 1.e10
mp, ez, 2, 1.3e11
mp, prxy, 2, 0.3
mp, pryz, 2, 0.018
mp, prxz, 2, 0.018
mp, gxy, 2, 3846153846
mp, gyz, 2, 5.e9
mp, gxz, 2, 5.e9
mp, dens, 2, 1586
mp, mu, 2, 0.1

AL,1,2,3,4


AL,5,6,7,8


!define keypoint 1 as fixed in y direction
dk, 1, uy, 0

!define rotational speed of 6282 rad/s about y axis
omega,0,6282,0,0






Help would be greatly appreciated. Thanks in advance.
 
Replies continue below

Recommended for you

AATT, MAT, REAL, TYPE

Associate mat, real, type number with selected areas. See the help file.
 
Thanks for the reply. I did manage to figure it out from the help file before coming back here.

My next pressing question is probably just as simple. What is the /prep7 command for applying a symmetry b.c. on lines, if any? I looked in the help files and couldn't find it in the prep7 commands. Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor