Skip to content

Model produces results when unstable with a hinge #275

@weikequ

Description

@weikequ

Describe the bug
Define a simply supported beam with a hinge in the middle and a distributed load. Analyzing the structure using analyze() and it will run propery, but give erroneous reactions, moments, shears, and displacements. Additionally, running using analyze(sparse=False) will give a different set of results.

See video below.

To Reproduce
Here's the code to reproduce the behaviour:

from Pynite import FEModel3D

model = FEModel3D()

Iy = 0.000015234  # m^4 weak axis
Iz = 0.0000712  # m^4 strong axis
J = 0.000000241  # m^4
A = 0.006264504  # m^2
model.add_section("W10x33", A, Iy, Iz, J)

E = 200000000  # kPa
G = 77000000  # kPa
nu = 0.3  # Poisson's ratio
rho = 77  # Density (kN/m^3)
model.add_material("steel", E, G, nu, rho)

model.add_node("n1", 0, 0, 0)
model.add_node("n2", 1, 0, 0)
model.add_node("n3", 2, 0, 0)

model.add_member("m1", "n1", "n2", "steel", "W10x33")
model.add_member("m2", "n2", "n3", "steel", "W10x33")

model.def_support("n1", 1, 1, 1, 1, 1, 0)
model.def_support("n3", 0, 1, 1, 1, 1, 0)

model.add_member_dist_load("m1", "Fy", 10, 10)
model.add_member_dist_load("m2", "Fy", 10, 10)

model.def_releases("m2", Rzi=True)

model.analyze(sparse=False)

print(model.nodes["n1"].RxnFY)
print(model.nodes["n3"].RxnFY)
print(model.nodes["n2"].DY)

Expected behavior
An error should be thrown about the model being unstable.

Screenshots

Screen.Recording.2025-07-09.at.12.33.39.PM.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions