View source: R/stat.mech.functions.R
piab.energy | R Documentation |
This function computes the particle in a box energy
piab.energy(n, m, L)
n |
vector of PIAB n quantum numbers: 1, 2, 3, ..... |
m |
particle mass in kg |
L |
vector of box side lengths in meters |
This is a function computes the particle in a box energy. If n is a single positive integer and L is a positive real number, the function computed the 1D particle in a box energy.
a PIAB energy in joules.
library(che302r)
# 1D PIAB example:
num.states <- 4 # Number of PIAB states
L.box <- 50e-6 # Box length
m.particle <- 1.78e-37 # Mass of particle(s)
TT <- 77 # Temperature
N <- 2.3*N.A # Total number of particles
# PIAB energies:
e <- piab.energy(1:num.states, m = m.particle, L = L.box)
e
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.