gridripper::phys::scalar::PeriodicKGEq Class Reference

Klein-Gordon equation with periodic boundary conditions and arbitrary potential term. More...

Inheritance diagram for gridripper::phys::scalar::PeriodicKGEq:

gridripper::amr1d::PDE

List of all members.

Public Member Functions

 PeriodicKGEq (Parameters p)
final double getMinX ()
 Gets the minimum x (space) coordinate for the simulation.
final double getMaxX ()
 Gets the maximum x (space) coordinate for the simulation.
final boolean isXPeriodic ()
 Tests whether the solution is periodic in x.
final int eval (double[] dF, double t, double x, double[] F, double[] Fx, Grid grid, int i, Grad d, double dt)
 Overridable PDE evaluation method.
FieldWrapper createField (int level)
final void evalConstrainedComponents (Grid g, int i, FieldWrapper fw)
 Evaluates constrained field components.
double getLightRayX (double t0, double x0, int dir, double t)
 Gets the current position of a light ray.
final PhysicalQuantity[] getPhysicalQuantities ()

Static Package Functions

 [static initializer]
 Setting field names.

Classes

class  Energy
class  PeriodicIntegrable


Detailed Description

Klein-Gordon equation with periodic boundary conditions and arbitrary potential term.

Version:
0.5, 11/29/2008
Since:
GridRipper 0.5, 11/29/2005
Author:
Peter Csizmadia

Member Function Documentation

gridripper::phys::scalar::PeriodicKGEq::[static initializer] (  )  [inline, static, package]

Setting field names.

final double gridripper::phys::scalar::PeriodicKGEq::getMinX (  )  [inline, virtual]

Gets the minimum x (space) coordinate for the simulation.

Returns:
the minimum x coordinate (0 here)

Implements gridripper::amr1d::PDE.

final double gridripper::phys::scalar::PeriodicKGEq::getMaxX (  )  [inline, virtual]

Gets the maximum x (space) coordinate for the simulation.

Returns:
the maximum x coordinate (1 here)

Implements gridripper::amr1d::PDE.

final boolean gridripper::phys::scalar::PeriodicKGEq::isXPeriodic (  )  [inline]

Tests whether the solution is periodic in x.

Returns:
true in this case

Reimplemented from gridripper::amr1d::PDE.

final int gridripper::phys::scalar::PeriodicKGEq::eval ( double[]  dF,
double  t,
double  x,
double[]  F,
double[]  Fx,
Grid  g,
int  i,
Grad  d,
double  dt 
) [inline, virtual]

Overridable PDE evaluation method.

Parameters:
dF the result array, it will contain the dF/dt values
t the time
x the space coordinate
F the field
Fx the space derivative of the field
g the grid
i index of grid location
d the finite difference operator
dt time difference

Implements gridripper::amr1d::PDE.

final void gridripper::phys::scalar::PeriodicKGEq::evalConstrainedComponents ( Grid  g,
int  i,
FieldWrapper  fw 
) [inline, virtual]

Evaluates constrained field components.

Parameters:
g the grid
i the grid point index
fw field values in the grid point

Implements gridripper::amr1d::PDE.

double gridripper::phys::scalar::PeriodicKGEq::getLightRayX ( double  t0,
double  x0,
int  dir,
double  t 
) [inline]

Gets the current position of a light ray.

Parameters:
t0 the initial time
x0 the initial position
dir direction
t the current time
Returns:
the current position


The documentation for this class was generated from the following file:

Generated on Wed Jun 17 18:47:30 2009 for GridRipper by  doxygen 1.5.6