AnalysisCase#
- class planestress.pre.analysis_case.AnalysisCase(boundary_conditions: list[BoundaryCondition], acceleration_field: tuple[float, float] = (0.0, 0.0))[source]#
Bases:
object
Class for an analysis case.
- Parameters:
boundary_conditions (list[BoundaryCondition]) – List of boundary conditions.
acceleration_field (tuple[float, float]) – Acceleration field for the current analysis case (
a_x
,a_y
). Defaults to(0.0, 0.0)
.
Methods
Assigns mesh tags to all boundary conditions in the analysis case.
Plots the boundary conditions.
Reset mesh tags.
Attributes
acceleration_field
boundary_conditions
- assign_mesh_tags(mesh: Mesh) None [source]#
Assigns mesh tags to all boundary conditions in the analysis case.
- Parameters:
mesh (Mesh) –
Mesh
object.- Raises:
ValueError – If there is an invalid boundary condition in a analysis case.
- plot(ax: matplotlib.axes.Axes, max_dim: float, bc_text: bool, bc_fmt: str, arrow_length_scale: float, arrow_width_scale: float, support_scale: float, num_supports: int, multi_polygon: MultiPolygon) None [source]#
Plots the boundary conditions.
- Parameters:
ax (matplotlib.axes.Axes) – Axis to plot on.
max_dim (float) – Maximum dimension of the geometry bounding box.
bc_text (bool) – If set to
True
, plots the values of the boundary conditions.bc_fmt (str) – Boundary condition text formatting string.
arrow_length_scale (float) – Arrow length scaling factor.
arrow_width_scale (float) – Arrow width scaling factor.
support_scale (float) – Support scaling factor.
num_supports (int) – Number of line supports to plot internally.
multi_polygon (MultiPolygon) –
MultiPolygon
describing the geometry.