! Created by Tamas Poloskei, 2017. February 10.
! Units: [N],[Nmm],[N/mm^2=MPa],[N/mm]
! Set key options for PLANE182 electing plane stress with thickness
KEYOPTKEYOPT, ITYPE, KNUM, VALUE
Sets element key options.,1,3,3
! Define the thickness (Real Constant set)
RR, NSET, R1, R2, R3, R4, R5, R6
Defines the element real constants.,1,TT = 20
! Material Properties
MPTEMPMPTEMP, SLOC, T1, T2, T3, T4, T5, T6
Defines a temperature table for material properties.,1,0
MPDATAMPDATA, Lab, MAT, SLOC, C1, C2, C3, C4, C5, C6
Defines property data to be associated with the temperature table.,EX,1,,ELASTELAST = 2E5
MPDATAMPDATA, Lab, MAT, SLOC, C1, C2, C3, C4, C5, C6
Defines property data to be associated with the temperature table.,PRXY,1,,NUNU = 0.33
MPDATAMPDATA, Lab, MAT, SLOC, C1, C2, C3, C4, C5, C6
Defines property data to be associated with the temperature table.,DENS,1,,RHORHO = 7.89E-9
! Create keypoints
KK, NPT, X, Y, Z
Defines a keypoint.,1,400,200
KK, NPT, X, Y, Z
Defines a keypoint.,2,400,800
KK, NPT, X, Y, Z
Defines a keypoint.,3,1400,800
KK, NPT, X, Y, Z
Defines a keypoint.,4,1400,200
! Create lines
LL, P1, P2, NDIV, SPACE, XV1, YV1, ZV1, XV2, YV2, ZV2
Defines a line between two keypoints.,1,2
LL, P1, P2, NDIV, SPACE, XV1, YV1, ZV1, XV2, YV2, ZV2
Defines a line between two keypoints.,2,3
LL, P1, P2, NDIV, SPACE, XV1, YV1, ZV1, XV2, YV2, ZV2
Defines a line between two keypoints.,3,4
LL, P1, P2, NDIV, SPACE, XV1, YV1, ZV1, XV2, YV2, ZV2
Defines a line between two keypoints.,4,1
! Create line fillets
LFILLTLFILLT, NL1, NL2, RAD, PCENT
Generates a fillet line between two intersecting lines.,1,2,RR = 50
LFILLTLFILLT, NL1, NL2, RAD, PCENT
Generates a fillet line between two intersecting lines.,2,3,RR = 50
LFILLTLFILLT, NL1, NL2, RAD, PCENT
Generates a fillet line between two intersecting lines.,3,4,RR = 50
LFILLTLFILLT, NL1, NL2, RAD, PCENT
Generates a fillet line between two intersecting lines.,4,1,RR = 50
! Create the area using lines
ALAL, L1, L2, L3, L4, L5, L6, L7, L8, L9, L10
Generates an area bounded by previously defined lines.,1,5,2,6,3,7,4,8
! Copy the area 3 times
AGENAGEN, ITIME, NA1, NA2, NINC, DX, DY, DZ, KINC, NOELEM, IMOVE
Generates additional areas from a pattern of areas.,3,1,,,1300
! Create the largest rectangle area
BLC4BLC4, XCORNER, YCORNER, WIDTH, HEIGHT, DEPTH
Creates a rectangular area or block volume by corner points.,0,0,3500,1000
! Subtract the three smaller rectangle from the large one
ASBAASBA, NA1, NA2, SEPO, KEEP1, KEEP2
Subtracts areas from areas.,4,1
ASBAASBA, NA1, NA2, SEPO, KEEP1, KEEP2
Subtracts areas from areas.,5,2
ASBAASBA, NA1, NA2, SEPO, KEEP1, KEEP2
Subtracts areas from areas.,1,3
! Smart size = 2
SMRTSMRTSIZE, SIZLVL, FAC, EXPND, TRANS, ANGL, ANGH, GRATIO, SMHLC, SMANC, MXITR, SPRX
Specifies meshing parameters for automatic (smart) element sizing.,2
! Quad elements, area
MSHAPEMSHAPE, KEY, Dimension
For elements that support multiple shapes, specifies the element shape to be used for meshing.,0,2D
! Free meshing
MSHKEYMSHKEY, KEY
Specifies whether free meshing or mapped meshing should be used to mesh a model.,0
AMESHAMESH, NA1, NA2, NINC
Generates nodes and area elements within areas.,2
! Refine the mesh
AREFINEAREFINE, NA1, NA2, NINC, LEVEL, DEPTH, POST, RETAIN
Refines the mesh around specified areas.,2,,,1
! Kinematic constraints
DLDL, LINE, AREA, Lab, Value1, Value2
Defines DOF constraints on lines.,28,,ALL,0
DLDL, LINE, AREA, Lab, Value1, Value2
Defines DOF constraints on lines.,31,,UX,0
DLDL, LINE, AREA, Lab, Value1, Value2
Defines DOF constraints on lines.,32,,UX,0
! Load case 1: distributed load
SFLSFL, Line, Lab, VALI, VALJ, VAL2I, VAL2J
Specifies surface loads on lines of an area.,27,PRES,PP = 20
! Write loadstep
LSWRITELSWRITE, LSNUM
Writes load and load step option data to a file.,1
! Delete the load
SFLDELESFLDELE, LINE, Lab
Deletes surface loads from lines.,27,PRES
! Load case 2: gravitational field
ACELACEL, ACEL_X, ACEL_Y, ACEL_Z
Specifies the linear acceleration of the global Cartesian reference frame for the analysis.,0,GG = 9810,0
! Write loadstep
LSWRITELSWRITE, LSNUM
Writes load and load step option data to a file.,2
FINISHFINISH
Exits normally from a processor.
! Create the load cases
LCDEFLCDEF, LCNO, LSTEP, SBSTEP, KIMG
Creates a load case from a set of results on a results file.,1,1,LAST,
LCDEFLCDEF, LCNO, LSTEP, SBSTEP, KIMG
Creates a load case from a set of results on a results file.,2,2,LAST,
! Read external load and add the own weight
LCASELCASE, LCNO
Reads a load case into the database.,1
LCOPERLCOPER, Oper, LCASE1, Oper2, LCASE2
Performs load case operations.,ADD,2
! Define path by two locations
PATHPATH, NAME, nPts, nSets, nDiv
Defines a path name and establishes parameters for the path.,PATH1,2,30,100
PPATHPPATH, POINT, NODE, X, Y, Z, CS
Defines a path by picking or defining nodes, or locations on the currently active working plane, or by entering specific coordinate locations.,1,0,7000/2,0,0,0,
PPATHPPATH, POINT, NODE, X, Y, Z, CS
Defines a path by picking or defining nodes, or locations on the currently active working plane, or by entering specific coordinate locations.,2,0,7000/2,1000,0,0
PDEFPDEF, Lab, Item, Comp, Avglab
Interpolates an item onto a path.,UY,U,Y,AVG
PDEFPDEF, Lab, Item, Comp, Avglab
Interpolates an item onto a path.,SX,S,X,AVG
PDEFPDEF, Lab, Item, Comp, Avglab
Interpolates an item onto a path.,SY,S,Y,AVG
PDEFPDEF, Lab, Item, Comp, Avglab
Interpolates an item onto a path.,SXY,S,XY,AVG
! Plot the diagrams on the path and saving them as pictures in the project's folder
! Change the background color to white
/RGB/RGB, Kywrd, PRED, PGRN, PBLU, N1, N2, NINC, NCNTR
Specifies the RGB color values for indices and contours.,INDEX,100,100,100,0
/RGB/RGB, Kywrd, PRED, PGRN, PBLU, N1, N2, NINC, NCNTR
Specifies the RGB color values for indices and contours.,INDEX,0,0,0,15
PLPATHPLPATH, Lab1, Lab2, Lab3, Lab4, Lab5, Lab6
Displays path items on a graph.,UY
/IMAGE/IMAGE, Label, Fname, Ext, --
Allows graphics data to be captured and saved.,SAVE,u_y,bmp
PLPATHPLPATH, Lab1, Lab2, Lab3, Lab4, Lab5, Lab6
Displays path items on a graph.,SX
/IMAGE/IMAGE, Label, Fname, Ext, --
Allows graphics data to be captured and saved.,SAVE,sigma_x,bmp
PLPATHPLPATH, Lab1, Lab2, Lab3, Lab4, Lab5, Lab6
Displays path items on a graph.,SY
/IMAGE/IMAGE, Label, Fname, Ext, --
Allows graphics data to be captured and saved.,SAVE,s_y,bmp
PLPATHPLPATH, Lab1, Lab2, Lab3, Lab4, Lab5, Lab6
Displays path items on a graph.,SXY
/IMAGE/IMAGE, Label, Fname, Ext, --
Allows graphics data to be captured and saved.,SAVE,tau_xy,bmp