CalculateOnIntegrationPoints

From KratosWiki
(Difference between revisions)
Jump to: navigation, search
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
double LinearElement::CalculateIntegrationWeight(double GaussPointWeight, double DetJ0)
+
  virtual void CalculateOnIntegrationPoints(const Variable<double>& rVariable, Vector& Output,
   
+
  const ProcessInfo& rCurrentProcessInfo){}
{
+
 
+
  virtual void CalculateOnIntegrationPoints(const Variable<array_1d<double,3> >& rVariable,
//to permorm the integration over the reference domain we need to include
+
  std::vector< array_1d<double,3> >& Output, const ProcessInfo& rCurrentProcessInfo){}
   
+
 
  // the thickness in 2D
+
  virtual void CalculateOnIntegrationPoints(const Variable<Vector >& rVariable,
   
+
  std::vector< Vector >& Output, const ProcessInfo& rCurrentProcessInfo){}
unsigned int dimension = GetGeometry().WorkingSpaceDimension();
+
 
+
    virtual void CalculateOnIntegrationPoints(const Variable<Matrix >& 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){}
Personal tools
Categories