Skip to main content

A CIvil ENgineering PYthon package

Project description

cienpy

The name cienpy stands for CIvil ENgineering PYthon and the package contains supporting tools for the computation of parameters and the management of interactive widgets and glyph from the library Bokeh. At the moment, the package is focused on Structural Mechanics beacause it supports Jupyter Notebooks with interactive tools, but in the future it could be enriched with more Civil Engineering analysis and theories.

Requirements

Features

Structural Mechanics

  • Static system: simply supported beam
  • Cross section: filled and hollow rectangular section
  • Free-body diagram (FBD) with state machine
  • NVM diagrams
  • Deflection (only due to bending)
  • Elastic and plastic analysis
  • Stress and strain analysis
  • Stress state element and stresses
  • Torsion (uniform)
  • Mohr Circle
  • Buckling

Interactive Tools (Bokeh)

  • Nested-string structure and explicit function implementation for easy and quick management of Javascript codes in Python
  • Curved and double arrows
  • Linspace and parabola Javascript functions
  • Roller and pinned boundary condition (draws)
  • Supporting tools for quick definition and modification of various glyph and widgets

Installation

Use the package manager pip to install cienpy using the following prompt command.

pip install cienpy

Usage

The package is normally imported with this lines:

# import the desired static system
from cienpy import simplebeam as static_sys
# import the desired cross-section
from cienpy import rectangular_section as beam_section
# import supporting modules for the visualisation implementation
from cienpy import models
from cienpy import javascriptcodes as js

A dictionary should be created with a specific format of arrays with one entry each and keynames that depend on the functions needed. This dictionary will be used as the main source (ColumnDataSource) for the manipulation of variables bewtween widgets and glyphs in the Javascript codes.

The figures, widgets and glyphs should be initialised.

The Javascript logics for different widgets and events should be declared.

Finally the layout is declared and executed.

Note that the functions have exhaustive description to help the user.

Examples

Applications of the library are available in the NOTO EPFL server under the DRIL project for Structural Mechanics or in the RESSLab Github page.

Library Status

The library is currently finished for its intended use (support for Structural Mechanics interactive tools). Future implementations are possible to extend the usage and the power of the package.

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

cienpy-0.1.1.tar.gz (32.0 kB view details)

Uploaded Source

Built Distribution

cienpy-0.1.1-py3-none-any.whl (35.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cienpy-0.1.1.tar.gz
  • Upload date:
  • Size: 32.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for cienpy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c4ef6ad0099ae2528270b4a33773aa4ad77d786a768cb0fdfadc7125d06c7f67
MD5 571ac6cb723157617b97cc6c947f8127
BLAKE2b-256 0e1253a6d71fc722d35110a832b8168adc57ca8eb9c91387f937955f7c7d0b46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cienpy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 35.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for cienpy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f7017f3795de5c5a20f8b9791d4ec8f98dbf9a63a7c45109271e25c8fca84294
MD5 c7d14f189668d0b7bc312ee7574933b5
BLAKE2b-256 08eb0cd81f0b2e644b43369b6e747fd564cbfe50cf59e4795bf7752b747f2d4a

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