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...)
 
Line 1: Line 1:
 
  double LinearElement::CalculateIntegrationWeight(double GaussPointWeight, double DetJ0)
 
  double LinearElement::CalculateIntegrationWeight(double GaussPointWeight, double DetJ0)
 
+
 
  {
 
  {
 
+
 
  //to permorm the integration over the reference domain we need to include  
 
  //to permorm the integration over the reference domain we need to include  
 
+
// the thickness in 2D
+
  // the thickness in 2D
 
+
 
  unsigned int dimension = GetGeometry().WorkingSpaceDimension();
 
  unsigned int dimension = GetGeometry().WorkingSpaceDimension();
 
+
 
  double weight = GaussPointWeight;
 
  double weight = GaussPointWeight;
 
+
 
     
 
     
 
+
 
  weight *= DetJ0;
 
  weight *= DetJ0;
 
+
 
  if (dimension == 2) weight *= GetProperties()[THICKNESS];
 
  if (dimension == 2) weight *= GetProperties()[THICKNESS];
 
+
 
  return weight;
 
  return weight;

Revision as of 16:03, 3 December 2007

	double LinearElement::CalculateIntegrationWeight(double GaussPointWeight, double DetJ0)

	{

		//to permorm the integration over the reference domain we need to include 

 		// the thickness in 2D

		unsigned int dimension = GetGeometry().WorkingSpaceDimension();

		double weight = GaussPointWeight;

	  

		weight *= DetJ0;

		if (dimension == 2) weight *= GetProperties()[THICKNESS];

		return weight;
Personal tools
Categories