Skip to content
Marc & Structures
Index

Save your progress

Enter your email and we will send a secure sign-in link. There is no password and the first link creates your account.

Demonstration ~8 min · ~44 min remaining

Script anatomy

Read the script as a story: initialize, define, activate, and create. Each block should leave a verifiable state.

Script anatomy

Opens the file in an editor. It is divided into five blocks:

  1. Initialize Database
  2. Define and mesh the model.
  3. Apply underlayment and load.
  4. Overcome
  5. Read and represent results.

Block 1 — Initialize the session

/CLEAR,START
/FILNAME,m00_cantilever,1
/OUTPUT,m00_session,out
/TITLE,M00 - Cantilever beam
/UNITS,SI
CommandFunctionVerification
/CLEAR,STARTClean the database and reread the initial settings.The session returns to BEGIN.
/FILNAMEDefines the base name of the exercise files.Files start with m00_cantilever.
/OUTPUT,m00_session,outRedirects text output to a file other than the one reserved for the job.After /INPUT, m00_session.out appears in the working directory.
/TITLEAssign a descriptive title to the model.Appears in supported listings and charts.
/UNITS,SIDocuments the unit convention.It does not convert any value.

Order matters.

/CLEAR appears before the title and the units because it restarts the database. /FILNAME sets the job prefix (m00_cantilever) and booking m00_cantilever.outThat’s why. /OUTPUT,m00_session,out goes right away with an alternate name. You don't have to repeat these commands or use the Switch Output to menu on M00.

Block 2 — Enter PREP7 and define attributes

/PREP7
ET,1,SOLID185
MP,EX,1,210E9
MP,PRXY,1,0.30
TYPE,1
MAT,1
  • /PREP7 enters the preprocessor: geometry, elements, materials, mesh and conditions.
  • ET,1,SOLID185 defines the element type 1 as a structural solid.
  • MP,EX,1,210E9 defines the elastic modulus of the 1 material.
  • MP,PRXY,1,0.30 defines its Poisson coefficient.
  • TYPE,1 and MAT,1 activate those boards before meshing.

M03 will justify in detail the choice of the element and compare idealizations. In M00 just recognize which element and material must be defined and active before generating elements.

Block 3 — Create geometry and mesh

BLOCK,0,1.0,0,0.10,0,0.05
ESIZE,0.025
VMESH,ALL
  • BLOCK creates a rectangular volume with X, Y and Z boundaries.
  • ESIZE proposes an overall element size.
  • VMESH,ALL mesh all selected volumes.

A visible mesh does not imply a converged mesh. M04 will study sensitivity and quality. Here we only need reasonable discretization to complete the flow.