Read VABS Homogenized Output (Beam Properties)#

Problem Description#

After running VABS homogenization, read the .K output file to extract effective beam properties such as axial stiffness, torsional stiffness, and bending stiffness for use in beam-level structural analysis.

Solution#

"""Example: Read VABS Homogenized Output (Beam Properties)

This example demonstrates how to read VABS homogenized output to obtain
the effective beam properties (stiffness matrix, mass matrix, etc.).

The example reads a VABS 4.1 output file (.K file) for a Timoshenko beam model.
"""
import sgio

# Define the output file path
# Note: The .K file contains homogenized beam properties
output_file = 'cs_box_t_vabs41.sg.K'

# Read the VABS homogenized output
# - file_format='vabs': Specifies VABS format
# - model_type='BM2': Timoshenko beam model (includes shear deformation)
model = sgio.read_output_model(
    str(output_file),
    file_format='vabs',
    model_type='BM2'
)

# Extract beam properties using the .get() method
ea = model.get('ea')      # Axial stiffness
gj = model.get('gj')      # Torsional stiffness
ei22 = model.get('ei22')  # Bending stiffness about axis 2
ei33 = model.get('ei33')  # Bending stiffness about axis 3

model_type='BM2' selects the Timoshenko beam model output layout. Use model.get('<key>') to retrieve individual properties by name (e.g. 'ea', 'gj', 'ei22', 'ei33').

Result#

The script returns scalar beam property values that can be used directly in beam-level models.

File List#