OspGrillage.get_results#

OspGrillage.get_results(**kwargs)#

Return analysis results as an xarray Dataset.

By default all load cases are compiled, including every incremental position of every moving load. For models with moving loads this can be very slow — use the load_case parameter to retrieve only what you need:

# Fast — six static cases only
results = model.get_results(
    load_case=["Dead load", "SIDL", "M1600 L1"]
)

# Fast — one moving load (all its increments)
moving = model.get_results(load_case="Moving M1600 L1")
Parameters:
  • load_case (str or list of str, optional) – Name string or list of name strings of specific load cases to extract. The returned DataSet contains only the specified load cases. Recommended when the model includes moving loads.

  • combinations (dict, optional) – Load combination definition. When provided, returns a modified DataSet computed from the specified combinations. Pass as a dict with load case name strings as keys and load factors (int or float) as values.

  • save_filename (str, optional) – File name for saving results to NetCDF format in the current working directory.

Returns:

Xarray DataSet of analysis results. If combinations is provided, returns a list of DataSets, one per load combination.