Skip to content

[BUG] Issue 97 no attribute 'sec_props' in from_windio_with_monopile #117

@TheMercer

Description

@TheMercer

pyBmodes version

1.5.0

Python version

3.11

How did you install pyBmodes?

pip install pybmodes (from PyPI)

Operating system

Windows 11

What happened?

tower._bmi.support.sec_props.flp_stff[-1] doesnt exist

AttributeError: 'NoneType' object has no attribute 'sec_props'

What did you expect?

The data to be there so it can be used

Minimal reproducer

tower = Tower.from_windio_with_monopile(Turbine_yaml, tip_mass = rna_mass, n_nodes = 50)         # or Tower.from_bmi("my_tower.bmi")
foundation = MudlineFoundation.from_soil_properties(
    pile_diameter=10.0, pile_length_embedded=45.0,
    pile_EI=tower._bmi.support.sec_props.flp_stff[-1],  # or pass directly
    soil_E=140e6, soil_nu=0.4,
    soil_profile="homogeneous", pile_behaviour="auto",
)
tower._bmi.support.mooring_K = foundation.as_mooring_K()
tower._bmi.hub_conn = 3

Traceback or unexpected output


Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions