Skip to content

← Back to subsystem2

Analysis2

Source: userfiles/TwoBarTruss/subsystem2/Analysis2.py

Analysis module for Two-Bar Truss subsystem 2 (bar 2 sizing).

Implements the analysis for bar 2 (compression member) in the Two-Bar Truss structure, computing stress, Euler buckling stress, and cross-sectional area.

Classes

Analysis2

Inherits from: AnalysisInterface

Analysis class for Two-Bar Truss subsystem 2 (bar 2).

Computes compressive stress, Euler buckling critical stress, and cross-sectional area for bar 2 based on geometry and loading.

Attributes:

None specific to this class; inherits from AnalysisInterface.

Methods

init(self) → None

Initialize Analysis2 instance.

evaluateLocalResponses(self, subsystem: LocalSubSystemBasis) → None

Evaluate stress responses for bar 2 (compression member).

Computes compressive stress, Euler buckling critical stress, and cross-sectional area from tube geometry and internal force.

Args:

subsystem: The local subsystem basis containing design variables
and scaling information.

mapLocalResponsesDesignVariables_to_CouplingParameters(self, subsystem: LocalSubSystemBasis) → None

Map computed responses to the parent subsystem.

Maps cross-sectional area A2 and coupling variables (f2, L2) back to subsystem 0 for consistency.

Args:

subsystem: The local subsystem basis containing response data
and mapping interfaces.

mapLocalResponsesDesignVariables_to_CouplingParameters_Jacobians(self, subsystem: LocalSubSystemBasis) → None

Map the Jacobians of the mapped responses.

Args:

subsystem: The subsystem for which the Jacobians are mapped.

mapLocalResponsesDesignVariables_to_CouplingParameters_Hessian(self, subsystem: LocalSubSystemBasis) → None

Map the Hessians of the mapped responses, if known a priori.

Args:

subsystem: The subsystem for which the Hessians are mapped.