Class SeparableWaveFunction1D
- Namespace
- QuantumWaves
- Assembly
- QuantumLibrary.dll
Represents a separable one dimensional wave function.
public sealed class SeparableWaveFunction1D : WaveFunction1D
- Inheritance
-
SeparableWaveFunction1D
- Inherited Members
Constructors
SeparableWaveFunction1D(FloatRange, Func<float, ComplexF>, Func<float, ComplexF>)
Initializes a separable wave function with specified space and time components, and automatically normalizes its amplitude.
public SeparableWaveFunction1D(FloatRange domain, Func<float, ComplexF> spacePart, Func<float, ComplexF> timePart)
Parameters
domainFloatRangeThe spatial domain of the wave function.
spacePartFunc<float, ComplexF>The spatial component of the wave function.
timePartFunc<float, ComplexF>The time dependent component of the wave function.
Exceptions
- ArgumentNullException
Thrown if
spacePartortimePartis null.
SeparableWaveFunction1D(FloatRange, Func<float, ComplexF>, Func<float, ComplexF>, float)
Initializes a separable wave function with specified space and time components.
public SeparableWaveFunction1D(FloatRange domain, Func<float, ComplexF> spacePart, Func<float, ComplexF> timePart, float amplitude)
Parameters
domainFloatRangeThe spatial domain of the wave function.
spacePartFunc<float, ComplexF>The spatial component of the wave function.
timePartFunc<float, ComplexF>The time dependent component of the wave function.
amplitudefloatThe amplitude of the wave function.
Exceptions
- ArgumentNullException
Thrown if
spacePartortimePartis null.
Properties
SpacePart
Gets the spatial part of the wave function.
public Func<float, ComplexF> SpacePart { get; }
Property Value
TimePart
Gets the time dependent part of the wave function.
public Func<float, ComplexF> TimePart { get; }
Property Value
Methods
EvaluateRaw(float, float)
Evaluates the unscaled wave function at (x, t) using the space and time components.
protected override ComplexF EvaluateRaw(float x, float t)
Parameters
xfloatThe position at which to evaluate the spatial component.
tfloatThe time at which to evaluate the time dependent component.
Returns
- ComplexF
The unscaled value of the wave function at
xandt.
TimeSolution(float, float)
Creates the generic time dependent solution for a given energy.
public static Func<float, ComplexF> TimeSolution(float energy, float hBar = 1)
Parameters
Returns
Exceptions
- ArgumentOutOfRangeException
Thrown if
hBaris less than or equal to zero.