Index

NAME

FieldsConst - constant vector field


INCLUDE

include "FieldConst.h"

SYNTAX

 class FieldsConst : public Fields
 {
 private:
   Ptv(NUMT) constvalues;

 public:

   FieldsConst (const char* name = NULL);
   FieldsConst (const Ptv(NUMT)& values, const char* name);  // call to redim
  ~FieldsConst () {}

   void redim (const Ptv(NUMT)& values, const char* name);

   NUMT  operator () (int i) const;  // inline
   NUMT& operator () (int i);

   virtual void redim (int nsf, const char* fieldname = NULL);
   virtual bool ok () const;

   virtual int getNoFields () const;
   virtual int getNoValues () const;

   virtual void valuePt  (Ptv(NUMT)& vec, const Ptv(real)& x, real t = DUMMY);
   virtual void valueFEM (Ptv(NUMT)& vec, const FiniteElement& fe,
                          real t = DUMMY);

   virtual void print (Os os, const char* heading = NULL) const;

   CLASS_INFO

   VIRTUAL_CAST(FieldsConst)
 };



KEYWORDS

vector field, constant



DESCRIPTION

The class implements a vector field in terms of  constants, where
 is the number of components in the  vector  field.  See  classes
Field, Fields and FieldConst for more documentation.



SEE ALSO

class FieldConst, class Field, class Fields


DEVELOPED BY

SINTEF Applied Mathematics, Oslo, Norway, and University of Oslo,
Dept. of Mathematics, Norway


AUTHOR

Hans Petter Langtangen, SINTEF/UiO