AsymptoticFunction Class Reference

#include <PotentialFunctions.h>

Inheritance diagram for AsymptoticFunction:

PotentialfieldFunction List of all members.

Public Member Functions

 AsymptoticFunction (double range, double atZero, double solidCenter)
virtual PotentialfieldFunctionclone ()

Protected Member Functions

double f (double x) const
double d (double x) const
virtual double dd (double x) const
virtual void init ()

Protected Attributes

double solidCenter

Detailed Description

A class representing an asymptotic function in a potential field f(x) = a/x +b

Definition at line 319 of file PotentialFunctions.h.


Constructor & Destructor Documentation

AsymptoticFunction::AsymptoticFunction ( double  range,
double  atZero,
double  solidCenter 
) [inline]

Constructor

Parameters:
range The range of the function
atZero The value of the function for x having the value 0
solidCenter f(x) = atZero for x < solidCenter

Definition at line 328 of file PotentialFunctions.h.

References init().

Referenced by clone().


Member Function Documentation

virtual PotentialfieldFunction* AsymptoticFunction::clone (  )  [inline, virtual]

Clones a function object

Returns:
A pointer to a copy of the object

Implements PotentialfieldFunction.

Definition at line 339 of file PotentialFunctions.h.

References AsymptoticFunction(), PotentialfieldFunction::atZero, PotentialfieldFunction::getStandardParameters(), PotentialfieldFunction::range, and solidCenter.

double AsymptoticFunction::d ( double  x  )  const [inline, protected, virtual]

Computes the value of the derivative of the function for a given x

Parameters:
x The distance for which to compute the value of the function
Returns:
The value of the function

Reimplemented from PotentialfieldFunction.

Definition at line 370 of file PotentialFunctions.h.

References PotentialfieldFunction::a, and solidCenter.

virtual double AsymptoticFunction::dd ( double  x  )  const [inline, protected, virtual]

Computes the value of the second derivative of the function for a given x

Parameters:
x The distance for which to compute the value of the function
Returns:
The value of the function

Reimplemented from PotentialfieldFunction.

Definition at line 386 of file PotentialFunctions.h.

References PotentialfieldFunction::a.

double AsymptoticFunction::f ( double  x  )  const [inline, protected, virtual]

Computes the value of the function for a given x

Parameters:
x The distance for which to compute the value of the function
Returns:
The value of the function

Reimplemented from PotentialfieldFunction.

Definition at line 354 of file PotentialFunctions.h.

References PotentialfieldFunction::a, PotentialfieldFunction::atZero, PotentialfieldFunction::b, and solidCenter.

virtual void AsymptoticFunction::init (  )  [inline, protected, virtual]

Computes the values of a and b

Reimplemented from PotentialfieldFunction.

Definition at line 392 of file PotentialFunctions.h.

References PotentialfieldFunction::a, PotentialfieldFunction::atZero, PotentialfieldFunction::b, PotentialfieldFunction::range, and solidCenter.

Referenced by AsymptoticFunction().


Member Data Documentation

double AsymptoticFunction::solidCenter [protected]

f(x) = atZero for x <= solidCenter

Definition at line 348 of file PotentialFunctions.h.

Referenced by clone(), d(), f(), and init().


The documentation for this class was generated from the following file:
Generated on Thu Dec 7 01:18:52 2006 for DT2005.panorama by  doxygen 1.4.7