Verifiable challenge — When mesh_h does not divide the part exactly
Complete 04_challenge.mac with sizes 0.04, 0.02 and
0.01 m. In the first case, beam_h/mesh_h=2.5: one line cannot
contain two and a half elements.
Your script should:
- Declare a policy to convert each quotient to an integer number of divisions.
- Inform the nominal size and the divisions actually used.
- Build the mesh without line, node or element IDs.
- Recheck the topological equations with the adopted integers.
- Generate the same CSV and select a mesh only if it meets the 2%.
The decision is part of the model
Rounding to the nearest integer approximates the nominal size. Always rounding up ensures that the actual size does not exceed it. Either choice must be explicit and applied consistently; do not silently delegate the decision to the mesher.