A shell plate
Demonstrates surface meshing, supports, distributed loading, and result queries through the generic core APIs.

The model before it is solved: its parts, supports (red) and loads (blue).
![The result: the deformed shape coloured by displacement (magnitude [mm])](/examples/getting-started/03-shell-plate-results.webp)
The deformed shape, coloured by displacement (magnitude [mm]), 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/01_getting_started/03_shell_plate.py. Run it from the repository with uv run python examples/scripts/01_getting_started/03_shell_plate.py, or, with xfea-examples installed, xfea-examples run 01_getting_started/03_shell_plate.py.
from xfea.problem import Problemfrom xfea.problem import StaticStepfrom xfea.results import DisplacementFieldResults
from xfea_examples import out_dirfrom xfea_examples.models import shell_plate_modelfrom xfea_examples import viewer_wantedfrom xfea.viewers.viewer import Viewer
pressure = 1e-3 # [MPa] applied surface pressure (1 kPa)
model, part, loaded_nodes, _, _, length, width, _ = shell_plate_model( name="getting_started_shell_plate")
problem = model.add_problem(Problem(name="plate_problem"))step = problem.add_step(StaticStep(name="service"))
total_load = pressure * length * widthload_per_node = -total_load / max(1, len(part.nodes))step.add_uniform_forcefield(nodes=loaded_nodes, z=load_per_node, load_case="service")
disp = DisplacementFieldResults()step.add_field_outputs([disp])
problem.analyse_and_extract(path=out_dir(model.name), verbose=True)
print(f"Maximum vertical displacement: {disp.get_min_result('z').z}")
# Via plugin registryviewer = Viewer(plugin="browser")viewer.add_model(model)viewer.add_results({disp: "z"}, units="mm")if viewer_wanted(): # XFEA_EXAMPLES_SHOW_VIEWER=1, or `xfea-examples config set-show-viewer on` viewer.run()© 2026 Francesco Ranaudo · Text and pictures CC BY 4.0 · Code Elastic License 2.0 · how to reuse them