https://github.com/cheind/sympy-nondim

Non-dimensionalization of physical equations using sympy.

https://github.com/cheind/sympy-nondim

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

buckingham non-dimensionalisation pi-theorem rayleigh-algorithm
Last synced: 10 months ago · JSON representation

Repository

Non-dimensionalization of physical equations using sympy.

Basic Info
  • Host: GitHub
  • Owner: cheind
  • License: mit
  • Language: Python
  • Default Branch: develop
  • Homepage:
  • Size: 2.25 MB
Statistics
  • Stars: 7
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Topics
buckingham non-dimensionalisation pi-theorem rayleigh-algorithm
Created over 5 years ago · Last pushed over 5 years ago
Metadata Files
Readme License

README.md

Build Status

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

Lemons, Don S. 2017. *A Student’s Guide to Dimensional Analysis*. Cambridge University Press.
Santiago, Juan G. 2019. *A First Course in Dimensional Analysis: Simplifying Complex Phenomena Using Physical Insight*. MIT Press.
Schetz, Joseph A, and Allen E Fuhs. 1999. *Fundamentals of Fluid Mechanics*. John Wiley & Sons.
Sonin, Ain A. 2001. “Dimensional Analysis.” Technical report, Massachusetts Institute of Technology. .
Szirtes, Thomas. 2007. *Applied Dimensional Analysis and Modeling*. Butterworth-Heinemann.

Owner

  • Name: Christoph Heindl
  • Login: cheind
  • Kind: user
  • Location: Austrian area

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

requirements.txt pypi
  • sympy >=1.7.1