CalculateOnIntegrationPoints

(Difference between revisions)
 Revision as of 16:03, 3 December 2007 (view source)Kazem (Talk | contribs)← Older edit Latest revision as of 19:15, 1 November 2008 (view source)JMora (Talk | contribs) (3 intermediate revisions by one user not shown) Line 1: Line 1: − double LinearElement::CalculateIntegrationWeight(double GaussPointWeight, double DetJ0) + virtual void CalculateOnIntegrationPoints(const Variable& rVariable, Vector& Output, − + const ProcessInfo& rCurrentProcessInfo){} − { + − + virtual void CalculateOnIntegrationPoints(const Variable >& rVariable, − //to permorm the integration over the reference domain we need to include + std::vector< array_1d >& Output, const ProcessInfo& rCurrentProcessInfo){} − + − // the thickness in 2D + virtual void CalculateOnIntegrationPoints(const Variable& rVariable, − + std::vector< Vector >& Output, const ProcessInfo& rCurrentProcessInfo){} − unsigned int dimension = GetGeometry().WorkingSpaceDimension(); + − + virtual void CalculateOnIntegrationPoints(const Variable& rVariable, − double weight = GaussPointWeight; + std::vector< Matrix >& Output, const ProcessInfo& rCurrentProcessInfo){} − + − + − + [[Category:C++ Code]] − weight *= DetJ0; + − + − if (dimension == 2) weight *= GetProperties()[THICKNESS]; + − + − return weight; +

Latest revision as of 19:15, 1 November 2008

``` virtual void CalculateOnIntegrationPoints(const Variable<double>& rVariable, Vector& Output,
const ProcessInfo&  rCurrentProcessInfo){}
```
```	  virtual void CalculateOnIntegrationPoints(const Variable<array_1d<double,3> >& rVariable,
std::vector<  array_1d<double,3> >& Output, const ProcessInfo& rCurrentProcessInfo){}
```
```	  virtual void CalculateOnIntegrationPoints(const Variable<Vector >& rVariable,
std::vector< Vector >& Output,  const ProcessInfo& rCurrentProcessInfo){}
```
```	  virtual void CalculateOnIntegrationPoints(const Variable<Matrix >& rVariable,
std::vector< Matrix >& Output,  const ProcessInfo& rCurrentProcessInfo){}
```