Skip to content

Solid arch under self-weight

The model before it is solved: parts, supports and loads

The model before it is solved: its parts, supports (red) and loads (blue).

The result: the model coloured by stress (vonMises [MPa])

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

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 Problem
from xfea.problem import StaticStep
from xfea.results import DisplacementFieldResults
from xfea.results import StressFieldResults
from xfea_examples import out_dir
from xfea_examples import show_viewer
from xfea_examples.models import arch_model
from 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