Base class for common functionality. More...
#include <ElementalOperation.h>
Public Member Functions | |
virtual const Element & | getElement () const |
virtual const std::vector < size_t > & | getFields () const |
Returns the fields used for the computation of the residue . | |
virtual const SimpleMaterial & | getMaterial () const |
virtual size_t | getFieldDof (size_t fieldNum) const |
Returns the number of degrees of freedom per field used for the computation of the residue . | |
Protected Member Functions | |
BaseResidue (const Element &element, const SimpleMaterial &material, const std::vector< size_t > &fieldsUsed) | |
BaseResidue (const BaseResidue &that) | |
Protected Attributes | |
const Element & | element |
const SimpleMaterial & | material |
const std::vector< size_t > & | fieldsUsed |
Base class for common functionality.
BaseResidue::BaseResidue | ( | const Element & | element, | |
const SimpleMaterial & | material, | |||
const std::vector< size_t > & | fieldsUsed | |||
) | [inline, protected] |
BaseResidue::BaseResidue | ( | const BaseResidue & | that | ) | [inline, protected] |
virtual size_t BaseResidue::getFieldDof | ( | size_t | fieldnumber | ) | const [inline, virtual] |
Returns the number of degrees of freedom per field used for the computation of the residue
.
getFieldDof(fieldnum) returns the number of deegrees of freedom in the participating fieldo number "fieldnumber". The argument fieldnumber begins from zero.
The number of different values of "a" in is then computed with field getFieldDof(f)
Implements Residue.
virtual const std::vector<size_t>& BaseResidue::getFields | ( | ) | const [inline, virtual] |
Returns the fields used for the computation of the residue
.
getFields()[i] returns the field number beginning from zero.
The variable is then computed with field getFields()[f] in the element.
Implements Residue.
virtual const SimpleMaterial& BaseResidue::getMaterial | ( | ) | const [inline, virtual] |
Implements Residue.
const Element& BaseResidue::element [protected] |
const std::vector<size_t>& BaseResidue::fieldsUsed [protected] |
const SimpleMaterial& BaseResidue::material [protected] |