Physical model
The template represents a cantilever beam with the following characteristics:
| Magnitud | Value | Unit |
|---|---|---|
| Length | 1,00 | m |
| height | 0,10 | m |
| Width | 0,05 | m |
| Elastic modulus | 210·10⁹ | Pa |
| Poisson’s ratio | 0,30 | — |
| Total vertical force | −1000 | N |
The end x=0 is embedded and the load acts on the nodes of x=1 m.
The geometry is deliberately simple: at M00 we want to learn how to execute and read the analysis,
not solving a complicated geometry.
The same beam in the table and in the script
The table above fixes the physical problem. The APDL script translates each decision into commands.
These are not separate topics: each row corresponds to a section of the .mac file.
-
BLOCKBLOCK,0,1.0,0,0.10,0,0.050, 1.0— limits in X (length 1,0 m).0, 0.10— limits in Y (height 0,10 m).0, 0.05— limits in Z (width 0,05 m).
-
MP,EX,1,210E9
MP,PRXY,1,0.30EX,1,210E9— elastic modulus of the material 1 (Pa).PRXY,1,0.30— Poisson coefficient of the material 1.
-
D,ALL,ALL,0onx=0NSEL,S,LOC,X,0D,ALL,ALL,0NSEL,S,LOC,X,0— select the nodes in the planex=0.D,ALL,ALL,0— constrains all degrees of freedom in the current selection.
-
F,ALL,FY,-1000/n_tipNSEL,S,LOC,X,1.0*GET,n_tip,NODE,0,COUNTF,ALL,FY,-1000/n_tipNSEL,S,LOC,X,1.0— select the nodes on the free end.*GET,n_tip,...— counts how many nodes are selected.F,ALL,FY,-1000/n_tip— distributes −1000 N among those nodes in Y.
When reading the anatomy of the script, do not memorize single lines: locate which physical decision encodes each block. Hover your cursor (or focus) over ? to view the command and the meaning of each argument.