org.opensourcephysics.display2d
Class Util2D

java.lang.Object
  extended by org.opensourcephysics.display2d.Util2D

public class Util2D
extends java.lang.Object

Utility class for two dimensional visualizations.

Version:
1.0
Author:
Wolfgang Christian

Method Summary
static GridPointData divergence(GridPointData input, double multiplier)
          Calculates the divergence of a 2d vector field and multiplies the divergence by a constant.
static GridPointData gradient(GridPointData input, double multiplier)
          Calculates the gradient of a 2d scalar field and multiplies the gradient by a constant.
static GridPointData laplacian(GridPointData input, double multiplier)
          Calculates the Laplacian of a 2d scalar field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

laplacian

public static GridPointData laplacian(GridPointData input,
                                      double multiplier)
Calculates the Laplacian of a 2d scalar field.

Parameters:
input -
multiplier -
Returns:
GridPointData

divergence

public static GridPointData divergence(GridPointData input,
                                       double multiplier)
Calculates the divergence of a 2d vector field and multiplies the divergence by a constant.

Parameters:
input -
multiplier -
Returns:
GridPointData

gradient

public static GridPointData gradient(GridPointData input,
                                     double multiplier)
Calculates the gradient of a 2d scalar field and multiplies the gradient by a constant.

Parameters:
input -
multiplier -
Returns:
GridPointData