A Python package for reinforced concrete analysis and design as per IS 456:2000
Project description
rcdesign
rcdesign
is a Python package for analysis and design of reinforced concrete sections as per IS 456:2000, the Indian Standard code of practice for plain and reinforced concrete.
Installation
Install from PyPI using pip
Requirements
- Python 3.7+
- numpy
- scipy
- sympy
Install from PyPI
Create a separate directory and install a virtual environment. Activate the virtual environment and install required packages. On *nix systems, do the following:
$ mkdir rcd_tutorial
$ cd rcd_tutorial
$ python -m venv .venv
$ .venv/bin/activate
(.venv) $ _
On Windows, do the following:
> mkdir rcd_tutorial
> cd rcd_tutorial
> python -m venv .venv
> .venv\Scripts\activate
> (.venv) > _
Install using pip
$ (.venv) pip install -U rcdesign
$ (.venv) python -c "from rcdesign import __version__;print(__version____)
$ 0.4.7
Run the two built-in examples problem and study the output.
$ (.venv) python -m rcdesign
Install from Source on github
Clone the repository
Choose a suitable directory where you wish to clone the source code from github. Clone the repository using git
$ git clone https://github.com/satish-annigeri/rcdesign.git
When you clone the rcdesign
repository from github, a new directory named rcdesign
will be created in the current working directory. Change over to the directory rcdesign
that is created with the command
$ cd rcdesign
List the directory contents and verify the directory structure.
Create a virtual environment
Create a virtual environment inside the rcdesign
directory with the following command
$ python -m venv .venv
Activate the virtual environment with the command
$ source env/bin/activate
(.venv) $ _
For Windows operating system, the command is
> .venv\Scripts\activate
(.venv) > _
Install required packages
Install required packages into the virtual environment with pip
(.venv) $ pip install -U rcdesign[test]
This will install pytest and pytest-cov required to run the tests.
Run tests
Run the tests with pytest
(.venv) $ pytest tests
Check code coverage.
(.venv) $ pytest --cov=rcdesign tests
You can also use nox
to run the tests. Install nox
using pip
, if necessary.
(.venv) $ pip install nox
(.venv) $ nox
When you are done using the virtual environment, you can deactivate it with the command deactivate
at the command prompt in all operating systems.
Examples
Built-in Example
Run the built-in example with the following command.
(.venv) $ python -m rcdesign
Examples from tests
Directory
Run the additional examples in the tests
directory with the following command from the command prompt:
(.venv) $ python -m tests.example01
(.venv) $ python -m tests.example02
...
(.venv) $ python -m tests.example09
Your Own Example
Refer the documentation to write your own scripts.
Contribute
Contributions are welcome. Contributions can be in a variety of forms:
- Bug reports
- Additional features
- Documentation
- Additional examples
Links
- Documentation: Documentation
- PyPI release: 0.4.7
- Github repository: https://github.com/satish-annigeri/rcdesign
References
- IS 456:2000 Indian Standard Code of Practice for Plain and Reinforced Concrete (Fourth Revision), Bureau of Indian Standards, New Delhi, 2000.
- SP:24 (S&T)-1983 Explanatory Handbook on Indian Standard Code of Practice for Plain and Reinforced Concrete (IS 456:1978), Bureau of Indian Standards, New Delhi, 1984.
- SP 16:1980 Design Aids for Reinforced Concrete to IS:456-1978, Bureau of Indian Standards, New Delhi, 1980.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.