View source: R/numerov.functions.R
V | R Documentation |
Potential energy function
V(
xax,
potential.name,
l = NULL,
wonky.params = list(coef = c(1, 1, 1, 1, 1, 1), root = c(-2, -1, 0, 1, 2, 3)),
nh3.params = c(k = 1, b = 12, c = 1)
)
xax |
The x-axis over which to find a solution to the Schrodinger equation with the requested potential |
potential.name |
Name of the potential energy function to insert into the Schrodinger equation. Choices are: "box", "harmonic", "anharmonic", "radial" |
l |
The l quantum number if the "radial" potential energy function is requested |
Potential energy functions for use with Numerov's procedure to solve Schrodinger equations implemented in this package. If Laguerre solutions are desired for orbital calculations, choose the "radial" potential energy function and specify an l quantum number.
Values of the potential along the specified x-axis.
Quantum Chemistry by Ira Levine. Any edition.
# Potential energy function for particle in a box:
# Domain (x-axis):
dx <- 0.01 # Increment on x-axis
x.min <- (0) # Start of x-axis. Well into (left) classically forbidden region
x.max <- 1.5 # End of x-axis. Well into the (right) classically forbidden region
x <- seq(from=x.min,to=x.max,by=dx) # x-axis
potential<-"box"
plot(x,V(x,potential))
# Potential energy function for anharmonic oscillator:
#Domain (x-axis):
dx <- 0.01
x.min <- (-0.8)
x.max <- 5
x <- seq(from=x.min,to=x.max,by=dx)
plot(x,V(x,"anharmonic"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.