Public Member Functions
HamiltonianIdeal Class Reference

The Hamiltonian used in the project. More...

#include <hamiltonianideal.h>

Inheritance diagram for HamiltonianIdeal:
Hamiltonian

List of all members.

Public Member Functions

 HamiltonianIdeal (Config *config)
double kineticEnergy (WaveFunction *wave, vec2 r[])
double potentialEnergy (WaveFunction *wave, vec2 r[])
double externalPotentialEnergy (WaveFunction *wave, vec2 r[])
double interactionPotentialEnergy (WaveFunction *wave, vec2 r[])
double totalExternalPotentialEnergy ()
double totalInteractionPotentialEnergy ()
void resetTotalEnergies ()
 Hamiltonian::resetTotalEnergies clears the total potential and kinetic energy counters.
string totalsString ()
 Hamiltonian::totalsString creates a string with total potential and kinetic energy for file printing.
void outputTotals ()
 Hamiltonian::outputTotals prints out a string with the relative amounts of total and potential energy.

Detailed Description

The Hamiltonian used in the project.


Constructor & Destructor Documentation

Constructs an Hamiltonian of the type used in the report


Member Function Documentation

double HamiltonianIdeal::externalPotentialEnergy ( WaveFunction wave,
vec2  r[] 
)

Returns the energy from the harmonic oscillator potential

Returns the energy from the particle interaction.

double HamiltonianIdeal::kineticEnergy ( WaveFunction wave,
vec2  r[] 
) [virtual]

Calculates the kinetic energy as $-{1}{2} {1}{} ^2 $

Implements Hamiltonian.

double HamiltonianIdeal::potentialEnergy ( WaveFunction wave,
vec2  r[] 
) [virtual]

Returns the sum of external potential and interaction potential energy.

Implements Hamiltonian.


The documentation for this class was generated from the following files:
 All Classes Functions