Spaces:
Runtime error
Runtime error
Commit
·
5249c9e
1
Parent(s):
33a3dac
Update app.py
Browse files
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 =
|
10 |
-
N = st.slider("Number of particles", 1, L**2/2, 10) #number of particles
|
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
|