You are on page 1of 3

FINISH

/CLEAR
/CWD,'D:\Cylinder_FGM_Zouaoui'

/title, Dynamic behaviour of FGM cylinder - Kouider. B, Zouaoui.S

*use,ParamInsert.inp

Tstep=0.01!0.0001
Tstop=2!0.01
Tres=0.01!0.0001

!!!!! Alumina!!!!
*set, E_c, 380e9 ! [Pa]
*set, nu_c, 0.3177
*set,dens_c, 3800
*set, alpha_c, 10e-6 ! [1/K]

*set, kxx_c, 2.09 ! [W/mK]

! MATERIAL allumunium
*set, E_m, 70e9 ! [Pa]
*set, nu_m, 0.3
*set,dens_m, 2707
*set, alpha_m, 15e-6 ! Thermal expension [1/K]

*set, kxx_m, 25 ! Thermal conductivity [W/mK]

*set,B,PL

cylin_radin = 0.25 ! [m] inner radius


cylin_radout= 2*cylin_radin!transient = 2*cylin_radin ! [m] outer radius
cylin_len = 6*cylin_radout ! [m] length

!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! mat_fgm_K MACRO !!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*create, mat_fgm_K
/nopr

R_coord = arg1
grad_common = ((R_coord-cylin_radin)/(cylin_radout-cylin_radin))**B
E_fgm = (E_c-E_m)*grad_common + E_m
nu_fgm = (nu_c-nu_m)*grad_common + nu_m
den_fgm = (dens_c-dens_m)*grad_common + dens_m
alpha_fgm = (alpha_c-alpha_m)*grad_common + alpha_m
kxx_fgm = (kxx_c-kxx_m)*grad_common + kxx_m
/gopr
*end !mat_fgm_K

!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! end-mat_fgm_K MACRO !!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!
R1 = cylin_radin ! [m] inner radius
R2 = cylin_radout ! [m] outer radius
diff=(R2-R1)/15
Z1 = 0
Z2 = cylin_len
THETA1 = 0
THETA2 = 180
LENGTH = Z2-Z1 ! LENGTH OF THE FLUID ELEMENT (M)
DIAMETER = 2*R1 ! DIAMETER (M)

/PREP7

mp, ex, 1, E_m


mp, prxy, 1, nu_m
mp, dens, 1, den_m

ET,1,SOLID186

K,1,0,0,Z1
K,2,0,0,Z2
L,1,2
LESIZE,1,,,3

CYLIND,R1,R2,Z1,Z2,THETA1,THETA2
CYLIND,R1,R2,Z1,Z2,THETA1+180,THETA2+180
VGLUE,1,2

MSHAP,TRIOPT,3D
LSEL,S,LINE,,2,4,2
LSEL,A,LINE,,7,9,2
LESIZE,ALL,,,15
LSEL,S,LINE,,10,13,1
LESIZE,ALL,,,20
LSEL,S,LINE,,6,8,2
LSEL,A,LINE,,28,29,1
LSEL,A,LINE,,3,5,2
LSEL,A,LINE,,26,27,1
LESIZE,ALL,,,30
TYPE,1
!MAT,1
REAL,1
VMESH,ALL

CSYS,1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!Changing element material !!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

counter = 0
*do, j, R1,R2,diff

R_coord = j
counter = counter+1
*use, mat_fgm_K,R_coord
MP, ex, counter, E_fgm
MP, prxy, counter, nu_fgm
MP, dens, counter, den_fgm
!MP,KXX,counter,kxx_fgm
!MP,ALPX,counter,alpha_fgm

NSEL,S,LOC,X,j
ESLN,S
Emodif, All, mat, counter
Esel, all

*enddo

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!end-changing element material !!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

ALLSEL,ALL
*if,BC,eq,1,then
NSEL,S,LOC,Z,0
!NSEL,A,LOC,Z,Z2
d,all,ux,0,,,,uy,uz ! Defines DOF constraints, clamp the
end
nsel,all
Node_Fr = Node(cylin_radout,0,cylin_len)
*else
NSEL,S,LOC,Z,0
NSEL,A,LOC,Z,Z2
d,all,ux,0,,,,uy,uz ! Defines DOF constraints, clamp the
end
nsel,all
Node_Fr = Node(cylin_radout,0,cylin_len/2)
*endif

Finish

*Use,StaticFGM.mac

!*If,ANtype,eq,1,Then
! *Use,ModalCylinder.mac
!*ELSEIF,ANtype,eq,2,then
! *Use,TransCylind.mac
!*Else
! *Use,Harm_Harm.mac
!*Endif

You might also like