Skip to main content

Python package for running steady state simulations of mushy layers with bubbles

Project description

mush3p

Installation

Run the command pip install /path/to/this/directory/. This installs the necessary dependencies and allows mush3p to be imported.

Usage

Full Model

The steady ODE equations to be solved are

\phi_s = 0 \qquad \text{and} \qquad \Theta_s \quad \text{arbitrary} \qquad \text{for} \qquad \theta > \theta_L,
\theta = \theta_L(\Theta_l)\qquad \text{and} \qquad \Theta_s = - \mathcal{C}
\qquad \text{for} \qquad \theta_S \leq \theta \leq \theta_L,
\phi_l = 0 \qquad \text{and} \qquad \Theta_l \quad \text{arbitrary} \qquad \text{for} \qquad \theta \leq \theta_S,
\theta_L = - \Theta_l,
\theta_S = -1,
  \frac{\mathrm{d} \phi_g}{\mathrm{d} z} = \frac{\mathrm{d} W_l}{\mathrm{d} z},
\frac{\mathrm{d}}{\mathrm{d}z}\left[ \phi_s \left( \Theta_s + \mathcal{C} \right) + \phi_l \left( \Theta_l+\mathcal{C} \right) \right] 
+ \frac{\mathrm{d} }{\mathrm{d} z}\left[ W_l\left( \Theta_l+\mathcal{C} \right)  \right] 
= 0,
  \frac{\mathrm{d}}{\mathrm{d}z}\left( \omega W_l + \omega \phi_l \right)
  = -\text{Da} I(\omega, \, \sigma)\left( \omega-1 \right),
  \frac{\mathrm{d}}{\mathrm{d}z}\left( \psi W_g + \psi \phi_g \right) 
  = \text{Da}\chi I(\omega, \, \sigma) (\omega-1),
  \left( \phi_s + \phi_l \right) \frac{\mathrm{d}\theta}{\mathrm{d}z}
  + W_l \frac{\mathrm{d}\theta}{\mathrm{d}z}
  =  \text{St} \frac{\mathrm{d}\phi_s}{\mathrm{d}z}
  + \frac{\mathrm{d}}{\mathrm{d}z}
  \left( \left[ \phi_s + \phi_l + \nu_g \phi_g \right] \frac{\mathrm{d}\theta}{\mathrm{d}z} \right),
  W_l = - \pi(\phi_l) \frac{\mathrm{d}p_H}{\mathrm{d}z}, \qquad \text{where} \qquad p_H = p_l - p_0 + p_0 \mathcal{H} z,
\psi = \left( 1 + \frac{\theta}{\theta_K} \right)^{-1}
\left( 1 + \frac{p_H}{p_0} + \text{La} - \mathcal{H} z \right),
  W_g = \phi_g \left( \frac{\mathcal{B} }{K_1(\lambda)}
  + \frac{2 G(\lambda)}{\phi_l} W_l \right),
  \qquad \text{where} \qquad \lambda = \frac{\lambda}{\phi_l^q},
\pi(\phi_l) = \left( \frac{1}{\mathcal{K}} + \frac{(1-\phi_l)^2}{\phi_l^3} \right)^{-1}.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mush3p-0.3.3.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mush3p-0.3.3-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file mush3p-0.3.3.tar.gz.

File metadata

  • Download URL: mush3p-0.3.3.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.13 Darwin/21.6.0

File hashes

Hashes for mush3p-0.3.3.tar.gz
Algorithm Hash digest
SHA256 34415aac153e50bc903d47941505c81bd0510b9052efe0bcb27e8b5d173dd29f
MD5 43dd17357087d3be51832870035da34f
BLAKE2b-256 f51b1052e87a8abf49e97fff652f768e8e7ac323c159c506feefae9c1750b532

See more details on using hashes here.

File details

Details for the file mush3p-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: mush3p-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.13 Darwin/21.6.0

File hashes

Hashes for mush3p-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 53d2fdbca9b0d37441d98e6bdd02288214f99441389bcbc59ec7875244e2d37e
MD5 7ede9dccadff8fbe888c9d7726e5444d
BLAKE2b-256 c3f8465bcfac92311286c517b2ad2cd240f73f54872e476b4cbbe557b0d7b295

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page