CalculateOnIntegrationPoints

(Difference between revisions)
 Revision as of 16:03, 3 December 2007 (view source)Kazem (Talk | contribs) (New page: double LinearElement::CalculateIntegrationWeight(double GaussPointWeight, double DetJ0) { //to permorm the integration over the reference domain we need to include // the thi...) Latest revision as of 19:15, 1 November 2008 (view source)JMora (Talk | contribs) (4 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, + std::vector<  array_1d >& Output, const ProcessInfo& rCurrentProcessInfo){} − //to permorm the integration over the reference domain we need to include + virtual void CalculateOnIntegrationPoints(const Variable& rVariable, + std::vector< Vector >& Output,  const ProcessInfo& rCurrentProcessInfo){} − // the thickness in 2D + virtual void CalculateOnIntegrationPoints(const Variable& rVariable, + std::vector< Matrix >& Output,  const ProcessInfo& rCurrentProcessInfo){} − unsigned int dimension = GetGeometry().WorkingSpaceDimension(); − double weight = GaussPointWeight; + [[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){}
```