pystran 0.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. pystran-0.0.1/.github/workflows/pubflow.yml +52 -0
  2. pystran-0.0.1/.github/workflows/sphinx.yml +47 -0
  3. pystran-0.0.1/.gitignore +172 -0
  4. pystran-0.0.1/LICENSE +21 -0
  5. pystran-0.0.1/PKG-INFO +115 -0
  6. pystran-0.0.1/README.md +101 -0
  7. pystran-0.0.1/derivations/beam2d-cl-rb.png +0 -0
  8. pystran-0.0.1/derivations/beam2d-cl.png +0 -0
  9. pystran-0.0.1/derivations/beam2d-ss-rb.png +0 -0
  10. pystran-0.0.1/derivations/beam2d-ss.png +0 -0
  11. pystran-0.0.1/derivations/beam2d.png +0 -0
  12. pystran-0.0.1/derivations/beam_3d_stiffness_check.ipynb +476 -0
  13. pystran-0.0.1/derivations/beam_3d_stiffness_check.py +231 -0
  14. pystran-0.0.1/derivations/beam_curvatures.ipynb +340 -0
  15. pystran-0.0.1/derivations/beam_curvatures.py +136 -0
  16. pystran-0.0.1/derivations/beam_shape.py +152 -0
  17. pystran-0.0.1/derivations/beam_shape_-1_+1.ipynb +503 -0
  18. pystran-0.0.1/derivations/beam_shape_0_1.ipynb +463 -0
  19. pystran-0.0.1/derivations/beam_stiffness.ipynb +542 -0
  20. pystran-0.0.1/derivations/beam_stiffness.py +178 -0
  21. pystran-0.0.1/derivations/beam_stiffness_via_flexibility.ipynb +602 -0
  22. pystran-0.0.1/derivations/beams.pdf +0 -0
  23. pystran-0.0.1/derivations/clamped_beam.py +47 -0
  24. pystran-0.0.1/derivations/clamped_beam_w_triangulardl.py +17 -0
  25. pystran-0.0.1/derivations/clamped_beam_w_udl.py +23 -0
  26. pystran-0.0.1/derivations/context.py +11 -0
  27. pystran-0.0.1/derivations/moment_and_other_releases.py +30 -0
  28. pystran-0.0.1/doc_requirements.txt +6 -0
  29. pystran-0.0.1/docs/issues-and-ideas.md +13 -0
  30. pystran-0.0.1/docs/make_docs.md +28 -0
  31. pystran-0.0.1/docs/source/conf.py +36 -0
  32. pystran-0.0.1/docs/splash.png +0 -0
  33. pystran-0.0.1/docs/spyder/ScreenHunter 24.png +0 -0
  34. pystran-0.0.1/docs/spyder/console.png +0 -0
  35. pystran-0.0.1/docs/spyder/from_existing.png +0 -0
  36. pystran-0.0.1/docs/spyder/graphics_settings.png +0 -0
  37. pystran-0.0.1/docs/spyder/new_project.png +0 -0
  38. pystran-0.0.1/docs/spyder/open_tutorial.png +0 -0
  39. pystran-0.0.1/docs/spyder/project_pane.png +0 -0
  40. pystran-0.0.1/docs/spyder/spyder.md +43 -0
  41. pystran-0.0.1/docs/terminal/folder_and_run.png +0 -0
  42. pystran-0.0.1/docs/terminal/terminal.md +19 -0
  43. pystran-0.0.1/pyproject.toml +23 -0
  44. pystran-0.0.1/pystran/__init__.py +92 -0
  45. pystran-0.0.1/pystran/assemble.py +33 -0
  46. pystran-0.0.1/pystran/beam.py +1269 -0
  47. pystran-0.0.1/pystran/freedoms.py +147 -0
  48. pystran-0.0.1/pystran/gauss.py +96 -0
  49. pystran-0.0.1/pystran/geometry.py +268 -0
  50. pystran-0.0.1/pystran/model.py +990 -0
  51. pystran-0.0.1/pystran/plots.py +1449 -0
  52. pystran-0.0.1/pystran/rigid.py +126 -0
  53. pystran-0.0.1/pystran/rotation.py +74 -0
  54. pystran-0.0.1/pystran/section.py +360 -0
  55. pystran-0.0.1/pystran/spring.py +69 -0
  56. pystran-0.0.1/pystran/truss.py +286 -0
  57. pystran-0.0.1/scripts/context.py +24 -0
  58. pystran-0.0.1/tests/context.py +24 -0
  59. pystran-0.0.1/tests/unittests_planar_frame.py +467 -0
  60. pystran-0.0.1/tests/unittests_planar_truss.py +450 -0
  61. pystran-0.0.1/tests/unittests_space_frame.py +1405 -0
  62. pystran-0.0.1/tests/unittests_space_truss.py +140 -0
  63. pystran-0.0.1/tutorials/00_matrices_tut.py +187 -0
  64. pystran-0.0.1/tutorials/01_alt_three_bars_tut.py +158 -0
  65. pystran-0.0.1/tutorials/01_three_bars_tut.py +149 -0
  66. pystran-0.0.1/tutorials/02_continuous_beam_2_spans_consist_tut.py +136 -0
  67. pystran-0.0.1/tutorials/03_weaver_1_tut.py +299 -0
  68. pystran-0.0.1/tutorials/04_supp_settle_tut.py +132 -0
  69. pystran-0.0.1/tutorials/05_hinge_frame_tut.py +121 -0
  70. pystran-0.0.1/tutorials/06_sennett_tut.py +228 -0
  71. pystran-0.0.1/tutorials/07_frame_thermal_tut.py +187 -0
  72. pystran-0.0.1/tutorials/08_alt_refine_member_tut.py +121 -0
  73. pystran-0.0.1/tutorials/08_refine_member_tut.py +116 -0
  74. pystran-0.0.1/tutorials/09_SDLX_01_89_vibration_tut.py +97 -0
  75. pystran-0.0.1/tutorials/10_truss_5_vibration_tut.py +98 -0
  76. pystran-0.0.1/tutorials/11_samcef_frame_3d_vibration_tut.py +144 -0
  77. pystran-0.0.1/tutorials/12_timo_beam_on_springs_tut.py +81 -0
  78. pystran-0.0.1/tutorials/13_hinged_3d_frame_tut.py +263 -0
  79. pystran-0.0.1/tutorials/14_truss_skew_support_tut.py +240 -0
  80. pystran-0.0.1/tutorials/15_penalty_supports_tut.py +136 -0
  81. pystran-0.0.1/tutorials/16_distributed_load_continuous_beam_tut.py +231 -0
  82. pystran-0.0.1/tutorials/17_arch_out_of_plane_tut.py +114 -0
  83. pystran-0.0.1/tutorials/18_SSLL05_89_tut.py +100 -0
  84. pystran-0.0.1/tutorials/context.py +24 -0
@@ -0,0 +1,52 @@
1
+ name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
2
+
3
+ on: push
4
+
5
+ jobs:
6
+ build:
7
+ name: Build distribution 📦
8
+ runs-on: ubuntu-latest
9
+
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ with:
13
+ persist-credentials: false
14
+ - name: Set up Python
15
+ uses: actions/setup-python@v5
16
+ with:
17
+ python-version: "3.x"
18
+ - name: Install pypa/build
19
+ run: >-
20
+ python3 -m
21
+ pip install
22
+ build
23
+ --user
24
+ - name: Build a binary wheel and a source tarball
25
+ run: python3 -m build
26
+ - name: Store the distribution packages
27
+ uses: actions/upload-artifact@v4
28
+ with:
29
+ name: python-package-distributions
30
+ path: dist/
31
+
32
+ publish-to-pypi:
33
+ name: >-
34
+ Publish Python 🐍 distribution 📦 to PyPI
35
+ if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
36
+ needs:
37
+ - build
38
+ runs-on: ubuntu-latest
39
+ environment:
40
+ name: pypi
41
+ url: https://pypi.org/p/<package-name> # Replace <package-name> with your PyPI project name
42
+ permissions:
43
+ id-token: write # IMPORTANT: mandatory for trusted publishing
44
+
45
+ steps:
46
+ - name: Download all the dists
47
+ uses: actions/download-artifact@v4
48
+ with:
49
+ name: python-package-distributions
50
+ path: dist/
51
+ - name: Publish distribution 📦 to PyPI
52
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,47 @@
1
+ # This is a basic workflow to help you get started with Actions
2
+
3
+ name: Build-sphinx-docs
4
+
5
+ # Controls when the workflow will run
6
+ on:
7
+ # Triggers the workflow on push or pull request events but only for the main branch
8
+ push:
9
+ branches: [master]
10
+ pull_request:
11
+ branches: [master]
12
+
13
+ # Allows you to run this workflow manually from the Actions tab
14
+ workflow_dispatch:
15
+
16
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
17
+ jobs:
18
+ # This workflow contains a single job called "build"
19
+ build:
20
+ # The type of runner that the job will run on
21
+ runs-on: ubuntu-latest
22
+
23
+ # Steps represent a sequence of tasks that will be executed as part of the job
24
+ steps:
25
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26
+ - uses: actions/checkout@v2
27
+
28
+ - name: Set up Python 3.10
29
+ uses: actions/setup-python@v2
30
+ with:
31
+ python-version: "3.10"
32
+ # Runs a single command using the runners shell
33
+ - name: Run a one-line script
34
+ run: echo Hello, world!
35
+
36
+ - name: Install dependencies
37
+ run: |
38
+ python -m pip install --upgrade pip
39
+ pip install -r doc_requirements.txt
40
+ - name: Build HTML
41
+ run: |
42
+ sphinx-apidoc -o docs/source pystran/ -e
43
+ cd docs/
44
+ sphinx-build -M html source build
45
+ - name: Run ghp-import
46
+ run: |
47
+ ghp-import -n -p -f docs/build/html
@@ -0,0 +1,172 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ .vscode/
10
+
11
+ # Distribution / packaging
12
+ .Python
13
+ build/
14
+ develop-eggs/
15
+ dist/
16
+ downloads/
17
+ eggs/
18
+ .eggs/
19
+ lib/
20
+ lib64/
21
+ parts/
22
+ sdist/
23
+ var/
24
+ wheels/
25
+ share/python-wheels/
26
+ *.egg-info/
27
+ .installed.cfg
28
+ *.egg
29
+ MANIFEST
30
+
31
+ # PyInstaller
32
+ # Usually these files are written by a python script from a template
33
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
34
+ *.manifest
35
+ *.spec
36
+
37
+ # Installer logs
38
+ pip-log.txt
39
+ pip-delete-this-directory.txt
40
+
41
+ # Unit test / coverage reports
42
+ htmlcov/
43
+ .tox/
44
+ .nox/
45
+ .coverage
46
+ .coverage.*
47
+ .cache
48
+ nosetests.xml
49
+ coverage.xml
50
+ *.cover
51
+ *.py,cover
52
+ .hypothesis/
53
+ .pytest_cache/
54
+ cover/
55
+
56
+ # Translations
57
+ *.mo
58
+ *.pot
59
+
60
+ # Django stuff:
61
+ *.log
62
+ local_settings.py
63
+ db.sqlite3
64
+ db.sqlite3-journal
65
+
66
+ # Flask stuff:
67
+ instance/
68
+ .webassets-cache
69
+
70
+ # Scrapy stuff:
71
+ .scrapy
72
+
73
+ # Sphinx documentation
74
+ docs/_build/
75
+
76
+ # PyBuilder
77
+ .pybuilder/
78
+ target/
79
+
80
+ # Jupyter Notebook
81
+ .ipynb_checkpoints
82
+
83
+ # IPython
84
+ profile_default/
85
+ ipython_config.py
86
+
87
+ # pyenv
88
+ # For a library or package, you might want to ignore these files since the code is
89
+ # intended to run in multiple environments; otherwise, check them in:
90
+ # .python-version
91
+
92
+ # pipenv
93
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
94
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
95
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
96
+ # install all needed dependencies.
97
+ #Pipfile.lock
98
+
99
+ # poetry
100
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
101
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
102
+ # commonly ignored for libraries.
103
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
104
+ #poetry.lock
105
+
106
+ # pdm
107
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
108
+ #pdm.lock
109
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
110
+ # in version control.
111
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
112
+ .pdm.toml
113
+ .pdm-python
114
+ .pdm-build/
115
+
116
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
117
+ __pypackages__/
118
+
119
+ # Celery stuff
120
+ celerybeat-schedule
121
+ celerybeat.pid
122
+
123
+ # SageMath parsed files
124
+ *.sage.py
125
+
126
+ # Environments
127
+ .env
128
+ .venv
129
+ env/
130
+ venv/
131
+ ENV/
132
+ env.bak/
133
+ venv.bak/
134
+
135
+ # Spyder project settings
136
+ .spyderproject
137
+ .spyproject
138
+
139
+ # Rope project settings
140
+ .ropeproject
141
+
142
+ # mkdocs documentation
143
+ /site
144
+
145
+ # mypy
146
+ .mypy_cache/
147
+ .dmypy.json
148
+ dmypy.json
149
+
150
+ # Pyre type checker
151
+ .pyre/
152
+
153
+ # pytype static type analyzer
154
+ .pytype/
155
+
156
+ # Cython debug symbols
157
+ cython_debug/
158
+
159
+ # PyCharm
160
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
161
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
162
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
163
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
164
+ #.idea/
165
+
166
+ # pdoc
167
+ ./html
168
+ *.html
169
+ search.js
170
+
171
+ # sphinx
172
+ *.rst
pystran-0.0.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Petr Krysl
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
pystran-0.0.1/PKG-INFO ADDED
@@ -0,0 +1,115 @@
1
+ Metadata-Version: 2.4
2
+ Name: pystran
3
+ Version: 0.0.1
4
+ Summary: Python Structural Analysis package
5
+ Project-URL: Homepage, https://github.com/PetrKryslUCSD/pystran
6
+ Project-URL: Issues, https://github.com/PetrKryslUCSD/pystran/issues
7
+ Author-email: Petr Krysl <pkrysl@ucsd.edu>
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Programming Language :: Python :: 3
12
+ Requires-Python: >=3.9
13
+ Description-Content-Type: text/markdown
14
+
15
+ [![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
16
+ [![Documentation pages](https://img.shields.io/badge/documentation-blue)](https://petrkryslucsd.github.io/pystran)
17
+
18
+ # pystran: Python for Structural Analysis
19
+
20
+ A simple structural analysis tool in Python, for structures consisting of truss
21
+ and beam members, springs, and rigid bodies, both in two dimensions and in three dimensions.
22
+
23
+
24
+ ![Alt pystran capabilities in graphic abstract](docs/splash.png)
25
+
26
+ ## News
27
+
28
+ - 11/08/2025: Add publishing workflow.
29
+ - 03/13/2025: Update documentation for the sphinx system.
30
+ - 03/10/2025: Add rigid links and general springs.
31
+
32
+
33
+ [Past news](#past-news)
34
+
35
+ ## Features & Limitations
36
+
37
+
38
+ - The package analyzes two-dimensional and three-dimensional structures made up
39
+ of truss (axial) members and beams (possibly in combination), rigid links, and
40
+ general springs. Concentrated masses can be added at joints.
41
+ - Linear statics and dynamics (free vibration) solvers are included.
42
+ - Only elastic models can be solved.
43
+ - For beams, only the Bernoulli-Euler model is implemented, so no shear
44
+ deformation is taken into account.
45
+ - Only straight members are treated.
46
+ - It is assumed that the cross sections are doubly symmetric, and there is no coupling between the bending actions in the
47
+ two orthogonal principal planes.
48
+ - Coupling of axial and bending action is not implemented. This means that the
49
+ neutral axis must pass through the centroid.
50
+ - Warping of the cross sections is not modelled, hence only free torsion
51
+ effects are included.
52
+ - Member loading is not considered. All member loading needs to be converted to
53
+ nodal forces by the user.
54
+ - Member end releases (hinges)
55
+ are not implemented. Internal hinges can be modelled with linked joints.
56
+ - Degrees of freedom are only along the global Cartesian axes. Skew supports
57
+ are not included (except with a penalty method based on springs)
58
+ - Offsets of the beams from the joints are currently not implemented.
59
+ - Rigid links between pairs of joints can be modeled with a penalty approach.
60
+
61
+
62
+ ## Requirements
63
+
64
+ `pystran` depends on the following Python packages:
65
+ - NumPy
66
+ - SciPy
67
+ - Matplotlib
68
+
69
+ These requirements can be easily satisfied by running the examples in the [Spyder IDE](docs/spyder/spyder.md).
70
+
71
+ ## Documentation
72
+
73
+ Documentation of the package is provided in these [HTML pages](https://petrkryslucsd.github.io/pystran).
74
+
75
+ More details about the generation of the documentation are [here](docs/make_docs.md).
76
+
77
+ ## Running
78
+
79
+ This package is not distributed through the official Python channels.
80
+ It needs to be downloaded from GitHub as a zip file, and expanded in some convenient location.
81
+
82
+ The __`pystran` folder__ can be located by looking for this README.md file.
83
+
84
+ The easiest way to run a pystran example is to download and install Spyder 6.
85
+ [Detailed instructions](docs/spyder/spyder.md) are provided.
86
+
87
+ It is also possible to run simulations using a [plain Python in a terminal](docs/terminal/terminal.md).
88
+
89
+
90
+ ## Tutorials
91
+
92
+ Step-by-step tutorials are available in the [`tutorials`](./tutorials) folder.
93
+ For example, run tutorials in the `pystran/tutorials` in the terminal as
94
+ ```
95
+ py tutorials/01_three_bars_tut.py
96
+ ```
97
+
98
+ Or, [use Spyder](docs/spyder/spyder.md), which makes the whole process a lot easier to set up.
99
+
100
+
101
+ ## Testing
102
+
103
+ In the `pystran/tests` folder, run
104
+ ```
105
+ py unittests_planar_truss.py
106
+ ```
107
+ and analogously for the other unit test files.
108
+
109
+ ## <a name="past-news"></a>Past news
110
+
111
+ - 03/05/2025: Describe the operation of the scripts.
112
+ - 02/12/2025: Make it possible to use general joint and member identifiers.
113
+ - 02/05/2025: Add general springs to ground.
114
+ - 01/30/2025: Add tutorials.
115
+ - 01/22/2025: Implement initial functionality.
@@ -0,0 +1,101 @@
1
+ [![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
2
+ [![Documentation pages](https://img.shields.io/badge/documentation-blue)](https://petrkryslucsd.github.io/pystran)
3
+
4
+ # pystran: Python for Structural Analysis
5
+
6
+ A simple structural analysis tool in Python, for structures consisting of truss
7
+ and beam members, springs, and rigid bodies, both in two dimensions and in three dimensions.
8
+
9
+
10
+ ![Alt pystran capabilities in graphic abstract](docs/splash.png)
11
+
12
+ ## News
13
+
14
+ - 11/08/2025: Add publishing workflow.
15
+ - 03/13/2025: Update documentation for the sphinx system.
16
+ - 03/10/2025: Add rigid links and general springs.
17
+
18
+
19
+ [Past news](#past-news)
20
+
21
+ ## Features & Limitations
22
+
23
+
24
+ - The package analyzes two-dimensional and three-dimensional structures made up
25
+ of truss (axial) members and beams (possibly in combination), rigid links, and
26
+ general springs. Concentrated masses can be added at joints.
27
+ - Linear statics and dynamics (free vibration) solvers are included.
28
+ - Only elastic models can be solved.
29
+ - For beams, only the Bernoulli-Euler model is implemented, so no shear
30
+ deformation is taken into account.
31
+ - Only straight members are treated.
32
+ - It is assumed that the cross sections are doubly symmetric, and there is no coupling between the bending actions in the
33
+ two orthogonal principal planes.
34
+ - Coupling of axial and bending action is not implemented. This means that the
35
+ neutral axis must pass through the centroid.
36
+ - Warping of the cross sections is not modelled, hence only free torsion
37
+ effects are included.
38
+ - Member loading is not considered. All member loading needs to be converted to
39
+ nodal forces by the user.
40
+ - Member end releases (hinges)
41
+ are not implemented. Internal hinges can be modelled with linked joints.
42
+ - Degrees of freedom are only along the global Cartesian axes. Skew supports
43
+ are not included (except with a penalty method based on springs)
44
+ - Offsets of the beams from the joints are currently not implemented.
45
+ - Rigid links between pairs of joints can be modeled with a penalty approach.
46
+
47
+
48
+ ## Requirements
49
+
50
+ `pystran` depends on the following Python packages:
51
+ - NumPy
52
+ - SciPy
53
+ - Matplotlib
54
+
55
+ These requirements can be easily satisfied by running the examples in the [Spyder IDE](docs/spyder/spyder.md).
56
+
57
+ ## Documentation
58
+
59
+ Documentation of the package is provided in these [HTML pages](https://petrkryslucsd.github.io/pystran).
60
+
61
+ More details about the generation of the documentation are [here](docs/make_docs.md).
62
+
63
+ ## Running
64
+
65
+ This package is not distributed through the official Python channels.
66
+ It needs to be downloaded from GitHub as a zip file, and expanded in some convenient location.
67
+
68
+ The __`pystran` folder__ can be located by looking for this README.md file.
69
+
70
+ The easiest way to run a pystran example is to download and install Spyder 6.
71
+ [Detailed instructions](docs/spyder/spyder.md) are provided.
72
+
73
+ It is also possible to run simulations using a [plain Python in a terminal](docs/terminal/terminal.md).
74
+
75
+
76
+ ## Tutorials
77
+
78
+ Step-by-step tutorials are available in the [`tutorials`](./tutorials) folder.
79
+ For example, run tutorials in the `pystran/tutorials` in the terminal as
80
+ ```
81
+ py tutorials/01_three_bars_tut.py
82
+ ```
83
+
84
+ Or, [use Spyder](docs/spyder/spyder.md), which makes the whole process a lot easier to set up.
85
+
86
+
87
+ ## Testing
88
+
89
+ In the `pystran/tests` folder, run
90
+ ```
91
+ py unittests_planar_truss.py
92
+ ```
93
+ and analogously for the other unit test files.
94
+
95
+ ## <a name="past-news"></a>Past news
96
+
97
+ - 03/05/2025: Describe the operation of the scripts.
98
+ - 02/12/2025: Make it possible to use general joint and member identifiers.
99
+ - 02/05/2025: Add general springs to ground.
100
+ - 01/30/2025: Add tutorials.
101
+ - 01/22/2025: Implement initial functionality.
Binary file
Binary file
Binary file