Post-processing#

Factory functions#

create_envelope(**kwargs)

Create an envelope object for post-processing result envelopes.

plot_force(ospgrillage_obj[, result_obj, ...])

Plot a force diagram for a grillage model result for a specified component and load case.

plot_defo(ospgrillage_obj[, result_obj, ...])

Plot a displacement diagram for a grillage model result for a specified component and load case.

Class reference#

Envelope#

class Envelope(ds, load_effect=None, **kwargs)#

Bases: object

Class for defining envelope of OspGrillage’s xarray of result.

A Envelope.get() method is provided that returns an enveloped xarray based on the specified input parameters of this class.

Parameters:
  • ds (Xarray) – Data set from get_results() . note Combination

  • load_effect (str) – Specific load effect to envelope.

  • array (str, optional) – Data array to envelope — either "displacements" or "forces".

  • value_mode (bool, optional) – If True, return raw envelope values. Defaults to True.

  • query_mode (bool, optional) – If True, return the load case coordinate at the envelope extrema. Defaults to False.

  • extrema (str, optional) – Envelope direction — either "min" or "max".

  • elements (list, optional) – Specific element tags to include in the envelope.

  • nodes (list, optional) – Specific node tags to include in the envelope.

PostProcessor#

class PostProcessor(grillage, result)#

Bases: object

Class to post-process the results from an of ospgrillage analysis result.

As of version 0.2.0, ospgrillage compiles results using Xarray module.

Init the class