This repository hosts code that illustrates the content of the presentation and conference proceeding Conformal Mappings with SymPy: Towards Python-driven Analytical Modeling in Physics, a collaborative work of Zoufiné Lauer-Baré and Erich Gaertig presented on THE 20th PYTHON IN SCIENCE CONF. (SCIPY 2021).
Python scripts and Jupyter notebooks are provided.
Please refer to
Lauer-Baré Z. and Gaertig E., Conformal Mappings with SymPy: Towards Python-driven Analytical Modeling in Physics. Lauer-Baré, Z. & Gaertig, E. In Agarwal, M., Calloway, C., Niederhut, D., & Shupe, D., editors, Proceedings of the 20th Python in Science Conference, pages 85 - 93, 2021.
when using formulae, code, figures or animations from this repository. The conference talk can be seen on the Enthought YouTube channel.
The theoretical methods used here are conformal mappings, inspired by PHW33 and BC09 and Taylor-expansions, following LGK21 and LGKS23. These methods are used to solve the Stokes problem in an eccentric annular domain for Couette-Poiseuille flow and to calculate the corresponding flow force in a postprocessing step, as well as analyzing the limits for small gaps. The context of this work is the modelling of viscous fluid power systems (see LGK21 for more details).
Applications of conformal mappings with SymPy in the context of inviscid irrotational flow can be found on Plotting streamlines with Matplotlib and SymPy (T. S. Yu). Further applications of conformal mappings with SymPy in the context of inviscid irrotational flow applied to naval engineering are described in G21 with an open Python code repository in naval Python and SymPy.
Further, a Python package with cloud computing possibility via binder, for visualizing conformal mappings interactively, based on SymPy, NumPy and Plotly can be found at the page conformalMaps; see LA21.
code_block_moebius.py
and moebius.ipynb
with a Möbius transform of the type
The following animation was created with an adapted version of the code from the interactive Python code for conformal mappings mentioned above, where the results from LG21 were implemented.
code_block_bipolar.py
and bipolar.ipynb
with a conformal mapping related to bipolar coordinates
The following animation was created with an adapted version of the code from the interactive Python code for conformal mappings mentioned above, where the results from LG21 were implemented.
The postprocessing is shown in the file moebius.ipynb
, due to LaTeX rendering of web browser based Jupyter notebook.
Flow force calculation with diff
and Taylor expansion of force in the gap
with series
.
[LG21] Lauer-Baré Z. and Gaertig E., Conformal Mappings with SymPy: Towards Python-driven Analytical Modeling in Physics. Lauer-Baré, Z. & Gaertig, E. In Agarwal, M., Calloway, C., Niederhut, D., & Shupe, D., editors, Proceedings of the 20th Python in Science Conference, pages 85 - 93, 2021.
[LA21] Lauer-Baré Z. and Aditya, Conformal-Maps: Code for interactive conformal mapping with python and jupyter notebook (v1.0.1). Zenodo. 2021 https://doi.org/10.5281/zenodo.5717868.