CalculateOnIntegrationPoints

From KratosWiki
(Difference between revisions)
Jump to: navigation, search
(New page: double LinearElement::CalculateIntegrationWeight(double GaussPointWeight, double DetJ0) { //to permorm the integration over the reference domain we need to include // the thi...)
 
 
(4 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,
 +
std::vector<  array_1d<double,3> >& Output, const ProcessInfo& rCurrentProcessInfo){}
  
//to permorm the integration over the reference domain we need to include
+
  virtual void CalculateOnIntegrationPoints(const Variable<Vector >& rVariable,
 +
  std::vector< Vector >& Output,  const ProcessInfo& rCurrentProcessInfo){}
  
// the thickness in 2D
+
  virtual void CalculateOnIntegrationPoints(const Variable<Matrix >& 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){}
Personal tools
Categories