proj home

Files   Classes   Functions   Hierarchy  

fcubicspring1 Class Reference

#include <spring1.h>

Collaboration diagram for fcubicspring1:

List of all members.

Public Member Functions

 fcubicspring1 ()
void operator() (double &ddx, doublec &dx, doublec &t) const

Public Attributes

double kval
double * x
double A
 Forcing term parameters.
double omega


Detailed Description

Definition at line 38 of file spring1.h.


Constructor & Destructor Documentation

fcubicspring1::fcubicspring1 (  )  [inline]

Definition at line 49 of file spring1.h.

00050     : A(7.5), omega(1.0) {}


Member Function Documentation

void fcubicspring1::operator() ( double &  ddx,
doublec dx,
doublec t 
) const [inline]

Definition at line 53 of file spring1.h.

References A, kval, omega, and x.

00058   {
00059     double xtmp(*x);
00060     ddx = A*cos(omega*t)-xtmp*xtmp*xtmp-kval*dx;
00061   }


Member Data Documentation

Forcing term parameters.

Definition at line 46 of file spring1.h.

Referenced by operator()().

Definition at line 42 of file spring1.h.

Referenced by operator()().

Definition at line 47 of file spring1.h.

Referenced by operator()().

Definition at line 43 of file spring1.h.

Referenced by operator()().


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

Generated on Fri Mar 4 00:49:56 2011 for Chelton Evans Source by  doxygen 1.5.8