APDL Coding
APDL Coding
FEM Lab
Engr. Saad Akram, DME, IST
Mesh
• A mesh is made up of elements which contain nodes (coordinate locations in space that can vary by element type) that represent the
shape of the geometry.
• An FEA solver cannot easily work with irregular shapes, but it is much happier with common shapes like cubes or triangles.
Meshing is the process of turning irregular shapes into more recognizable volumes called “elements.”
• These Triangles or cubes are the smallest units, that all join to represent geometry.
• Think of it as you are given squares to make a one big circle, Can you make one circle from 4 squares?
• But if you are given small number of millions of squares, you would make a nearly perfect circle.
2. Mesh Density: Mesh density refers to the number of elements used to discretize
a given volume or surface. Increasing mesh density generally improves the
Other
accuracy of the solution but also increases computational cost.
Terms 1. Structured Mesh: Regular grid-like pattern, easy to generate for simple
geometries, but inefficient for complex shapes.
20m
Force
Pressure
on line
10.MPDATA,PRXY,1,,0.3
(Define poison ratio of 0.3 to 1st mat)
11.MPDATA,DENS,1,,7800
(Defines density of 7800 to 1st mat)
6. ! Define keypoints for the circle 16. ! Create areas from the lines 23. ! List the resulting areas
7. K, 5, 0.5, 0.5, 0 and circle (optional)
8. K, 6, 0.6, 0.5, 0 17. AL, 1, 2, 3, 4 ! Square 24. FLST, AREA
18. AL, 2, 5, 6 ! Circle
9. ! Create lines to form the square 25. FINISH
10. L, 1, 2 19. ! Subtract the circle from the
Drive Link:
https://drive.google.com/drive/folders/1uAqErjFQKKtxCJjUDGukbTxOOl62Ou3f?usp=sharing
Help Videos:
https://youtu.be/Fh0aeKKs8qA
https://youtu.be/UvcgdFp1yW0
https://youtu.be/TIeSLN8VPWI
https://www.youtube.com/watch?v=3dK9c3pfoh8 (steps for modal non included rest all)
https://www.youtube.com/watch?v=gKOEI5Hs-c4 (If need to learn extra)
Engr. Saad Akram, DME, IST