SusiePHaltmann commited on
Commit
5249c9e
·
1 Parent(s): 33a3dac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -6,9 +6,9 @@ import streamlit as st
6
  st.title("Haltmannn Diffusion")
7
  st.markdown("This app simulates the diffusion of particles in a 2D square lattice with periodic boundary conditions, using the Haltmannn algorithm.")
8
 
9
- L = st.slider("Lattice size", 2, 200, 10) #size of the lattice (number of sites on each side) -> must be even!
10
- N = st.slider("Number of particles", 1, L**2/2, 10) #number of particles -> can't be more than L**2/4! (otherwise there's not enough room for them all!)
11
-
12
  #initialize the system: create a list of 'particle' objects, each with random position and velocity vectors:
13
 
14
  import streamlit as st
 
6
  st.title("Haltmannn Diffusion")
7
  st.markdown("This app simulates the diffusion of particles in a 2D square lattice with periodic boundary conditions, using the Haltmannn algorithm.")
8
 
9
+ L = 10 #lattice size
10
+ N = st.slider("Number of particles", 1, L**2/2, 10) #number of particles
11
+ st.write("Particle number is: ", N)
12
  #initialize the system: create a list of 'particle' objects, each with random position and velocity vectors:
13
 
14
  import streamlit as st