Skip to main content

A Python package for Structural analysis

Project description

1.Introduction:

This is a Python Module for performing Linear, Nonlinear(2nd Order), Dynamic and Sensitivity Analysis of plane frames and Truss. You can use the package to calculate the following:

  1. Member Bending Moment
  2. Member Shear Force
  3. Member Normal Force
  4. Nodal Reactions Fx, Fy, My
  5. Nodal Displacement and Rotations

All of the above results can be obtained for both 1st order and 2nd order Analysis. In addtion you can also obtain following advance results:

  1. Critical Buckling Eigen Value
  2. Critical Buckling Eigen Mode
  3. Frequency Eigen Value
  4. Frequency Eigen Mode
  5. Node Sensitivity
  6. Axial Stiffness Sensitivity
  7. Bending Sensitivity

You also have an options

  1. Dividing Strutures Individual Finite Elements (Reduces working time on creating Nodes and elements)
  2. creating comparitive plot between two models (Presently its available only for Bending Moment)

2.How to Use:

  1. Create and Assemble the Structural Model
  2. Create Responses
  3. Perform the Individual Response

The package contains following Modules:

  1. StructuralElements - With this you can create Node, Member
  2. Loads - With this you can create NeumanBC
  3. main - with this you can assembale the model
  4. FirstOrderResponse - With this you can create FirstOrderGLobalResponse and FirstOrderMemberResponse
  5. SecondOrderResponse - With this you can create SecondOrderGLobalResponse and SecondOrderMemberResponse
  6. DynamicResponse - With this you can create DynamicGlobalResponse
  7. FiniteElementDivisor and Comparision

2.1 How to create Strucutural Model

Based on the Modules gives above use the following variables explained below to create strucutre

  1. Node:

    • Node_Number – Give the node number as an integer.
    • xcoordinate – Specify the x-coordinate as a float.
    • ycoordinate – Specify the y-coordinate as a float.
    • Support_Condition – Define the type of support as a string from the given options- "Hinged Support", "Fixed Support", "Rigid Joint", "Roller in X-plane", "Roller in Y-plane", "Hinge Joint", "Glided Support", "Roller in X-plane-Hinge"
  2. Member:

    • Beam_Number – Assign a unique beam number as an integer.
    • Start_Node – Specify the starting node number as an integer.
    • End_Node – Specify the ending node number as an integer.
    • Area – Define the cross-sectional area as a float.
    • Youngs_Modulus – Specify Young’s modulus as a float.
    • Moment_of_Inertia – Provide the moment of inertia as a float.
  3. NeumanBC:

    • type – Define the Load type as a string.
      "UDL" - Uniformly Distributed Load, "PL" - Point Load
    • Magnitude – Specify the magnitude of the Load as a float.
    • Distance1 – Provide the distance at which the Load is starts as a float.
    • Distance2 – Provide the distance at which the Load end as a float. ( Not needed if you use "PL")
    • AssignedTo – Indicate the member to which the load is applied as a string.
    • Members – List the member numbers assigned to this boundary condition as integers.

Example:

Points = [ StructuralElements.Node(Node_Number=1, xcoordinate=0, ycoordinate=0, Support_Condition="Hinged Support"), StructuralElements.Node(Node_Number=2, xcoordinate=0, ycoordinate=5, Support_Condition="Rigid Joint"), StructuralElements.Node(Node_Number=3, xcoordinate=5, ycoordinate=5, Support_Condition="Rigid Joint"), StructuralElements.Node(Node_Number=4, xcoordinate=5, ycoordinate=0, Support_Condition="Hinged Support") ]

Members = [ StructuralElements.Member(Beam_Number=1, Start_Node=Points[0], End_Node=Points[1], Area=0.09, Youngs_Modulus=200000000, Moment_of_Inertia=0.000675), StructuralElements.Member(Beam_Number=2, Start_Node=Points[1], End_Node=Points[2], Area=0.09, Youngs_Modulus=200000000, Moment_of_Inertia=0.000675), StructuralElements.Member(Beam_Number=3, Start_Node=Points[2], End_Node=Points[3], Area=0.09, Youngs_Modulus=200000000, Moment_of_Inertia=0.000675), ] # square cross section - 0.3 x 0.3, units N, m

Loads = [ Loads.NeumanBC(type="PL", Magnitude=100000, Distance1= 2.5, AssignedTo="Member 2", Members = Members) ]

This creates a Square frame with point Load on Middle

2.2 How to create responses:

Response is created based on the Structure. Example of creating each response is given

Model1 = main.Model(Points = Points, Members = Members, Loads = Loads) GlobalRes1 = FirstOrderResponse.FirstOrderGlobalResponse(Points = Points, Members = Members, Loads = Loads) NodalRes1 = NodalResponse(Points = Points, Members = Members, Loads = Loads) MemberRes1 = FirstOrderResponse.FirstOrderMemberResponse(Points = Points, Members = Members, Loads = Loads) SecondOrderResponse1 = SecondOrderResponse.SecondOrderGlobalResponse(Points = Points, Members = Members, Loads = Loads) SecondOrderMemberResponse1 = SecondOrderResponse.SecondOrderMemberResponse(Points = Points, Members = Members, Loads = Loads) Comparision1 = Comparision.Comparision(MainModel = MemberRes1, Model2 = SecondOrderMemberResponse1) DynamicResponse1 = DynamicResponse.DynamicGlobalResponse(Points = Points, Members = Members, Loads = Loads)

Instead of Model1, GlobalResponse1 you can use anyother name. Based on this model Structural results can be obtained as shown below

Follwing Structural results are availabe for each response:

  1. FirstOrderGlobalResponse - SupportForcesVector, DisplacementVectorDict

  2. FirstOrderNodalResponse - NodeForce, NodeDisplacement

  3. FirstOrderMemberResponse - MemberDisplacement, MemberForceLocal

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nstructanaly-0.1.1.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nstructanaly-0.1.1-py3-none-any.whl (29.4 kB view details)

Uploaded Python 3

File details

Details for the file nstructanaly-0.1.1.tar.gz.

File metadata

  • Download URL: nstructanaly-0.1.1.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for nstructanaly-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f2d45d1f6eed4878f4ee4c8a42244189a423e2c153dd464776c00ae9b469ab6d
MD5 a4442dcf85838a024a2e2487333fb0e9
BLAKE2b-256 c18d0368fdcfb3b925d57b0951653662683b7a3591e4fcb4e4e46a1ccae4f800

See more details on using hashes here.

File details

Details for the file nstructanaly-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: nstructanaly-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 29.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for nstructanaly-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ec295cb18ff78fc8459483abeab3a2e30b022e88620849213c3df3501ccc462
MD5 56e1b11ae357d57e7bafb50bddee8893
BLAKE2b-256 56cd65151a414a0c4f7fe69a35d9bd75cf45b336faab450665788b98e8376733

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page