IGLCAE
Module: cae
High-level interface for FEA model data and visualization.
__init__
method
__init__(self)
GetFEModel
method
GetFEModel(self)
Get the display context for this FEA model
SetContext
method
SetContext(self, context: IGLDisplayContext)
Set the display context for this FEA model.
Args
| Name | Type | Description |
|---|---|---|
| context (IGLDisplayContext) | The display context to associate with this model. |
LoadModel
method
LoadModel(self, file_path: str)
Load an FEA model / Mesh from a file.
Args
| Name | Type | Description |
|---|---|---|
| file_path (str) | The path to the FEA result file (e.g., .frd) or Mesh file (.msh) |
SetDisplayMode
method
SetDisplayMode(self, mode: IGLFEDispType)
Set the display mode for visualization.
Args
| Name | Type | Description |
|---|---|---|
| mode (IGLFEDispType) | The finite element display type to use. |
SetMeshDs
method
SetMeshDs(self, meshds)
GetScalarBar
method
GetScalarBar(self)
Get scalar bar linked with the model viewer
_set_scalar_bar
method
_set_scalar_bar(self)
_updateView
method
_updateView(self)
Internal method to update the view.
_updatemesh
method
_updatemesh(self, meshds: IGLMeshDS)
Internal method to update mesh visualization based on current data.
_set_results_titles
method
_set_results_titles(self)
set_result_data_text
method
set_result_data_text(self, text)
Set text in the annotation text widget
DisplayScalarBar
method
DisplayScalarBar(self, bON)
Turn on/off scalar bar
DisplayResults
method
DisplayResults(self, ResName: IGLFEAResultType, step: int, inc: int, units: str, defoscale: float, analysis_type)
Display FEA results for a given result name and step using IGLFEAModel class.
Args
| Name | Type | Description |
|---|---|---|
| ResName (str) | The name of the result to display (e.g., 'Stress'). | |
| step (int) | The analysis step to display. | |
| inc (int) | The increment index within the step to display. | |
| CSys | Coordinate system for displaying results (optional). | |
| defoscale (float) | Scale factor for deformed shape visualization. |
DisplayContour
method
DisplayContour(self, nodalvalues: np.ndarray)
Display contour plot for a given nodal values.
Args
| Name | Type | Description |
|---|---|---|
| nodalvalues (np.ndarray) | The nodal values to display. | |
| note | nodal values array should have same length as no.of nodes |
SetScalaBarProps
method
SetScalaBarProps(self, name: str, result_type: str, add_txt, unit: str, time, minval: float, maxval: float)
Set properties for the scalar bar (legend) in the visualization.
Args
| Name | Type | Description |
|---|---|---|
| name (str) | The name of the result being displayed. | |
| result_type (str) | The type of result (e.g., 'Stress', 'Displacement'). | |
| unit (str) | The unit of the result values (e.g., 'MPa', 'mm'). | |
| time | The time corresponding to the results (optional). |
StartAnimation
method
StartAnimation(self, speed: int)
Animate the result plot over time
StopAnimation
method
StopAnimation(self)