/CLEAR /PREP7 ! --- 1. Element Type & Material Properties --- ET,1,185 ! 3D 8-Node Structural Solid (SOLID185) MP,EX,1,210000 ! Young's Modulus [MPa] (Assumed Steel) MP,PRXY,1,0.3 ! Poisson's Ratio ! --- 2. Geometry Creation (20x20x100 Rectangular Prism) --- BLOCK,0,100,0,20,0,20 ! --- 3. Meshing --- ESIZE,5 ! Element size: 5mm MSHAPE,0,3D ! Hexahedral mesh MSHKEY,1 ! Mapped meshing (Structured grid) VMESH,ALL FINISH ! --- 4. Boundary Conditions & Loading --- /SOLU ANTYPE,0 ! Static Analysis ! Fixed Constraint at the left end face (X=0) ASEL,S,LOC,X,0 DA,ALL,ALL ! Apply Load at the right end face (X=100) ! Select the entire face and apply a total of 1000N downward (FY) ASEL,S,LOC,X,100 SFA,ALL,1,PRES,2.5 ! Input as Pressure (1000N / (20mm * 20mm) = 2.5 MPa) ALLSEL,ALL SOLVE FINISH ! --- 5. Post-Processing (Results Review) --- /POST1 SET,LAST /EFACET,1 PLNSOL,U,SUM ! Plot Displacement (Vector Sum) Contour PLNSOL,S,EQV ! Plot von Mises Equivalent Stress
