Run the Euler-Poisson case¶
The Euler-Poisson case lives in adc_cases, not in this repository: adc_cpp is the solver, adc_cases holds the named scenarios. This page shows how to run it.
Prerequisites¶
The
popsPython module, built from adc_cpp. See Installation.A local clone of adc_cases.
Run it¶
Clone adc_cases and enter the case folder:
git clone https://github.com/wolf75222/adc_cases.git cd adc_cases/euler_poisson
Run the case:
python run.pyThe script advances the case and writes its figures to the case
figures/folder.
What it demonstrates¶
The case couples a compressible gas (the hyperbolic Euler part) to a self-gravitating potential (the elliptic Poisson part): the density sources the potential, and the potential gradient drives the gas. It exercises the conservative transport and the elliptic solve together.
Learn more¶
The case in adc_cases: euler_poisson.
The coupling: Hyperbolic-elliptic systems and the Poisson equation.
The self-gravitating regime in more detail: Self-gravitating Euler-Poisson.