vlaplex/scripts_python/plotBC.py
JGonzalez 052a4dc05e Corrections to tag v2.5
Small set of corrections to the tag v2.5.

Includes changes to python scripts to plot data.

Includes new 'fast' setup conditions that allow to output cases in an
hour or so with still a good CFL condition and grid resolution.
2025-04-08 16:32:59 +02:00

18 lines
447 B
Python

import matplotlib.pyplot as plt
import glob
import numpy as np
import readBC
paths = ['../polytropic_80ns_T30/']
time, n, u, T, Zinj = readBC.read(paths[0] + 'bc.csv')
fig, ax = plt.subplots()
plt.plot(time, n / n[0], label = f"$n_i$ ($\\times {n[0] * 1e-6:.0e} \\; cm^{{-3}})$")
plt.plot(time, T / T[0], label = f"$T \\; (\\times{T[0]:.1f} \\; eV)$")
plt.plot(time, Zinj, label = "Injection species")
plt.semilogy()
plt.legend()
plt.show()