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 ~10 min · ~32 min remaining

Evidence and diagnosis

Write a reproducible CSV, diagnose with /STATUS, and apply the acceptance contract.

Step 3 — Write evidence, not just messages

*CFOPEN,m08_results,csv
*VWRITE
('case_id,beam_h,tip_force,mesh_h,n_nodes,n_elements,...,passes')
*VWRITE,case_id,beam_h,tip_force,mesh_h,n_nodes,n_elements,...,passes
(...format...)
*CFCLOS

The CSV must contain inputs, topology, FE results, analytical references, relative errors, and passes. An on-screen /COM helps debugging; the file is evidence that survives the session.

Step 4 — Always diagnose with the same method

Debugging cycle: symptom, evidence, cause, and correction
Figure 2. Each fault is closed with a minimum correction and a clean rerun.
/STATUS,PARM
/COM,Inspect the .out for file paths, empty selections and missing sets

If passes=0, do not relax tolerances. Ask in this order: is the argument contract valid? Are the submacros in the working directory? Do the components contain nodes? Does a result set exist before extraction?

CSV acceptance contract

Compare your output with 08_expected_results.csv:

  • Case 1: 126 nodes, 40 elements, uy_ref=−3.80952381E−4.
  • Case 2: 156 nodes, 50 elements, uy_ref=−7.44047619E−4.
  • Deflection error < 5%, interior stress < 10%, equilibrium < 0.5%.
  • passes=1 in both cases.

Common pitfalls

  • Calling *USE without also copying 08_build, 08_solve, and 08_extract.
  • Forgetting ALLSEL,ALL between regions and carrying a residual selection.
  • Extracting displacements when n_sets=0.
  • Changing the physics or tolerance to “make” an incorrectly invoked case pass.

MAPDL practice

Practice: clean-directory reproducibility

Prove the modular workflow does not depend on residual files or selections.

Execution cycle

  1. 1 Run once and archive outputs.
  2. 2 Create a clean folder.
  3. 3 Copy only declared dependencies.
  4. 4 Repeat and compare CSV.
Evidence to retain

Graduated hints

1 · Concept hint

Reproducible means declared inputs, not favorable residue.

2 · Command hint

Initialize with /CLEAR and keep relative paths coherent.

3 · Explained solution

Two clean runs produce the same numeric contract.

Your reflection stays in this browser.