get_result_contour#

dlubal.api.rfem.Application.get_result_contour(self, results_type, contour_type, filters=None, model_id=None, **keyword_filters)#

Gets results as VTK containers to directly visualise results as isobands/isolines for specific magnitude and loading.

Parameters:
  • results_type (ResultsType) – Unique identifier for the result category type.

  • contour_type (ContourType) – Unique identifier for the contour category type.

  • filters (ResultsFilter | None) – One or more filters to return only relevant results.

  • model_id (ModelId | None) – Unique identifier of the model. If None, the active model is used.

Returns:

A Table object containing the results as a DataFrame.

Method Type: Core


Usage

# Retrieves complete, unprocessed results from the RFEM database as isobands/isolines
# Filters can be applied to limit the data retrieved (currently by 'object_no' or 'loading').
# The results as VTK polydata are then wrapped in a DataFrame (.data) for easy visualization.
results: common.Table = rfem_app.get_result_contour(
   results_type=rfem.results.STATIC_ANALYSIS_SURFACES_EQUIVALENT_STRESSES_MISES_MESH_NODES,
   contour_type=rfem.results.settings.CONTOUR_TYPE_ISOBAND,
   filters=[
         rfem.results.ResultsFilter(column_id="loading", filter_expression="LC1"),  # Loading case LC1
         rfem.results.ResultsFilter(column_id="surface_no", filter_expression="6,7,8,9"),  # Surfaces 6 to 9
   ]
)
print(f"\nResults:\n{results.data}")

Output

Results:
loading increment     tag                                    sigma_eqv_mises                                  sigma_eqv_mises_m
0     LC1      <NA>     top  vtkPolyData (00000283C85D9C60)\n  Debug: Off\n...  vtkPolyData (00000283C85DA2E0)\n  Debug: Off\n...
1     LC1      <NA>  middle  vtkPolyData (00000283C85D9FA0)\n  Debug: Off\n...  vtkPolyData (00000283C85DA960)\n  Debug: Off\n...
2     LC1      <NA>  bottom  vtkPolyData (00000283C85DA140)\n  Debug: Off\n...  vtkPolyData (00000283C85DA480)\n  Debug: Off\n...

Examples