aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2020-03-24 21:34:53 +0100
committerAdrian Kummerlaender2020-03-24 21:34:53 +0100
commit9b052593e773a8d101ae1195d5208325dc2cd525 (patch)
tree4545a39a688dd2fe6570c6eb8db831dd074bcf19
parent235123e65b5edb3d5f0c8f14b05e2d2e56f9e40a (diff)
downloadboltzgas-9b052593e773a8d101ae1195d5208325dc2cd525.tar
boltzgas-9b052593e773a8d101ae1195d5208325dc2cd525.tar.gz
boltzgas-9b052593e773a8d101ae1195d5208325dc2cd525.tar.bz2
boltzgas-9b052593e773a8d101ae1195d5208325dc2cd525.tar.lz
boltzgas-9b052593e773a8d101ae1195d5208325dc2cd525.tar.xz
boltzgas-9b052593e773a8d101ae1195d5208325dc2cd525.tar.zst
boltzgas-9b052593e773a8d101ae1195d5208325dc2cd525.zip
Update plot-only program to use module
-rw-r--r--plot.py (renamed from gasplot.py)6
1 files changed, 3 insertions, 3 deletions
diff --git a/gasplot.py b/plot.py
index 44b0a53..422db21 100644
--- a/gasplot.py
+++ b/plot.py
@@ -6,7 +6,8 @@ from scipy.optimize import minimize
import matplotlib
import matplotlib.pyplot as plt
-from particles import GasFlow, HardSphereSetup, grid_of_random_velocity_particles
+from boltzgas import HardSphereSetup, HardSphereSimulation
+from boltzgas.initial_condition import grid_of_random_velocity_particles
grid_width = 30
radius = 0.002
@@ -17,8 +18,7 @@ velocity[:,:] = 0
velocity[0,0] = 10.75*char_u
velocity[0,1] = -.25*char_u
config = HardSphereSetup(radius, char_u, position, velocity)
-#config = HardSphereSetup(radius, char_u, *grid_of_random_velocity_particles(grid_width, radius, char_u))
-gas = GasFlow(config)
+gas = HardSphereSimulation(config)
m_nitrogen = 0.028 / const.N_A