https://github.com/cheind/sympy-nondim
Non-dimensionalization of physical equations using sympy.
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.0%) to scientific vocabulary
Keywords
Repository
Non-dimensionalization of physical equations using sympy.
Basic Info
Statistics
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
sympy-nondim
This Python package addresses physical dimensional analysis. In
particular, sympy-nondim calculates from an unknown relation of
(dimensional) variables, a new relation of (usually fewer) dimensionless
variables.
See nondim-sympy.pdf for a detailed introduction.
``` python import sympy from sympy.physics import units
import nondim
Potentially relevent variables
t, m, l, g, theta = sympy.symbols('t m l g theta')
and associated dimensions
dimmap = { t:units.time, m:units.mass, l:units.length, g:units.acceleration, theta:units.Dimension(1) }
Setup an general equation, informing dimensional analysis
of dependent and independent variables.
eq = sympy.Eq(t, sympy.Function('f')(m,l,g,theta))
Perform dimensional analysis which returns a new (reduced)
expr. of dimensionless variables
r = nondim.nondim(eq, dimmap)
print(sympy.latex(r))
\frac{\sqrt{g} t}{\sqrt{l}} = F{\left(\theta \right)}
```
The method implemented in this library is based on the Buckingham-Pi theorem and the Rayleigh algorithm as explained in (Szirtes 2007). The method implemented here frames the problem in linear algebra terms, see buckpi.py for details.
In case you are interested in solving for particular dimensions you might be interested in py-dimensional-analysis.
References
Owner
- Name: Christoph Heindl
- Login: cheind
- Kind: user
- Location: Austrian area
- Website: https://cheind.github.io/
- Repositories: 88
- Profile: https://github.com/cheind
I am a computer scientist working at the interface of perception, robotics and deep learning.
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- sympy >=1.7.1