Solid arch under self-weight

The model before it is solved: its parts, supports (red) and loads (blue).
![The result: the model coloured by stress (vonMises [MPa])](/examples/example-structures/arch-solid-results.webp)
The model, coloured by stress (vonMises [MPa]), in xfea’s 3D viewer.
Open in 3D turn it, cut it, pick any field: in xfea's viewer, in your browser
The script
Section titled “The script”examples/scripts/05_example_structures/arch_solid.py. Run it from the repository with uv run python examples/scripts/05_example_structures/arch_solid.py, or, with xfea-examples installed, xfea-examples run 05_example_structures/arch_solid.py.
from xfea.problem import Problemfrom xfea.problem import StaticStepfrom xfea.results import DisplacementFieldResultsfrom xfea.results import StressFieldResults
from xfea_examples import out_dirfrom xfea_examples import show_viewerfrom xfea_examples.models import arch_modelfrom xfea.viewers import ViewerSettings
g = 9810 # [mm/s^2] gravity
model, part, _, _, _ = arch_model(name="reference_arch_solid")
base_nodes = part.find_nodes_on_plane(part.bottom_plane)model.add_pin_bc(base_nodes)
problem = model.add_problem(Problem(name="arch_reference_problem"))step = problem.add_step(StaticStep(name="gravity"))step.add_gravity_field(g=g)
disp = DisplacementFieldResults()stress = StressFieldResults()step.add_field_outputs([disp, stress])
problem.analyse_and_extract(path=out_dir(model.name), verbose=True)
print(f"Maximum vertical displacement: {disp.get_min_result('z').z}")show_viewer(model, results={disp: "z"}, units="mm", settings=ViewerSettings(show_result_vectors=False))© 2026 Francesco Ranaudo · Text and pictures CC BY 4.0 · Code Elastic License 2.0 · how to reuse them