class PWConstCoefficient : public Coefficient

class for piecewise constant coefficient

Inheritance:


Public Methods

PWConstCoefficient(int NumOfSubD = 0)
Constructs a piecewise constant coefficient in NumOfSubD subdomains
PWConstCoefficient(Vector &c)
c should be a vector defined by attributes, so for region with attribute i c[i] is the coefficient in that region
double& operator)(int i)
Member function to access or modify the value of the i-th constant
void operator=(double c)
Set domain constants equal to the same constant c
int GetNConst()
Returns the number of constants
virtual double Eval(ElementTransformation &T, const IntegrationPoint &ip)
Evaluate the coefficient function

Inherited from Coefficient:


Documentation

class for piecewise constant coefficient
PWConstCoefficient(int NumOfSubD = 0)
Constructs a piecewise constant coefficient in NumOfSubD subdomains

PWConstCoefficient(Vector &c)
c should be a vector defined by attributes, so for region with attribute i c[i] is the coefficient in that region

double& operator)(int i)
Member function to access or modify the value of the i-th constant

void operator=(double c)
Set domain constants equal to the same constant c

int GetNConst()
Returns the number of constants

virtual double Eval(ElementTransformation &T, const IntegrationPoint &ip)
Evaluate the coefficient function


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de