Skip to main content

A package for eurocode calculations

Project description

eurocodepy v0.1.22

EurocodePy is a Python package for calculating structures according to Eurocodes. It provides a collection of functions that enable engineers to design and analyze structures based on the Eurocode standards. In addition, it includes a database of structural materials and steel profiles, making it easy to design and analyze structures according to Eurocode standards.

There are also some functions to work with material properties:

  • creep_coef
  • shrink_strain

The utils package has some functions that can be useful:

  • stress: calculate the principal stresses and vectors, and the stress inavariants (I1, J2, J3, ...)

Installation

You can install EurocodePy using pip by running the following command:

pip install eurocodepy

Too upgrade to the latest version use:

pip install eurocodepy --upgrade

Usage

EurocodePy is designed to be easy to use. Simply import the package and start using the functions. Here's an example of how to calculate the bending resistance of a steel beam:

import eurocodepy as ec

beam = ec.SteelBeam('HEA200')
beam.check_bending_capacity(M=1000)

EurocodePy provides a range of functions for designing and analyzing structures according to Eurocodes. Here are some examples:

from eurocodepy import ec2

Materials and Profiles Database

EurocodePy includes a database of structural materials and steel profiles. The database is stored in a JSON file and can be easily updated or extended. The materials database includes properties such as the density, modulus of elasticity, and Poisson's ratio, while the steel profiles database includes properties such as the cross-sectional area, moment of inertia, and section modulus.

The database is stored in a JSON file 'eurocodes.json'. This file is loaded when the package is impoorted, soo you can modified it to include you own properties. If you have some suggestions or materials to add to the database and want them to be included for all the coommunity, please contribute as described below in the contributions section. Steel profiles arre stored in a separate file 'prof_euro.json'

The database can be accessed through a dictionary. There are also some aliases to easily access the database. The following code gives examples on how to use it.

import eurocodepy as ec

# To access the entire database
db = ec.db

# To access concrete class C30/37
conc = ec.db["Materials"]["Concrete"]["Classes"]["C30/37"] # Alternative 1
conc = ec.Materials["Concrete"]["Classes"]["C30/37"] # Alternative 2
conc = ec.Concrete["Classes"]["C30/37"] # Alternative 3
conc = ec.ConcreteClasses["C30/37"] # Alternative 4

# to access a steel profile
ipe200 = ec.SteelProfiles["I_SECTION"]["IPE200]

Current materials in the database are:

  • concrete (C20/25 to C90/105)
  • timber (C14 to C24, D18, GL24 to 36)
  • reinforcement - general (B400, B450, B500, B550, B600, B700, cclasses A, B and C: B400A etc.)
  • reinforcement - portuguese (A400NR, A400NRSD, A500NR, A500NRSD, A500ER, A500EL)
  • structural steel (S235, S275, S355, S450)

Available european steel profiles are:

  • I sections (IPE, HEA, HEB, HEM)
  • L sections
  • C sections
  • T sections
  • Pipe sections
  • Box sections
  • Double L sections
  • Double C sections

Documentation

A more or less complete description of existing packages and modules can be found on eurocodepy.readthedocs.io

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

We welcome contributions from everyone. Before getting started, please read our Code of Conduct and Contributing Guidelines.

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

eurocodepy-0.1.26.tar.gz (264.2 kB view details)

Uploaded Source

Built Distribution

eurocodepy-0.1.26-py3-none-any.whl (295.9 kB view details)

Uploaded Python 3

File details

Details for the file eurocodepy-0.1.26.tar.gz.

File metadata

  • Download URL: eurocodepy-0.1.26.tar.gz
  • Upload date:
  • Size: 264.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for eurocodepy-0.1.26.tar.gz
Algorithm Hash digest
SHA256 823f65ff5610621763adcc0f535584b71cfe90ff67c3b01275b2f82cec594368
MD5 59b57e8c2ad53783c018a5ffef1a05cc
BLAKE2b-256 7390fdf386e28d847dd06c69ccc3a68485f54de20b9de9a21d3fa73400497d9a

See more details on using hashes here.

File details

Details for the file eurocodepy-0.1.26-py3-none-any.whl.

File metadata

  • Download URL: eurocodepy-0.1.26-py3-none-any.whl
  • Upload date:
  • Size: 295.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for eurocodepy-0.1.26-py3-none-any.whl
Algorithm Hash digest
SHA256 1024844c91614e079e06f17fb549bb6cc90ab39a845948de611f53f99cc17e53
MD5 e1f91586312044317e811d4d6d1e46f3
BLAKE2b-256 a87b0f3340cc85fc78708c376d62a205d57469a135621e300a2aa68abc30992e

See more details on using hashes here.

Supported by

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