Base package for structural design with Eurocodes
pip install dx-eurocode==1.0.0
dx-eurocode
A base package for structural design with EN Eurocodes.
This repository includes nested submodules. Thus it has to be cloned with the appropriate options for initializing and cloning the submodules. For more information on working with submodules see the relevant discussion here and the reference on Pro Git.
Clone the repository
$ git clone --recurse-submodules git@gitlab.com:d-e/dx-eurocode.git [local-path]
Create virtual environment:
$ make install
Activate virtual environment and run tests:
$ source venv/bin/activate
$ nose2
$ pip install git://git@gitlab.com/d-e/dx-eurocode.git#egg=dx_eurocode
$ pip install dx-eurocode
Eurocode, Part 0 (EC0)
Eurocode, Part 2 (EC2)
>>> from dx_eurocode.EC2.materials import RC
>>> C16_20 = RC[16] # RC['16'] works as well!
>>> C16_20.fck
16000000.0
>>> C16_20.fcm
24000000.0
>>> C16_20.Ecm
28607904894.961403
>>> C16_20.gamma
{'accidental': {'ultimate': 1.2},
'persistent': {'ultimate': 1.5},
'transient': {'ultimate': 1.5}}
>>> C16_20.fcd(design_situation='persistent', limit_state='ultimate')
10666666.666666666
Source code lives in https://gitlab.com/d-e/dx-eurocode.
We abide by the provisions of Contributor Coventant Code of Conduct.
Follow this simplified gitflow model.
We follow semantic versioning.
Documentation is generated through continuous-integration (CI). For review purposes it can be generated locally with:
$ make MODPATH=../dx_eurocode -C docs apidoc html
For more details on the process run
$ make docs-help
The package includes coded exceptions. The list of error codes, along
with associated metadata is generated in ERROR_CODES.md
.
Upon refactoring or additions of coded exceptions this list must be regenerated through
$ make parse-error-codes
See the documentation pages.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.