Small library for the solution of simple problems in Computational Solid Mechanics.
| Name | Surname | Student ID | UniTS email | Personal email | Master course |
|---|---|---|---|---|---|
| Piero | Zappi | SM3600004 | piero.zappi@studenti.units.it |
piero.z.2001@gmail.com |
SDIC |
CSM is a small Python library for the solution of simple problems in Computational Solid Mechanics, namely:
- Springs
- Linear Bars
- Plane Trusses
The library is designed to be easy to use and understand: the package allows the user to easily define the problem and quickly solve it.
Some tutorials are provided in the tutorials folder, where the user can find examples of how to use the library and understand the tipical workflow of solving a problem using the CSM framework.
The library is designed to be extensible, so that the user can easily add new features and functionalities.
The CSM library requires the following dependencies:
setuptoolsnumpymatplotlib
To install the dependencies, you can run the following commands in your terminal:
pip install setuptools
pip install numpy
pip install matplotlibTo install the CSM library and being able to import it in your Python scripts a setup.py file is provided.
After downloading the repository, the installation can be done by running the following commands from the root folder of the project in your terminal:
# Build the module
python3 setup.py build_ext --inplace
# Install the module
python3 -m pip install .After the installation, you can import the library in your Python scripts as shown in the tutorials.
The library is structured in a modular way, so that you can import only the modules you need.
Distributed under the MIT License. See LICENSE for more information.