VMTK
Loading...
Searching...
No Matches
vtkvmtkGaussQuadrature Class Reference

Implements a finite element quadrature rule that approximates the definite integral of a function as a weighted sum of function values at specified points. More...

#include <vtkvmtkGaussQuadrature.h>

Inheritance diagram for vtkvmtkGaussQuadrature:
[legend]
Collaboration diagram for vtkvmtkGaussQuadrature:
[legend]

Public Types

typedef vtkObject Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkvmtkGaussQuadrature * NewInstance () const
virtual vtkDoubleArray * GetQuadraturePoints ()
virtual vtkDoubleArray * GetQuadratureWeights ()
int GetNumberOfQuadraturePoints ()
double * GetQuadraturePoint (vtkIdType id)
void GetQuadraturePoint (vtkIdType id, double *quadraturePoint)
double GetQuadraturePoint (vtkIdType id, int c)
double GetQuadratureWeight (vtkIdType id)
void Initialize (vtkIdType cellType)
void Initialize (vtkCell *cell)
void Initialize1DGauss ()
void Initialize1DJacobi (int alpha, int beta)
void ScaleTo01 ()
virtual void SetOrder (int)
virtual int GetOrder ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkvmtkGaussQuadrature * SafeDownCast (vtkObjectBase *o)
static vtkvmtkGaussQuadrature * New ()

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 vtkvmtkGaussQuadrature ()
 ~vtkvmtkGaussQuadrature ()
void TensorProductQuad (vtkvmtkGaussQuadrature *q1D)
void TensorProductTriangle (vtkvmtkGaussQuadrature *gauss1D, vtkvmtkGaussQuadrature *jacA1D)
void TensorProductHexahedron (vtkvmtkGaussQuadrature *q1D)
void TensorProductWedge (vtkvmtkGaussQuadrature *q1D, vtkvmtkGaussQuadrature *q2D)
void TensorProductTetra (vtkvmtkGaussQuadrature *gauss1D, vtkvmtkGaussQuadrature *jacA1D, vtkvmtkGaussQuadrature *jacB1D)

Protected Attributes

vtkDoubleArray * QuadraturePoints
vtkDoubleArray * QuadratureWeights
int Order
int QuadratureType
vtkIdType CellType
int PreviousOrder

Detailed Description

Implements a finite element quadrature rule that approximates the definite integral of a function as a weighted sum of function values at specified points.

vtkvmtkGaussQuadrature computes, for a given VTK cell type and quadrature Order, the set of parametric quadrature points (QuadraturePoints) and associated weights (QuadratureWeights) of a Gauss-Legendre (or, for triangles/tetrahedra, Gauss-Jacobi-based) numerical integration rule exact for polynomials up to the requested order. Initialize(cellType) (or the overload taking a vtkCell) builds the rule appropriate for that cell's shape by combining 1D rules (Initialize1DGauss / Initialize1DJacobi) via tensor products (TensorProductQuad, TensorProductTriangle, TensorProductHexahedron, TensorProductWedge, TensorProductTetra); results are cached and only recomputed if the cell type or order changes. This is the quadrature engine used by vtkvmtkFEShapeFunctions / vtkvmtkFEAssembler subclasses to numerically integrate element-level finite-element contributions.

See also
vtkvmtkFEShapeFunctions, vtkvmtkFEAssembler

Definition at line 46 of file vtkvmtkGaussQuadrature.h.

Member Typedef Documentation

◆ Superclass

Definition at line 49 of file vtkvmtkGaussQuadrature.h.

Constructor & Destructor Documentation

◆ vtkvmtkGaussQuadrature()

vtkvmtkGaussQuadrature::vtkvmtkGaussQuadrature ( )
protected

Definition at line 44 of file vtkvmtkGaussQuadrature.cxx.

45{
46 this->QuadraturePoints = NULL;
47 this->QuadratureWeights = NULL;
48
49 this->Order = 1;
50 this->PreviousOrder = 0;
51
52 this->CellType = VTK_EMPTY_CELL;
53}

◆ ~vtkvmtkGaussQuadrature()

vtkvmtkGaussQuadrature::~vtkvmtkGaussQuadrature ( )
protected

Definition at line 55 of file vtkvmtkGaussQuadrature.cxx.

56{
57 if (this->QuadraturePoints)
58 {
59 this->QuadraturePoints->Delete();
60 this->QuadraturePoints = NULL;
61 }
62
63 if (this->QuadratureWeights)
64 {
65 this->QuadratureWeights->Delete();
66 this->QuadratureWeights = NULL;
67 }
68}

Member Function Documentation

◆ IsTypeOf()

int vtkvmtkGaussQuadrature::IsTypeOf ( const char * type)
static

◆ IsA()

virtual int vtkvmtkGaussQuadrature::IsA ( const char * type)
virtual

◆ SafeDownCast()

vtkvmtkGaussQuadrature * vtkvmtkGaussQuadrature::SafeDownCast ( vtkObjectBase * o)
static

◆ NewInstanceInternal()

virtual vtkObjectBase * vtkvmtkGaussQuadrature::NewInstanceInternal ( ) const
protectedvirtual

◆ NewInstance()

vtkvmtkGaussQuadrature * vtkvmtkGaussQuadrature::NewInstance ( ) const

◆ New()

vtkvmtkGaussQuadrature * vtkvmtkGaussQuadrature::New ( )
static

◆ GetQuadraturePoints()

virtual vtkDoubleArray * vtkvmtkGaussQuadrature::GetQuadraturePoints ( )
virtual

Get the array of parametric quadrature point coordinates computed by the last Initialize() call, one tuple per quadrature point (1, 2 or 3 components depending on cell dimensionality).

◆ GetQuadratureWeights()

virtual vtkDoubleArray * vtkvmtkGaussQuadrature::GetQuadratureWeights ( )
virtual

Get the array of quadrature weights computed by the last Initialize() call, one value per quadrature point, in the same order as QuadraturePoints.

◆ SetOrder()

virtual void vtkvmtkGaussQuadrature::SetOrder ( int )
virtual

Set/get the order of the quadrature rule: the rule is exact for polynomials up to this degree. Default: 1.

◆ GetOrder()

virtual int vtkvmtkGaussQuadrature::GetOrder ( )
virtual

Set/get the order of the quadrature rule: the rule is exact for polynomials up to this degree. Default: 1.

◆ GetNumberOfQuadraturePoints()

int vtkvmtkGaussQuadrature::GetNumberOfQuadraturePoints ( )
inline

Get the number of quadrature points produced by the last Initialize() call.

Definition at line 76 of file vtkvmtkGaussQuadrature.h.

77 {
78 return this->QuadraturePoints->GetNumberOfTuples();
79 }

◆ GetQuadraturePoint() [1/3]

double * vtkvmtkGaussQuadrature::GetQuadraturePoint ( vtkIdType id)
inline

Get a pointer to the parametric coordinates of the id-th quadrature point.

Definition at line 84 of file vtkvmtkGaussQuadrature.h.

85 {
86 return this->QuadraturePoints->GetTuple(id);
87 }

◆ GetQuadraturePoint() [2/3]

void vtkvmtkGaussQuadrature::GetQuadraturePoint ( vtkIdType id,
double * quadraturePoint )
inline

Copy the parametric coordinates of the id-th quadrature point into quadraturePoint.

Definition at line 92 of file vtkvmtkGaussQuadrature.h.

93 {
94 this->QuadraturePoints->GetTuple(id,quadraturePoint);
95 }

◆ GetQuadraturePoint() [3/3]

double vtkvmtkGaussQuadrature::GetQuadraturePoint ( vtkIdType id,
int c )
inline

Get the c-th parametric coordinate component of the id-th quadrature point.

Definition at line 100 of file vtkvmtkGaussQuadrature.h.

101 {
102 return this->QuadraturePoints->GetComponent(id,c);
103 }

◆ GetQuadratureWeight()

double vtkvmtkGaussQuadrature::GetQuadratureWeight ( vtkIdType id)
inline

Get the integration weight of the id-th quadrature point.

Definition at line 108 of file vtkvmtkGaussQuadrature.h.

109 {
110 return this->QuadratureWeights->GetValue(id);
111 }

◆ Initialize() [1/2]

void vtkvmtkGaussQuadrature::Initialize ( vtkIdType cellType)

Build (or, if the cell type and Order match the previous call, reuse) the quadrature rule appropriate for the given VTK cell type at the current Order. Supported cell types are line, quadratic edge, quad, triangle, hexahedron, wedge and tetra, and their quadratic/biquadratic variants.

Definition at line 70 of file vtkvmtkGaussQuadrature.cxx.

71{
72 if ((cellType == this->CellType) && (this->Order == this->PreviousOrder))
73 {
74 return;
75 }
76
77 this->CellType = cellType;
78 this->PreviousOrder = this->Order;
79
80 if (this->QuadraturePoints)
81 {
82 this->QuadraturePoints->Delete();
83 this->QuadraturePoints = NULL;
84 }
85 this->QuadraturePoints = vtkDoubleArray::New();
86
87 if (this->QuadratureWeights)
88 {
89 this->QuadratureWeights->Delete();
90 this->QuadratureWeights = NULL;
91 }
92 this->QuadratureWeights = vtkDoubleArray::New();
93
94 switch(cellType)
95 {
96 case VTK_LINE:
97 case VTK_QUADRATIC_EDGE:
98 {
99 this->QuadraturePoints->SetNumberOfComponents(1);
100 this->Initialize1DGauss();
101 break;
102 }
103 case VTK_QUAD:
104 case VTK_QUADRATIC_QUAD:
105 case VTK_BIQUADRATIC_QUAD:
106 {
108 q1D->SetOrder(this->Order);
109 q1D->Initialize1DGauss();
110 this->TensorProductQuad(q1D);
111 q1D->Delete();
112 break;
113 }
114 case VTK_TRIANGLE:
115 case VTK_QUADRATIC_TRIANGLE:
116 {
117 if (this->Order == 0 || this->Order ==1)
118 {
119 this->QuadraturePoints->SetNumberOfComponents(2);
120 this->QuadraturePoints->SetNumberOfTuples(1);
121 this->QuadratureWeights->SetNumberOfTuples(1);
122 double point[2];
123 double weight;
124 point[0] = 0.33333333333333333333333333333333;
125 point[1] = 0.33333333333333333333333333333333;
126 weight = 0.5;
127 this->QuadraturePoints->SetTuple(0,point);
128 this->QuadratureWeights->SetValue(0,weight);
129 break;
130 }
132 gauss1D->SetOrder(this->Order);
133 gauss1D->Initialize1DGauss();
135 jacA1D->SetOrder(this->Order);
136 jacA1D->Initialize1DJacobi(1,0);
137 this->TensorProductTriangle(gauss1D,jacA1D);
138 gauss1D->Delete();
139 jacA1D->Delete();
140 break;
141 }
142 case VTK_HEXAHEDRON:
143 case VTK_QUADRATIC_HEXAHEDRON:
144 case VTK_TRIQUADRATIC_HEXAHEDRON:
145 {
147 q1D->SetOrder(this->Order);
148 q1D->Initialize1DGauss();
149 this->TensorProductHexahedron(q1D);
150 q1D->Delete();
151 break;
152 }
153 case VTK_WEDGE:
154 case VTK_QUADRATIC_WEDGE:
155 case VTK_BIQUADRATIC_QUADRATIC_WEDGE:
156 {
158 q1D->SetOrder(this->Order);
159 q1D->Initialize1DGauss();
161 q2D->SetOrder(this->Order);
162 q2D->Initialize(VTK_TRIANGLE);
163 this->TensorProductWedge(q1D,q2D);
164 q1D->Delete();
165 q2D->Delete();
166 break;
167 }
168 case VTK_TETRA:
169 case VTK_QUADRATIC_TETRA:
170 {
171 if (this->Order == 0 || this->Order ==1)
172 {
173 this->QuadraturePoints->SetNumberOfComponents(3);
174 this->QuadraturePoints->SetNumberOfTuples(1);
175 this->QuadratureWeights->SetNumberOfTuples(1);
176 double point[3];
177 double weight;
178 point[0] = 0.25;
179 point[1] = 0.25;
180 point[2] = 0.25;
181 weight = .1666666666666666666666666666666666666666666667;
182 this->QuadraturePoints->SetTuple(0,point);
183 this->QuadratureWeights->SetValue(0,weight);
184 break;
185 }
187 gauss1D->SetOrder(this->Order);
188 gauss1D->Initialize1DGauss();
190 jacA1D->SetOrder(this->Order);
191 jacA1D->Initialize1DJacobi(1,0);
193 jacB1D->SetOrder(this->Order);
194 jacB1D->Initialize1DJacobi(2,0);
195 this->TensorProductTetra(gauss1D,jacA1D,jacB1D);
196 gauss1D->Delete();
197 jacA1D->Delete();
198 jacB1D->Delete();
199 break;
200 }
201 default:
202 {
203 vtkErrorMacro("Unsupported element for Gauss quadrature.");
204 return;
205 }
206 }
207}
void TensorProductTetra(vtkvmtkGaussQuadrature *gauss1D, vtkvmtkGaussQuadrature *jacA1D, vtkvmtkGaussQuadrature *jacB1D)
static vtkvmtkGaussQuadrature * New()
void TensorProductQuad(vtkvmtkGaussQuadrature *q1D)
void TensorProductWedge(vtkvmtkGaussQuadrature *q1D, vtkvmtkGaussQuadrature *q2D)
void TensorProductTriangle(vtkvmtkGaussQuadrature *gauss1D, vtkvmtkGaussQuadrature *jacA1D)
void Initialize(vtkIdType cellType)
void TensorProductHexahedron(vtkvmtkGaussQuadrature *q1D)
virtual void SetOrder(int)
void Initialize1DJacobi(int alpha, int beta)

◆ Initialize() [2/2]

void vtkvmtkGaussQuadrature::Initialize ( vtkCell * cell)
inline

Convenience overload of Initialize(vtkIdType) that takes the cell type from cell.

Definition at line 124 of file vtkvmtkGaussQuadrature.h.

125 {
126 this->Initialize(cell->GetCellType());
127 }

◆ Initialize1DGauss()

void vtkvmtkGaussQuadrature::Initialize1DGauss ( )

Build a 1D Gauss-Legendre quadrature rule of the current Order on the reference interval [-1,1], then rescale it to [0,1] via ScaleTo01(). Used internally as a building block for tensor-product rules on higher-dimensional cells.

Definition at line 233 of file vtkvmtkGaussQuadrature.cxx.

234{
235 if (this->QuadraturePoints)
236 {
237 this->QuadraturePoints->Delete();
238 this->QuadraturePoints = NULL;
239 }
240 this->QuadraturePoints = vtkDoubleArray::New();
241
242 if (this->QuadratureWeights)
243 {
244 this->QuadratureWeights->Delete();
245 this->QuadratureWeights = NULL;
246 }
247 this->QuadratureWeights = vtkDoubleArray::New();
248
249 switch(this->Order)
250 {
251 case 0:
252 case 1:
253 {
254 this->QuadraturePoints->SetNumberOfTuples (1);
255 this->QuadratureWeights->SetNumberOfTuples(1);
256 double* points = this->QuadraturePoints->GetPointer(0);
257 double* weights = this->QuadratureWeights->GetPointer(0);
258
259 points[0] = 0.;
260 weights[0] = 2.;
261
262 break;
263 }
264 case 2:
265 case 3:
266 {
267 this->QuadraturePoints->SetNumberOfTuples (2);
268 this->QuadratureWeights->SetNumberOfTuples(2);
269 double* points = this->QuadraturePoints->GetPointer(0);
270 double* weights = this->QuadratureWeights->GetPointer(0);
271
272 points[0] = -0.577350269189626; // -sqrt(3)/3
273 points[1] = -points[0];
274
275 weights[0] = 1.;
276 weights[1] = weights[0];
277
278 break;
279 }
280 case 4:
281 case 5:
282 {
283 this->QuadraturePoints->SetNumberOfTuples (3);
284 this->QuadratureWeights->SetNumberOfTuples(3);
285 double* points = this->QuadraturePoints->GetPointer(0);
286 double* weights = this->QuadratureWeights->GetPointer(0);
287
288 points[0] = -0.774596669241483377035853079956;
289 points[1] = 0.;
290 points[2] = -points[0];
291
292 weights[0] = 0.555555555555555555555555555556;
293 weights[1] = 0.888888888888888888888888888889;
294 weights[2] = weights[0];
295
296 break;
297 }
298 case 6:
299 case 7:
300 {
301 this->QuadraturePoints->SetNumberOfTuples (4);
302 this->QuadratureWeights->SetNumberOfTuples(4);
303 double* points = this->QuadraturePoints->GetPointer(0);
304 double* weights = this->QuadratureWeights->GetPointer(0);
305
306 points[0] = -0.861136311594052575223946488893;
307 points[1] = -0.339981043584856264802665759103;
308 points[2] = -points[1];
309 points[3] = -points[0];
310
311 weights[0] = 0.347854845137453857373063949222;
312 weights[1] = 0.652145154862546142626936050778;
313 weights[2] = weights[1];
314 weights[3] = weights[0];
315
316 break;
317 }
318 case 8:
319 case 9:
320 {
321 this->QuadraturePoints->SetNumberOfTuples (5);
322 this->QuadratureWeights->SetNumberOfTuples(5);
323 double* points = this->QuadraturePoints->GetPointer(0);
324 double* weights = this->QuadratureWeights->GetPointer(0);
325
326 points[0] = -0.906179845938663992797626878299;
327 points[1] = -0.538469310105683091036314420700;
328 points[2] = 0.;
329 points[3] = -points[1];
330 points[4] = -points[0];
331
332 weights[0] = 0.236926885056189087514264040720;
333 weights[1] = 0.478628670499366468041291514836;
334 weights[2] = 0.568888888888888888888888888889;
335 weights[3] = weights[1];
336 weights[4] = weights[0];
337
338 break;
339 }
340 case 10:
341 case 11:
342 {
343 this->QuadraturePoints->SetNumberOfTuples (6);
344 this->QuadratureWeights->SetNumberOfTuples(6);
345 double* points = this->QuadraturePoints->GetPointer(0);
346 double* weights = this->QuadratureWeights->GetPointer(0);
347
348 points[0] = -0.932469514203152027812301554494;
349 points[1] = -0.661209386466264513661399595020;
350 points[2] = -0.238619186083196908630501721681;
351 points[3] = -points[2];
352 points[4] = -points[1];
353 points[5] = -points[0];
354
355 weights[0] = 0.171324492379170345040296142173;
356 weights[1] = 0.360761573048138607569833513838;
357 weights[2] = 0.467913934572691047389870343990;
358 weights[3] = weights[2];
359 weights[4] = weights[1];
360 weights[5] = weights[0];
361
362 break;
363 }
364 case 12:
365 case 13:
366 {
367 this->QuadraturePoints->SetNumberOfTuples (7);
368 this->QuadratureWeights->SetNumberOfTuples(7);
369 double* points = this->QuadraturePoints->GetPointer(0);
370 double* weights = this->QuadratureWeights->GetPointer(0);
371
372 points[0] = -0.949107912342758524526189684048;
373 points[1] = -0.741531185599394439863864773281;
374 points[2] = -0.405845151377397166906606412077;
375 points[3] = 0.;
376 points[4] = -points[2];
377 points[5] = -points[1];
378 points[6] = -points[0];
379
380 weights[0] = 0.12948496616887;
381 weights[1] = 0.27970539148928;
382 weights[2] = 0.38183005050512;
383 weights[3] = 0.41795918367347;
384 weights[4] = weights[2];
385 weights[5] = weights[1];
386 weights[6] = weights[0];
387
388 break;
389 }
390 case 14:
391 case 15:
392 {
393 this->QuadraturePoints->SetNumberOfTuples (8);
394 this->QuadratureWeights->SetNumberOfTuples(8);
395 double* points = this->QuadraturePoints->GetPointer(0);
396 double* weights = this->QuadratureWeights->GetPointer(0);
397
398 points[0] = -0.960289856497536231683560868569;
399 points[1] = -0.796666477413626739591553936476;
400 points[2] = -0.525532409916328985817739049189;
401 points[3] = -0.183434642495649804939476142360;
402 points[4] = -points[3];
403 points[5] = -points[2];
404 points[6] = -points[1];
405 points[7] = -points[0];
406
407 weights[0] = 0.101228536290376259152531354310;
408 weights[1] = 0.222381034453374470544355994426;
409 weights[2] = 0.313706645877887287337962201987;
410 weights[3] = 0.362683783378361982965150449277;
411 weights[4] = weights[3];
412 weights[5] = weights[2];
413 weights[6] = weights[1];
414 weights[7] = weights[0];
415
416 break;
417 }
418 case 16:
419 case 17:
420 {
421 this->QuadraturePoints->SetNumberOfTuples (9);
422 this->QuadratureWeights->SetNumberOfTuples(9);
423 double* points = this->QuadraturePoints->GetPointer(0);
424 double* weights = this->QuadratureWeights->GetPointer(0);
425
426 points[0] = -0.968160239507626089835576202904;
427 points[1] = -0.836031107326635794299429788070;
428 points[2] = -0.613371432700590397308702039341;
429 points[3] = -0.324253423403808929038538014643;
430 points[4] = 0.0000000000000000000000000000000;
431 points[5] = -points[3];
432 points[6] = -points[2];
433 points[7] = -points[1];
434 points[8] = -points[0];
435
436 weights[0] = 0.0812743883615744119718921581105;
437 weights[1] = 0.180648160694857404058472031243;
438 weights[2] = 0.260610696402935462318742869419;
439 weights[3] = 0.312347077040002840068630406584;
440 weights[4] = 0.330239355001259763164525069287;
441 weights[5] = weights[3];
442 weights[6] = weights[2];
443 weights[7] = weights[1];
444 weights[8] = weights[0];
445
446 break;
447 }
448 case 18:
449 case 19:
450 {
451 this->QuadraturePoints->SetNumberOfTuples (10);
452 this->QuadratureWeights->SetNumberOfTuples(10);
453 double* points = this->QuadraturePoints->GetPointer(0);
454 double* weights = this->QuadratureWeights->GetPointer(0);
455
456 points[0] = -0.973906528517171720077964012084;
457 points[1] = -0.865063366688984510732096688423;
458 points[2] = -0.679409568299024406234327365115;
459 points[3] = -0.433395394129247190799265943166;
460 points[4] = -0.148874338981631210864826001130;
461 points[5] = -points[4];
462 points[6] = -points[3];
463 points[7] = -points[2];
464 points[8] = -points[1];
465 points[9] = -points[0];
466
467 weights[0] = 0.0666713443086881375935688098933;
468 weights[1] = 0.149451349150580593145776339658;
469 weights[2] = 0.219086362515982043995534934228;
470 weights[3] = 0.269266719309996355091226921569;
471 weights[4] = 0.295524224714752870173892994651;
472 weights[5] = weights[4];
473 weights[6] = weights[3];
474 weights[7] = weights[2];
475 weights[8] = weights[1];
476 weights[9] = weights[0];
477
478 break;
479 }
480
481 case 20:
482 case 21:
483 {
484 this->QuadraturePoints->SetNumberOfTuples (11);
485 this->QuadratureWeights->SetNumberOfTuples(11);
486 double* points = this->QuadraturePoints->GetPointer(0);
487 double* weights = this->QuadratureWeights->GetPointer(0);
488
489 points[0] = -0.97822865814606;
490 points[1] = -0.88706259976810;
491 points[2] = -0.73015200557405;
492 points[3] = -0.51909612920681;
493 points[4] = -0.26954315595235;
494 points[5] = 0.;
495 points[6] = -points[4];
496 points[7] = -points[3];
497 points[8] = -points[2];
498 points[9] = -points[1];
499 points[10] = -points[0];
500
501 weights[0] = 0.05566856711617;
502 weights[1] = 0.12558036946490;
503 weights[2] = 0.18629021092773;
504 weights[3] = 0.23319376459199;
505 weights[4] = 0.26280454451025;
506 weights[5] = 0.27292508677790;
507 weights[6] = weights[4];
508 weights[7] = weights[3];
509 weights[8] = weights[2];
510 weights[9] = weights[1];
511 weights[10] = weights[0];
512
513 break;
514 }
515
516 case 22:
517 case 23:
518 {
519 this->QuadraturePoints->SetNumberOfTuples (12);
520 this->QuadratureWeights->SetNumberOfTuples(12);
521 double* points = this->QuadraturePoints->GetPointer(0);
522 double* weights = this->QuadratureWeights->GetPointer(0);
523
524 points[0] = -0.981560634246719250690549090149;
525 points[1] = -0.904117256370474856678465866119;
526 points[2] = -0.769902674194304687036893833213;
527 points[3] = -0.587317954286617447296702418941;
528 points[4] = -0.367831498998180193752691536644;
529 points[5] = -0.125233408511468915472441369464;
530 points[6] = -points[5];
531 points[7] = -points[4];
532 points[8] = -points[3];
533 points[9] = -points[2];
534 points[10] = -points[1];
535 points[11] = -points[0];
536
537 weights[0] = 0.0471753363865118271946159614850;
538 weights[1] = 0.106939325995318430960254718194;
539 weights[2] = 0.160078328543346226334652529543;
540 weights[3] = 0.203167426723065921749064455810;
541 weights[4] = 0.233492536538354808760849898925;
542 weights[5] = 0.249147045813402785000562436043;
543 weights[6] = weights[5];
544 weights[7] = weights[4];
545 weights[8] = weights[3];
546 weights[9] = weights[2];
547 weights[10] = weights[1];
548 weights[11] = weights[0];
549
550 break;
551 }
552
553 case 24:
554 case 25:
555 {
556 this->QuadraturePoints->SetNumberOfTuples (13);
557 this->QuadratureWeights->SetNumberOfTuples(13);
558 double* points = this->QuadraturePoints->GetPointer(0);
559 double* weights = this->QuadratureWeights->GetPointer(0);
560
561 points[0] = -0.98418305471859;
562 points[1] = -0.91759839922298;
563 points[2] = -0.80157809073331;
564 points[3] = -0.64234933944034;
565 points[4] = -0.44849275103645;
566 points[5] = -0.23045831595513;
567 points[6] = 0.;
568 points[7] = -points[5];
569 points[8] = -points[4];
570 points[9] = -points[3];
571 points[10] = -points[2];
572 points[11] = -points[1];
573 points[12] = -points[0];
574
575 weights[0] = 0.04048400476532;
576 weights[1] = 0.09212149983773;
577 weights[2] = 0.13887351021979;
578 weights[3] = 0.17814598076195;
579 weights[4] = 0.20781604753689;
580 weights[5] = 0.22628318026290;
581 weights[6] = 0.23255155323087;
582 weights[7] = weights[5];
583 weights[8] = weights[4];
584 weights[9] = weights[3];
585 weights[10] = weights[2];
586 weights[11] = weights[1];
587 weights[12] = weights[0];
588
589 break;
590 }
591
592 case 26:
593 case 27:
594 {
595 this->QuadraturePoints->SetNumberOfTuples (14);
596 this->QuadratureWeights->SetNumberOfTuples(14);
597 double* points = this->QuadraturePoints->GetPointer(0);
598 double* weights = this->QuadratureWeights->GetPointer(0);
599
600 points[0] = -0.98628380869681;
601 points[1] = -0.92843488366357;
602 points[2] = -0.82720131506977;
603 points[3] = -0.68729290481169;
604 points[4] = -0.51524863635815;
605 points[5] = -0.31911236892789;
606 points[6] = -0.10805494870734;
607 points[7] = -points[6];
608 points[8] = -points[5];
609 points[9] = -points[4];
610 points[10] = -points[3];
611 points[11] = -points[2];
612 points[12] = -points[1];
613 points[13] = -points[0];
614
615 weights[0] = 0.03511946033175;
616 weights[1] = 0.08015808715976;
617 weights[2] = 0.12151857068790;
618 weights[3] = 0.15720316715819;
619 weights[4] = 0.18553839747794;
620 weights[5] = 0.20519846372130;
621 weights[6] = 0.21526385346316;
622 weights[7] = weights[6];
623 weights[8] = weights[5];
624 weights[9] = weights[4];
625 weights[10] = weights[3];
626 weights[11] = weights[2];
627 weights[12] = weights[1];
628 weights[13] = weights[0];
629
630 break;
631 }
632
633 case 28:
634 case 29:
635 {
636 this->QuadraturePoints->SetNumberOfTuples (15);
637 this->QuadratureWeights->SetNumberOfTuples(15);
638 double* points = this->QuadraturePoints->GetPointer(0);
639 double* weights = this->QuadratureWeights->GetPointer(0);
640
641 points[0] = -0.98799251802049;
642 points[1] = -0.93727339240071;
643 points[2] = -0.84820658341043;
644 points[3] = -0.72441773136017;
645 points[4] = -0.57097217260854;
646 points[5] = -0.39415134707756;
647 points[6] = -0.20119409399743;
648 points[7] = -0.00000000000000;
649 points[8] = -points[6];
650 points[9] = -points[5];
651 points[10] = -points[4];
652 points[11] = -points[3];
653 points[12] = -points[2];
654 points[13] = -points[1];
655 points[14] = -points[0];
656
657 weights[0] = 0.03075324199612;
658 weights[1] = 0.07036604748811;
659 weights[2] = 0.10715922046717;
660 weights[3] = 0.13957067792615;
661 weights[4] = 0.16626920581699;
662 weights[5] = 0.18616100001556;
663 weights[6] = 0.19843148532711;
664 weights[7] = 0.20257824192556;
665 weights[8] = weights[6];
666 weights[9] = weights[5];
667 weights[10] = weights[4];
668 weights[11] = weights[3];
669 weights[12] = weights[2];
670 weights[13] = weights[1];
671 weights[14] = weights[0];
672
673 break;
674 }
675
676 case 30:
677 case 31:
678 {
679 this->QuadraturePoints->SetNumberOfTuples (16);
680 this->QuadratureWeights->SetNumberOfTuples(16);
681 double* points = this->QuadraturePoints->GetPointer(0);
682 double* weights = this->QuadratureWeights->GetPointer(0);
683
684 points[0] = -0.98940093499165;
685 points[1] = -0.94457502307323;
686 points[2] = -0.86563120238783;
687 points[3] = -0.75540440835500;
688 points[4] = -0.61787624440264;
689 points[5] = -0.45801677765723;
690 points[6] = -0.28160355077926;
691 points[7] = -0.09501250983764;
692 points[8] = -points[7];
693 points[9] = -points[6];
694 points[10] = -points[5];
695 points[11] = -points[4];
696 points[12] = -points[3];
697 points[13] = -points[2];
698 points[14] = -points[1];
699 points[15] = -points[0];
700
701 weights[0] = 0.02715245941175;
702 weights[1] = 0.06225352393865;
703 weights[2] = 0.09515851168249;
704 weights[3] = 0.12462897125553;
705 weights[4] = 0.14959598881658;
706 weights[5] = 0.16915651939500;
707 weights[6] = 0.18260341504492;
708 weights[7] = 0.18945061045507;
709 weights[8] = weights[7];
710 weights[9] = weights[6];
711 weights[10] = weights[5];
712 weights[11] = weights[4];
713 weights[12] = weights[3];
714 weights[13] = weights[2];
715 weights[14] = weights[1];
716 weights[15] = weights[0];
717
718 break;
719 }
720
721 case 32:
722 case 33:
723 {
724 this->QuadraturePoints->SetNumberOfTuples (17);
725 this->QuadratureWeights->SetNumberOfTuples(17);
726 double* points = this->QuadraturePoints->GetPointer(0);
727 double* weights = this->QuadratureWeights->GetPointer(0);
728
729 points[0] = -0.99057547531442;
730 points[1] = -0.95067552176877;
731 points[2] = -0.88023915372699;
732 points[3] = -0.78151400389680;
733 points[4] = -0.65767115921669;
734 points[5] = -0.51269053708648;
735 points[6] = -0.35123176345388;
736 points[7] = -0.17848418149585;
737 points[8] = 0.;
738 points[9] = -points[7];
739 points[10] = -points[6];
740 points[11] = -points[5];
741 points[12] = -points[4];
742 points[13] = -points[3];
743 points[14] = -points[2];
744 points[15] = -points[1];
745 points[16] = -points[0];
746
747 weights[0] = 0.02414830286855;
748 weights[1] = 0.05545952937399;
749 weights[2] = 0.08503614831718;
750 weights[3] = 0.11188384719340;
751 weights[4] = 0.13513636846853;
752 weights[5] = 0.15404576107681;
753 weights[6] = 0.16800410215645;
754 weights[7] = 0.17656270536699;
755 weights[8] = 0.17944647035621;
756 weights[9] = weights[7];
757 weights[10] = weights[6];
758 weights[11] = weights[5];
759 weights[12] = weights[4];
760 weights[13] = weights[3];
761 weights[14] = weights[2];
762 weights[15] = weights[1];
763 weights[16] = weights[0];
764
765 break;
766 }
767
768 case 34:
769 case 35:
770 {
771 this->QuadraturePoints->SetNumberOfTuples (18);
772 this->QuadratureWeights->SetNumberOfTuples(18);
773 double* points = this->QuadraturePoints->GetPointer(0);
774 double* weights = this->QuadratureWeights->GetPointer(0);
775
776 points[0] = -0.99156516842093;
777 points[1] = -0.95582394957140;
778 points[2] = -0.89260246649756;
779 points[3] = -0.80370495897252;
780 points[4] = -0.69168704306035;
781 points[5] = -0.55977083107395;
782 points[6] = -0.41175116146284;
783 points[7] = -0.25188622569151;
784 points[8] = -0.08477501304173;
785 points[9] = -points[8];
786 points[10] = -points[7];
787 points[11] = -points[6];
788 points[12] = -points[5];
789 points[13] = -points[4];
790 points[14] = -points[3];
791 points[15] = -points[2];
792 points[16] = -points[1];
793 points[17] = -points[0];
794
795 weights[0] = 0.02161601352648;
796 weights[1] = 0.04971454889497;
797 weights[2] = 0.07642573025489;
798 weights[3] = 0.10094204410629;
799 weights[4] = 0.12255520671148;
800 weights[5] = 0.14064291467065;
801 weights[6] = 0.15468467512627;
802 weights[7] = 0.16427648374583;
803 weights[8] = 0.16914238296314;
804 weights[9] = weights[8];
805 weights[10] = weights[7];
806 weights[11] = weights[6];
807 weights[12] = weights[5];
808 weights[13] = weights[4];
809 weights[14] = weights[3];
810 weights[15] = weights[2];
811 weights[16] = weights[1];
812 weights[17] = weights[0];
813
814 break;
815 }
816
817 case 36:
818 case 37:
819 {
820 this->QuadraturePoints->SetNumberOfTuples (19);
821 this->QuadratureWeights->SetNumberOfTuples(19);
822 double* points = this->QuadraturePoints->GetPointer(0);
823 double* weights = this->QuadratureWeights->GetPointer(0);
824
825 points[0] = -0.99240684384358;
826 points[1] = -0.96020815213483;
827 points[2] = -0.90315590361482;
828 points[3] = -0.82271465653714;
829 points[4] = -0.72096617733523;
830 points[5] = -0.60054530466168;
831 points[6] = -0.46457074137596;
832 points[7] = -0.31656409996363;
833 points[8] = -0.16035864564023;
834 points[9] = 0.;
835 points[10] = -points[8];
836 points[11] = -points[7];
837 points[12] = -points[6];
838 points[13] = -points[5];
839 points[14] = -points[4];
840 points[15] = -points[3];
841 points[16] = -points[2];
842 points[17] = -points[1];
843 points[18] = -points[0];
844
845 weights[0] = 0.01946178822973;
846 weights[1] = 0.04481422676570;
847 weights[2] = 0.06904454273764;
848 weights[3] = 0.09149002162245;
849 weights[4] = 0.11156664554733;
850 weights[5] = 0.12875396253934;
851 weights[6] = 0.14260670217361;
852 weights[7] = 0.15276604206586;
853 weights[8] = 0.15896884339395;
854 weights[9] = 0.16105444984878;
855 weights[10] = weights[8];
856 weights[11] = weights[7];
857 weights[12] = weights[6];
858 weights[13] = weights[5];
859 weights[14] = weights[4];
860 weights[15] = weights[3];
861 weights[16] = weights[2];
862 weights[17] = weights[1];
863 weights[18] = weights[0];
864
865 break;
866 }
867
868 case 38:
869 case 39:
870 {
871 this->QuadraturePoints->SetNumberOfTuples (20);
872 this->QuadratureWeights->SetNumberOfTuples(20);
873 double* points = this->QuadraturePoints->GetPointer(0);
874 double* weights = this->QuadratureWeights->GetPointer(0);
875
876 points[0] = -0.99312859918510;
877 points[1] = -0.96397192727791;
878 points[2] = -0.91223442825133;
879 points[3] = -0.83911697182222;
880 points[4] = -0.74633190646015;
881 points[5] = -0.63605368072652;
882 points[6] = -0.51086700195083;
883 points[7] = -0.37370608871542;
884 points[8] = -0.22778585114164;
885 points[9] = -0.07652652113350;
886 points[10] = -points[9];
887 points[11] = -points[8];
888 points[12] = -points[7];
889 points[13] = -points[6];
890 points[14] = -points[5];
891 points[15] = -points[4];
892 points[16] = -points[3];
893 points[17] = -points[2];
894 points[18] = -points[1];
895 points[19] = -points[0];
896
897 weights[0] = 0.01761400713915;
898 weights[1] = 0.04060142980039;
899 weights[2] = 0.06267204833411;
900 weights[3] = 0.08327674157670;
901 weights[4] = 0.10193011981724;
902 weights[5] = 0.11819453196152;
903 weights[6] = 0.13168863844918;
904 weights[7] = 0.14209610931838;
905 weights[8] = 0.14917298647260;
906 weights[9] = 0.15275338713073;
907 weights[10] = weights[9];
908 weights[11] = weights[8];
909 weights[12] = weights[7];
910 weights[13] = weights[6];
911 weights[14] = weights[5];
912 weights[15] = weights[4];
913 weights[16] = weights[3];
914 weights[17] = weights[2];
915 weights[18] = weights[1];
916 weights[19] = weights[0];
917
918 break;
919 }
920
921 case 40:
922 case 41:
923 {
924 this->QuadraturePoints->SetNumberOfTuples (21);
925 this->QuadratureWeights->SetNumberOfTuples(21);
926 double* points = this->QuadraturePoints->GetPointer(0);
927 double* weights = this->QuadratureWeights->GetPointer(0);
928
929 points[0] = -0.99375217062039;
930 points[1] = -0.96722683856631;
931 points[2] = -0.92009933415040;
932 points[3] = -0.85336336458332;
933 points[4] = -0.76843996347568;
934 points[5] = -0.66713880419741;
935 points[6] = -0.55161883588722;
936 points[7] = -0.42434212020744;
937 points[8] = -0.28802131680240;
938 points[9] = -0.14556185416090;
939 points[10] = 0.;
940 points[11] = -points[9];
941 points[12] = -points[8];
942 points[13] = -points[7];
943 points[14] = -points[6];
944 points[15] = -points[5];
945 points[16] = -points[4];
946 points[17] = -points[3];
947 points[18] = -points[2];
948 points[19] = -points[1];
949 points[20] = -points[0];
950
951 weights[0] = 0.01601722825777;
952 weights[1] = 0.03695378977085;
953 weights[2] = 0.05713442542686;
954 weights[3] = 0.07610011362838;
955 weights[4] = 0.09344442345603;
956 weights[5] = 0.10879729916715;
957 weights[6] = 0.12183141605373;
958 weights[7] = 0.13226893863334;
959 weights[8] = 0.13988739479107;
960 weights[9] = 0.14452440398997;
961 weights[10] = 0.14608113364969;
962 weights[11] = weights[9];
963 weights[12] = weights[8];
964 weights[13] = weights[7];
965 weights[14] = weights[6];
966 weights[15] = weights[5];
967 weights[16] = weights[4];
968 weights[17] = weights[3];
969 weights[18] = weights[2];
970 weights[19] = weights[1];
971 weights[20] = weights[0];
972
973 break;
974 }
975
976 case 42:
977 case 43:
978 {
979 this->QuadraturePoints->SetNumberOfTuples (22);
980 this->QuadratureWeights->SetNumberOfTuples(22);
981 double* points = this->QuadraturePoints->GetPointer(0);
982 double* weights = this->QuadratureWeights->GetPointer(0);
983
984 points[0] = -0.99429458548240;
985 points[1] = -0.97006049783543;
986 points[2] = -0.92695677218717;
987 points[3] = -0.86581257772030;
988 points[4] = -0.78781680597921;
989 points[5] = -0.69448726318668;
990 points[6] = -0.58764040350691;
991 points[7] = -0.46935583798676;
992 points[8] = -0.34193582089208;
993 points[9] = -0.20786042668822;
994 points[10] = -0.06973927331972;
995 points[11] = -points[10];
996 points[12] = -points[9];
997 points[13] = -points[8];
998 points[14] = -points[7];
999 points[15] = -points[6];
1000 points[16] = -points[5];
1001 points[17] = -points[4];
1002 points[18] = -points[3];
1003 points[19] = -points[2];
1004 points[20] = -points[1];
1005 points[21] = -points[0];
1006
1007 weights[0] = 0.01462799529827;
1008 weights[1] = 0.03377490158481;
1009 weights[2] = 0.05229333515268;
1010 weights[3] = 0.06979646842452;
1011 weights[4] = 0.08594160621707;
1012 weights[5] = 0.10041414444288;
1013 weights[6] = 0.11293229608054;
1014 weights[7] = 0.12325237681051;
1015 weights[8] = 0.13117350478706;
1016 weights[9] = 0.13654149834602;
1017 weights[10] = 0.13925187285563;
1018 weights[11] = weights[10];
1019 weights[12] = weights[9];
1020 weights[13] = weights[8];
1021 weights[14] = weights[7];
1022 weights[15] = weights[6];
1023 weights[16] = weights[5];
1024 weights[17] = weights[4];
1025 weights[18] = weights[3];
1026 weights[19] = weights[2];
1027 weights[20] = weights[1];
1028 weights[21] = weights[0];
1029
1030 break;
1031 }
1032
1033 default:
1034 {
1035 vtkErrorMacro("Quadrature rule not supported.");
1036 return;
1037 }
1038 }
1039
1040 this->ScaleTo01();
1041}

◆ Initialize1DJacobi()

void vtkvmtkGaussQuadrature::Initialize1DJacobi ( int alpha,
int beta )

Build a 1D Gauss-Jacobi quadrature rule of the current Order, for Jacobi weight parameters alpha and beta, on [0,1]. Used internally as a building block for tensor-product rules on triangles and tetrahedra (which require a Jacobi-weighted rule to correctly integrate over a simplex via a collapsed tensor-product mapping).

Definition at line 1043 of file vtkvmtkGaussQuadrature.cxx.

1044{
1045 if (this->QuadraturePoints)
1046 {
1047 this->QuadraturePoints->Delete();
1048 this->QuadraturePoints = NULL;
1049 }
1050 this->QuadraturePoints = vtkDoubleArray::New();
1051
1052 if (this->QuadratureWeights)
1053 {
1054 this->QuadratureWeights->Delete();
1055 this->QuadratureWeights = NULL;
1056 }
1057 this->QuadratureWeights = vtkDoubleArray::New();
1058
1059 if ((alpha == 1) && (beta == 0))
1060 {
1061 switch (this->Order)
1062 {
1063 case 0:
1064 case 1:
1065 {
1066 this->QuadraturePoints->SetNumberOfTuples (1);
1067 this->QuadratureWeights->SetNumberOfTuples(1);
1068 double* points = this->QuadraturePoints->GetPointer(0);
1069 double* weights = this->QuadratureWeights->GetPointer(0);
1070
1071 points[0] = 0.33333333333333;
1072
1073 weights[0] = 0.50000000000000;
1074
1075 break;
1076 }
1077 case 2:
1078 case 3:
1079 {
1080 this->QuadraturePoints->SetNumberOfTuples (2);
1081 this->QuadratureWeights->SetNumberOfTuples(2);
1082 double* points = this->QuadraturePoints->GetPointer(0);
1083 double* weights = this->QuadratureWeights->GetPointer(0);
1084
1085 points[0] = 0.15505102572168;
1086 points[1] = 0.64494897427832;
1087
1088 weights[0] = 0.31804138174398;
1089 weights[1] = 0.18195861825602;
1090
1091 break;
1092 }
1093 case 4:
1094 case 5:
1095 {
1096 this->QuadraturePoints->SetNumberOfTuples (3);
1097 this->QuadratureWeights->SetNumberOfTuples(3);
1098 double* points = this->QuadraturePoints->GetPointer(0);
1099 double* weights = this->QuadratureWeights->GetPointer(0);
1100
1101 points[0] = 0.08858795951270;
1102 points[1] = 0.40946686444073;
1103 points[2] = 0.78765946176085;
1104
1105 weights[0] = 0.20093191373896;
1106 weights[1] = 0.22924110635959;
1107 weights[2] = 0.06982697990145;
1108
1109 break;
1110 }
1111 case 6:
1112 case 7:
1113 {
1114 this->QuadraturePoints->SetNumberOfTuples (4);
1115 this->QuadratureWeights->SetNumberOfTuples(4);
1116 double* points = this->QuadraturePoints->GetPointer(0);
1117 double* weights = this->QuadratureWeights->GetPointer(0);
1118
1119 points[0] = 0.05710419611452;
1120 points[1] = 0.27684301363812;
1121 points[2] = 0.58359043236892;
1122 points[3] = 0.86024013565622;
1123
1124 weights[0] = 0.13550691343149;
1125 weights[1] = 0.20346456801027;
1126 weights[2] = 0.12984754760823;
1127 weights[3] = 0.03118097095001;
1128
1129 break;
1130 }
1131 case 8:
1132 case 9:
1133 {
1134 this->QuadraturePoints->SetNumberOfTuples (5);
1135 this->QuadratureWeights->SetNumberOfTuples(5);
1136 double* points = this->QuadraturePoints->GetPointer(0);
1137 double* weights = this->QuadratureWeights->GetPointer(0);
1138
1139 points[0] = 0.03980985705147;
1140 points[1] = 0.19801341787361;
1141 points[2] = 0.43797481024739;
1142 points[3] = 0.69546427335364;
1143 points[4] = 0.90146491420117;
1144
1145 weights[0] = 0.09678159022665;
1146 weights[1] = 0.16717463809437;
1147 weights[2] = 0.14638698708467;
1148 weights[3] = 0.07390887007262;
1149 weights[4] = 0.01574791452169;
1150
1151 break;
1152 }
1153 case 10:
1154 case 11:
1155 {
1156 this->QuadraturePoints->SetNumberOfTuples (6);
1157 this->QuadratureWeights->SetNumberOfTuples(6);
1158 double* points = this->QuadraturePoints->GetPointer(0);
1159 double* weights = this->QuadratureWeights->GetPointer(0);
1160
1161 points[0] = 0.02931642715979;
1162 points[1] = 0.14807859966848;
1163 points[2] = 0.33698469028115;
1164 points[3] = 0.55867151877155;
1165 points[4] = 0.76923386203005;
1166 points[5] = 0.92694567131974;
1167
1168 weights[0] = 0.07231033072551;
1169 weights[1] = 0.13554249723152;
1170 weights[2] = 0.14079255378820;
1171 weights[3] = 0.09866115089066;
1172 weights[4] = 0.04395516555051;
1173 weights[5] = 0.00873830181361;
1174
1175 break;
1176 }
1177 case 12:
1178 case 13:
1179 {
1180 this->QuadraturePoints->SetNumberOfTuples (7);
1181 this->QuadratureWeights->SetNumberOfTuples(7);
1182 double* points = this->QuadraturePoints->GetPointer(0);
1183 double* weights = this->QuadratureWeights->GetPointer(0);
1184
1185 points[0] = 0.02247938643871;
1186 points[1] = 0.11467905316090;
1187 points[2] = 0.26578982278459;
1188 points[3] = 0.45284637366944;
1189 points[4] = 0.64737528288683;
1190 points[5] = 0.81975930826311;
1191 points[6] = 0.94373743946308;
1192
1193 weights[0] = 0.05596736342349;
1194 weights[1] = 0.11050925819087;
1195 weights[2] = 0.12739089729959;
1196 weights[3] = 0.10712506569587;
1197 weights[4] = 0.06638469646549;
1198 weights[5] = 0.02740835672187;
1199 weights[6] = 0.00521436220281;
1200
1201 break;
1202 }
1203 case 14:
1204 case 15:
1205 {
1206 this->QuadraturePoints->SetNumberOfTuples (8);
1207 this->QuadratureWeights->SetNumberOfTuples(8);
1208 double* points = this->QuadraturePoints->GetPointer(0);
1209 double* weights = this->QuadratureWeights->GetPointer(0);
1210
1211 points[0] = 0.01777991514737;
1212 points[1] = 0.09132360789979;
1213 points[2] = 0.21430847939563;
1214 points[3] = 0.37193216458327;
1215 points[4] = 0.54518668480343;
1216 points[5] = 0.71317524285557;
1217 points[6] = 0.85563374295785;
1218 points[7] = 0.95536604471003;
1219
1220 weights[0] = 0.04455080436154;
1221 weights[1] = 0.09111902363638;
1222 weights[2] = 0.11250579947089;
1223 weights[3] = 0.10604735943593;
1224 weights[4] = 0.07919959949232;
1225 weights[5] = 0.04543931950470;
1226 weights[6] = 0.01784290265599;
1227 weights[7] = 0.00329519144225;
1228
1229 break;
1230 }
1231 case 16:
1232 case 17:
1233 {
1234 this->QuadraturePoints->SetNumberOfTuples (9);
1235 this->QuadratureWeights->SetNumberOfTuples(9);
1236 double* points = this->QuadraturePoints->GetPointer(0);
1237 double* weights = this->QuadratureWeights->GetPointer(0);
1238
1239 points[0] = 0.01441240964887;
1240 points[1] = 0.07438738970920;
1241 points[2] = 0.17611665616299;
1242 points[3] = 0.30966757992764;
1243 points[4] = 0.46197040108101;
1244 points[5] = 0.61811723469529;
1245 points[6] = 0.76282301518504;
1246 points[7] = 0.88192102121000;
1247 points[8] = 0.96374218711679;
1248
1249 weights[0] = 0.03627800352333;
1250 weights[1] = 0.07607425510930;
1251 weights[2] = 0.09853374217235;
1252 weights[3] = 0.10030880919337;
1253 weights[4] = 0.08435832184492;
1254 weights[5] = 0.05840119529517;
1255 weights[6] = 0.03180482149105;
1256 weights[7] = 0.01206000428479;
1257 weights[8] = 0.00218084708577;
1258
1259 break;
1260 }
1261 case 18:
1262 case 19:
1263 {
1264 this->QuadraturePoints->SetNumberOfTuples (10);
1265 this->QuadratureWeights->SetNumberOfTuples(10);
1266 double* points = this->QuadraturePoints->GetPointer(0);
1267 double* weights = this->QuadratureWeights->GetPointer(0);
1268
1269 points[0] = 0.01191761343242;
1270 points[1] = 0.06173207187714;
1271 points[2] = 0.14711144964308;
1272 points[3] = 0.26115967600846;
1273 points[4] = 0.39463984688579;
1274 points[5] = 0.53673876571566;
1275 points[6] = 0.67594446167666;
1276 points[7] = 0.80097892103690;
1277 points[8] = 0.90171098779015;
1278 points[9] = 0.96997096783851;
1279
1280 weights[0] = 0.03009950802395;
1281 weights[1] = 0.06428715450909;
1282 weights[2] = 0.08621130028917;
1283 weights[3] = 0.09269689367772;
1284 weights[4] = 0.08455710969083;
1285 weights[5] = 0.06605307556335;
1286 weights[6] = 0.04340190640715;
1287 weights[7] = 0.02277459145326;
1288 weights[8] = 0.00841931978298;
1289 weights[9] = 0.00149914060241;
1290
1291 break;
1292 }
1293 case 20:
1294 case 21:
1295 {
1296 this->QuadraturePoints->SetNumberOfTuples (11);
1297 this->QuadratureWeights->SetNumberOfTuples(11);
1298 double* points = this->QuadraturePoints->GetPointer(0);
1299 double* weights = this->QuadratureWeights->GetPointer(0);
1300
1301 points[0] = 0.01001828046168;
1302 points[1] = 0.05203545112718;
1303 points[2] = 0.12461922514445;
1304 points[3] = 0.22284060704384;
1305 points[4] = 0.34000815791467;
1306 points[5] = 0.46813761308958;
1307 points[6] = 0.59849727976714;
1308 points[7] = 0.72220328489097;
1309 points[8] = 0.83082489962282;
1310 points[9] = 0.91695838655260;
1311 points[10] = 0.97472637960248;
1312
1313 weights[0] = 0.02536734068817;
1314 weights[1] = 0.05493809113287;
1315 weights[2] = 0.07562004805718;
1316 weights[3] = 0.08465942288402;
1317 weights[4] = 0.08187910298806;
1318 weights[5] = 0.06953187515818;
1319 weights[6] = 0.05159136067230;
1320 weights[7] = 0.03264154671383;
1321 weights[8] = 0.01666362345168;
1322 weights[9] = 0.00604392096048;
1323 weights[10] = 0.00106366729324;
1324
1325 break;
1326 }
1327 case 22:
1328 case 23:
1329 {
1330 this->QuadraturePoints->SetNumberOfTuples (12);
1331 this->QuadratureWeights->SetNumberOfTuples(12);
1332 double* points = this->QuadraturePoints->GetPointer(0);
1333 double* weights = this->QuadratureWeights->GetPointer(0);
1334
1335 points[0] = 0.00853905498844;
1336 points[1] = 0.04444646315539;
1337 points[2] = 0.10685449088348;
1338 points[3] = 0.19215105452985;
1339 points[4] = 0.29538088426258;
1340 points[5] = 0.41054508120146;
1341 points[6] = 0.53095084931282;
1342 points[7] = 0.64960065027725;
1343 points[8] = 0.75959888952523;
1344 points[9] = 0.85455254376493;
1345 points[10] = 0.92894210126442;
1346 points[11] = 0.97843793683415;
1347
1348 weights[0] = 0.02166486088692;
1349 weights[1] = 0.04742785198044;
1350 weights[2] = 0.06660675062670;
1351 weights[3] = 0.07689660268004;
1352 weights[4] = 0.07769631681553;
1353 weights[5] = 0.07010933999763;
1354 weights[6] = 0.05661384371367;
1355 weights[7] = 0.04045165370691;
1356 weights[8] = 0.02487678040927;
1357 weights[9] = 0.01243600916642;
1358 weights[10] = 0.00444480779567;
1359 weights[11] = 0.00077518222094;
1360
1361 break;
1362 }
1363 case 24:
1364 case 25:
1365 {
1366 this->QuadraturePoints->SetNumberOfTuples (13);
1367 this->QuadratureWeights->SetNumberOfTuples(13);
1368 double* points = this->QuadraturePoints->GetPointer(0);
1369 double* weights = this->QuadratureWeights->GetPointer(0);
1370
1371 points[0] = 0.00736465102609;
1372 points[1] = 0.03839813873968;
1373 points[2] = 0.09259522469900;
1374 points[3] = 0.16725101139156;
1375 points[4] = 0.25862354070576;
1376 points[5] = 0.36213139728224;
1377 points[6] = 0.47258438600412;
1378 points[7] = 0.58444396402134;
1379 points[8] = 0.69210100171960;
1380 points[9] = 0.79015702827344;
1381 points[10] = 0.87369482130669;
1382 points[11] = 0.93852445910073;
1383 points[12] = 0.98138963498901;
1384
1385 weights[0] = 0.01871473158558;
1386 weights[1] = 0.04132028941977;
1387 weights[2] = 0.05895393795654;
1388 weights[3] = 0.06971346828202;
1389 weights[4] = 0.07284969651569;
1390 weights[5] = 0.06881552948745;
1391 weights[6] = 0.05912048131399;
1392 weights[7] = 0.04599578067597;
1393 weights[8] = 0.03193678716215;
1394 weights[9] = 0.01921395716469;
1395 weights[10] = 0.00944892447958;
1396 weights[11] = 0.00333835925077;
1397 weights[12] = 0.00057805670494;
1398
1399 break;
1400 }
1401 case 26:
1402 case 27:
1403 {
1404 this->QuadraturePoints->SetNumberOfTuples (14);
1405 this->QuadratureWeights->SetNumberOfTuples(14);
1406 double* points = this->QuadraturePoints->GetPointer(0);
1407 double* weights = this->QuadratureWeights->GetPointer(0);
1408
1409 points[0] = 0.00641676079282;
1410 points[1] = 0.03350140453201;
1411 points[2] = 0.08098549968196;
1412 points[3] = 0.14680486768121;
1413 points[4] = 0.22808427064926;
1414 points[5] = 0.32127174398894;
1415 points[6] = 0.42229465730757;
1416 points[7] = 0.52673786133987;
1417 points[8] = 0.63003668837040;
1418 points[9] = 0.72767645288926;
1419 points[10] = 0.81538973944347;
1420 points[11] = 0.88934280881952;
1421 points[12] = 0.94630270006028;
1422 points[13] = 0.98377523409860;
1423
1424 weights[0] = 0.01632675432256;
1425 weights[1] = 0.03629607805537;
1426 weights[2] = 0.05244595350181;
1427 weights[3] = 0.06321302557420;
1428 weights[4] = 0.06783165960405;
1429 weights[5] = 0.06639235062595;
1430 weights[6] = 0.05978555902241;
1431 weights[7] = 0.04951945452310;
1432 weights[8] = 0.03744309645891;
1433 weights[9] = 0.02542346540710;
1434 weights[10] = 0.01503230374390;
1435 weights[11] = 0.00729648413320;
1436 weights[12] = 0.00255410131768;
1437 weights[13] = 0.00043971370875;
1438
1439 break;
1440 }
1441 case 28:
1442 case 29:
1443 {
1444 this->QuadraturePoints->SetNumberOfTuples (15);
1445 this->QuadratureWeights->SetNumberOfTuples(15);
1446 double* points = this->QuadraturePoints->GetPointer(0);
1447 double* weights = this->QuadratureWeights->GetPointer(0);
1448
1449 points[0] = 0.00564068897251;
1450 points[1] = 0.02948229864794;
1451 points[2] = 0.07141295311516;
1452 points[3] = 0.12983102555359;
1453 points[4] = 0.20249275505010;
1454 points[5] = 0.28660608625753;
1455 points[6] = 0.37893868864698;
1456 points[7] = 0.47594230846323;
1457 points[8] = 0.57388916090669;
1458 points[9] = 0.66901519502996;
1459 points[10] = 0.75766473903134;
1460 points[11] = 0.83643096060561;
1461 points[12] = 0.90228670067938;
1462 points[13] = 0.95270040990583;
1463 points[14] = 0.98573054526317;
1464
1465 weights[0] = 0.01436706962168;
1466 weights[1] = 0.03211904487489;
1467 weights[2] = 0.04689163994396;
1468 weights[3] = 0.05739882550681;
1469 weights[4] = 0.06291810664846;
1470 weights[5] = 0.06334395516137;
1471 weights[6] = 0.05917419205958;
1472 weights[7] = 0.05141236231177;
1473 weights[8] = 0.04140073518433;
1474 weights[9] = 0.03060976958640;
1475 weights[10] = 0.02041630927257;
1476 weights[11] = 0.01190419035507;
1477 weights[12] = 0.00571722239471;
1478 weights[13] = 0.00198623469314;
1479 weights[14] = 0.00034034238414;
1480
1481 break;
1482 }
1483 case 30:
1484 case 31:
1485 {
1486 this->QuadraturePoints->SetNumberOfTuples (16);
1487 this->QuadratureWeights->SetNumberOfTuples(16);
1488 double* points = this->QuadraturePoints->GetPointer(0);
1489 double* weights = this->QuadratureWeights->GetPointer(0);
1490
1491 points[0] = 0.00499729966377;
1492 points[1] = 0.02614351368139;
1493 points[2] = 0.06343094558384;
1494 points[3] = 0.11559843757982;
1495 points[4] = 0.18087055965788;
1496 points[5] = 0.25702480784517;
1497 points[6] = 0.34146792754782;
1498 points[7] = 0.43132434359563;
1499 points[8] = 0.52353411602517;
1500 points[9] = 0.61495715187649;
1501 points[10] = 0.70248013792504;
1502 points[11] = 0.78312255396487;
1503 points[12] = 0.85413814777521;
1504 points[13] = 0.91310837653714;
1505 points[14] = 0.95802441769048;
1506 points[15] = 0.98735302062604;
1507
1508 weights[0] = 0.01273931065730;
1509 weights[1] = 0.02861245259007;
1510 weights[2] = 0.04212943115733;
1511 weights[3] = 0.05222859440383;
1512 weights[4] = 0.05825424020971;
1513 weights[5] = 0.06000085488797;
1514 weights[6] = 0.05771887960913;
1515 weights[7] = 0.05206413784368;
1516 weights[8] = 0.04399738218914;
1517 weights[9] = 0.03464781657920;
1518 weights[10] = 0.02515923310641;
1519 weights[11] = 0.01653958435560;
1520 weights[12] = 0.00953416788464;
1521 weights[13] = 0.00453923238613;
1522 weights[14] = 0.00156718847359;
1523 weights[15] = 0.00026749366505;
1524
1525 break;
1526 }
1527 case 32:
1528 case 33:
1529 {
1530 this->QuadraturePoints->SetNumberOfTuples (17);
1531 this->QuadratureWeights->SetNumberOfTuples(17);
1532 double* points = this->QuadraturePoints->GetPointer(0);
1533 double* weights = this->QuadratureWeights->GetPointer(0);
1534
1535 points[0] = 0.00445799356779;
1536 points[1] = 0.02334009412377;
1537 points[2] = 0.05670796876908;
1538 points[3] = 0.10355543293520;
1539 points[4] = 0.16246000342814;
1540 points[5] = 0.23163212577717;
1541 points[6] = 0.30897011775220;
1542 points[7] = 0.39212413472210;
1543 points[8] = 0.47856759685308;
1544 points[9] = 0.56567396688663;
1545 points[10] = 0.65079655845338;
1546 points[11] = 0.73134895273405;
1547 points[12] = 0.80488357852497;
1548 points[13] = 0.86916605956741;
1549 points[14] = 0.92224303459230;
1550 points[15] = 0.96250119782335;
1551 points[16] = 0.98871404063224;
1552
1553 weights[0] = 0.01137270311317;
1554 weights[1] = 0.02564242792014;
1555 weights[2] = 0.03802572882564;
1556 weights[3] = 0.04764186937449;
1557 weights[4] = 0.05390793166739;
1558 weights[5] = 0.05657361138232;
1559 weights[6] = 0.05573491792341;
1560 weights[7] = 0.05180974192916;
1561 weights[8] = 0.04547779039902;
1562 weights[9] = 0.03759232548701;
1563 weights[10] = 0.02907452408763;
1564 weights[11] = 0.02080327801024;
1565 weights[12] = 0.01351369745227;
1566 weights[13] = 0.00771642221479;
1567 weights[14] = 0.00364723048341;
1568 weights[15] = 0.00125268343939;
1569 weights[16] = 0.00021311628921;
1570
1571 break;
1572 }
1573 case 34:
1574 case 35:
1575 {
1576 this->QuadraturePoints->SetNumberOfTuples (18);
1577 this->QuadratureWeights->SetNumberOfTuples(18);
1578 double* points = this->QuadraturePoints->GetPointer(0);
1579 double* weights = this->QuadratureWeights->GetPointer(0);
1580
1581 points[0] = 0.00400147938387;
1582 points[1] = 0.02096364839377;
1583 points[2] = 0.05099404158789;
1584 points[3] = 0.09328039592854;
1585 points[4] = 0.14667010367762;
1586 points[5] = 0.20970703958884;
1587 points[6] = 0.28067179006017;
1588 points[7] = 0.35762864997663;
1589 points[8] = 0.43847844922414;
1590 points[9] = 0.52101582087078;
1591 points[10] = 0.60298936055983;
1592 points[11] = 0.68216303911365;
1593 points[12] = 0.75637719340615;
1594 points[13] = 0.82360742977487;
1595 points[14] = 0.88201982536208;
1596 points[15] = 0.93002088969969;
1597 points[16] = 0.96630075194563;
1598 points[17] = 0.98986684820260;
1599
1600 weights[0] = 0.01021433943501;
1601 weights[1] = 0.02310635016331;
1602 weights[2] = 0.03447111892183;
1603 weights[3] = 0.04357390707452;
1604 weights[4] = 0.04990222691756;
1605 weights[5] = 0.05319233463169;
1606 weights[6] = 0.05344528780267;
1607 weights[7] = 0.05091692885623;
1608 weights[8] = 0.04608240099011;
1609 weights[9] = 0.03957916228850;
1610 weights[10] = 0.03213480612754;
1611 weights[11] = 0.02448759000122;
1612 weights[12] = 0.01730830048085;
1613 weights[13] = 0.01113187009738;
1614 weights[14] = 0.00630603888236;
1615 weights[15] = 0.00296244306442;
1616 weights[16] = 0.00101302517930;
1617 weights[17] = 0.00017186908410;
1618
1619 break;
1620 }
1621 case 36:
1622 case 37:
1623 {
1624 this->QuadraturePoints->SetNumberOfTuples (19);
1625 this->QuadratureWeights->SetNumberOfTuples(19);
1626 double* points = this->QuadraturePoints->GetPointer(0);
1627 double* weights = this->QuadratureWeights->GetPointer(0);
1628
1629 points[0] = 0.00361164281856;
1630 points[1] = 0.01893183703159;
1631 points[2] = 0.04609793304843;
1632 points[3] = 0.08444722278421;
1633 points[4] = 0.13303618855810;
1634 points[5] = 0.19066859490476;
1635 points[6] = 0.25592540348210;
1636 points[7] = 0.32719980076381;
1637 points[8] = 0.40273678616508;
1638 points[9] = 0.48067639357855;
1639 points[10] = 0.55909949264903;
1640 points[11] = 0.63607504487927;
1641 points[12] = 0.70970765165390;
1642 points[13] = 0.77818422297676;
1643 points[14] = 0.83981861570871;
1644 points[15] = 0.89309313498184;
1645 points[16] = 0.93669584807437;
1646 points[17] = 0.96955263708022;
1647 points[18] = 0.99085180527096;
1648
1649 weights[0] = 0.00922403772500;
1650 weights[1] = 0.02092465175192;
1651 weights[2] = 0.03137627528564;
1652 weights[3] = 0.03996237004887;
1653 weights[4] = 0.04623492816844;
1654 weights[5] = 0.04993413824027;
1655 weights[6] = 0.05100418662657;
1656 weights[7] = 0.04959104646856;
1657 weights[8] = 0.04602198571600;
1658 weights[9] = 0.04076887087172;
1659 weights[10] = 0.03439895795181;
1660 weights[11] = 0.02751805814427;
1661 weights[12] = 0.02071167256270;
1662 weights[13] = 0.01448984711207;
1663 weights[14] = 0.00924109192929;
1664 weights[15] = 0.00519978132826;
1665 weights[16] = 0.00243009171203;
1666 weights[17] = 0.00082788076092;
1667 weights[18] = 0.00014012759418;
1668
1669 break;
1670 }
1671 case 38:
1672 case 39:
1673 {
1674 this->QuadraturePoints->SetNumberOfTuples (20);
1675 this->QuadratureWeights->SetNumberOfTuples(20);
1676 double* points = this->QuadraturePoints->GetPointer(0);
1677 double* weights = this->QuadratureWeights->GetPointer(0);
1678
1679 points[0] = 0.00327610666905;
1680 points[1] = 0.01718121814526;
1681 points[2] = 0.04187143111777;
1682 points[3] = 0.07680083708962;
1683 points[4] = 0.12118986732368;
1684 points[5] = 0.17404711263554;
1685 points[6] = 0.23419188631359;
1686 points[7] = 0.30028067683595;
1687 points[8] = 0.37083718058440;
1688 points[9] = 0.44428528696301;
1689 points[10] = 0.51898428870357;
1690 points[11] = 0.59326553348351;
1691 points[12] = 0.66546969890551;
1692 points[13] = 0.73398385823566;
1693 points[14] = 0.79727750833659;
1694 points[15] = 0.85393675303589;
1695 points[16] = 0.90269587179345;
1696 points[17] = 0.94246554236319;
1697 points[18] = 0.97235694664744;
1698 points[19] = 0.99169995579293;
1699
1700 weights[0] = 0.00837084417624;
1701 weights[1] = 0.01903496946364;
1702 weights[2] = 0.02866823737904;
1703 weights[3] = 0.03675023983654;
1704 weights[4] = 0.04289029583785;
1705 weights[5] = 0.04684169186242;
1706 weights[6] = 0.04851610505971;
1707 weights[7] = 0.04798546160980;
1708 weights[8] = 0.04547058894121;
1709 weights[9] = 0.04131770681654;
1710 weights[10] = 0.03596491915375;
1711 weights[11] = 0.02990174184254;
1712 weights[12] = 0.02362529617348;
1713 weights[13] = 0.01759706687915;
1714 weights[14] = 0.01220404612664;
1715 weights[15] = 0.00772766793003;
1716 weights[16] = 0.00432321911268;
1717 weights[17] = 0.00201145761396;
1718 weights[18] = 0.00068306227608;
1719 weights[19] = 0.00011538190718;
1720
1721 break;
1722 }
1723 case 40:
1724 case 41:
1725 {
1726 this->QuadraturePoints->SetNumberOfTuples (21);
1727 this->QuadratureWeights->SetNumberOfTuples(21);
1728 double* points = this->QuadraturePoints->GetPointer(0);
1729 double* weights = this->QuadratureWeights->GetPointer(0);
1730
1731 points[0] = 0.00298523728321;
1732 points[1] = 0.01566228055757;
1733 points[2] = 0.03819828824507;
1734 points[3] = 0.07013961906233;
1735 points[4] = 0.11083667332036;
1736 points[5] = 0.15946112944407;
1737 points[6] = 0.21502318535802;
1738 points[7] = 0.27639177909378;
1739 points[8] = 0.34231763295873;
1740 points[9] = 0.41145869156191;
1741 points[10] = 0.48240744461244;
1742 points[11] = 0.55371958072829;
1743 points[12] = 0.62394338972128;
1744 points[13] = 0.69164931501296;
1745 points[14] = 0.75545905444969;
1746 points[15] = 0.81407361651270;
1747 points[16] = 0.86629975897096;
1748 points[17] = 0.91107426580262;
1749 points[18] = 0.94748554440640;
1750 points[19] = 0.97479197566037;
1751 points[10] = 0.99243549072562;
1752
1753 weights[0] = 0.00763060590649;
1754 weights[1] = 0.01738792607614;
1755 weights[2] = 0.02628726008312;
1756 weights[3] = 0.03388679034430;
1757 weights[4] = 0.03984597757127;
1758 weights[5] = 0.04393557063501;
1759 weights[6] = 0.04605027072311;
1760 weights[7] = 0.04621255261088;
1761 weights[8] = 0.04456687468601;
1762 weights[9] = 0.04136476039687;
1763 weights[10] = 0.03694201264838;
1764 weights[11] = 0.03168995305003;
1765 weights[12] = 0.02602304679581;
1766 weights[13] = 0.02034554938976;
1767 weights[14] = 0.01501987261315;
1768 weights[15] = 0.01033920975794;
1769 weights[16] = 0.00650659742363;
1770 weights[17] = 0.00362205286973;
1771 weights[18] = 0.00167875602156;
1772 weights[19] = 0.00056849852670;
1773 weights[20] = 0.00009586186853;
1774
1775 break;
1776 }
1777 case 42:
1778 case 43:
1779 {
1780 this->QuadraturePoints->SetNumberOfTuples (22);
1781 this->QuadratureWeights->SetNumberOfTuples(22);
1782 double* points = this->QuadraturePoints->GetPointer(0);
1783 double* weights = this->QuadratureWeights->GetPointer(0);
1784
1785 points[0] = 0.00273144600888;
1786 points[1] = 0.01433593348370;
1787 points[2] = 0.03498632835122;
1788 points[3] = 0.06430264113216;
1789 points[4] = 0.10173934345216;
1790 points[5] = 0.14659920015767;
1791 points[6] = 0.19804660411818;
1792 points[7] = 0.25512320697169;
1793 points[8] = 0.31676578871045;
1794 points[9] = 0.38182606925675;
1795 points[10] = 0.44909210098682;
1796 points[11] = 0.51731084595099;
1797 points[12] = 0.58521151795130;
1798 points[13] = 0.65152925489581;
1799 points[14] = 0.71502868047476;
1800 points[15] = 0.77452691606482;
1801 points[16] = 0.82891561362173;
1802 points[17] = 0.87718159746542;
1803 points[18] = 0.91842572498985;
1804 points[19] = 0.95187959322972;
1805 points[20] = 0.97691966323713;
1806 points[21] = 0.99307748504435;
1807
1808 weights[0] = 0.00698425611365;
1809 weights[1] = 0.01594405345473;
1810 weights[2] = 0.02418423667181;
1811 weights[3] = 0.03132759699927;
1812 weights[4] = 0.03707705409308;
1813 weights[5] = 0.04122240490628;
1814 weights[6] = 0.04365120378616;
1815 weights[7] = 0.04435337090028;
1816 weights[8] = 0.04341875014528;
1817 weights[9] = 0.04102779578181;
1818 weights[10] = 0.03743611646681;
1819 weights[11] = 0.03295405878528;
1820 weights[12] = 0.02792287082335;
1821 weights[13] = 0.02268922859809;
1822 weights[14] = 0.01758001756010;
1823 weights[15] = 0.01287923028132;
1824 weights[16] = 0.00880867244008;
1825 weights[17] = 0.00551387510211;
1826 weights[18] = 0.00305621411314;
1827 weights[19] = 0.00141176685313;
1828 weights[20] = 0.00047692790566;
1829 weights[21] = 0.00008029821694;
1830
1831 break;
1832 }
1833 default:
1834 {
1835 vtkErrorMacro("Error: quadrature rule not supported.");
1836 return;
1837 }
1838 }
1839 }
1840 else if ((alpha == 2) && (beta == 0))
1841 {
1842 switch(this->Order)
1843 {
1844 case 0:
1845 case 1:
1846 {
1847 this->QuadraturePoints->SetNumberOfTuples (1);
1848 this->QuadratureWeights->SetNumberOfTuples(1);
1849 double* points = this->QuadraturePoints->GetPointer(0);
1850 double* weights = this->QuadratureWeights->GetPointer(0);
1851
1852 points[0] = 0.25000000000000;
1853
1854 weights[0] = 0.33333333333333;
1855
1856 break;
1857 }
1858 case 2:
1859 case 3:
1860 {
1861 this->QuadraturePoints->SetNumberOfTuples (2);
1862 this->QuadratureWeights->SetNumberOfTuples(2);
1863 double* points = this->QuadraturePoints->GetPointer(0);
1864 double* weights = this->QuadratureWeights->GetPointer(0);
1865
1866 points[0] = 0.12251482265544;
1867 points[1] = 0.54415184401123;
1868
1869 weights[0] = 0.23254745125351;
1870 weights[1] = 0.10078588207983;
1871
1872 break;
1873 }
1874 case 4:
1875 case 5:
1876 {
1877 this->QuadraturePoints->SetNumberOfTuples (3);
1878 this->QuadratureWeights->SetNumberOfTuples(3);
1879 double* points = this->QuadraturePoints->GetPointer(0);
1880 double* weights = this->QuadratureWeights->GetPointer(0);
1881
1882 points[0] = 0.07299402407315;
1883 points[1] = 0.34700376603835;
1884 points[2] = 0.70500220988850;
1885
1886 weights[0] = 0.15713636106489;
1887 weights[1] = 0.14624626925987;
1888 weights[2] = 0.02995070300858;
1889
1890 break;
1891 }
1892 case 6:
1893 case 7:
1894 {
1895 this->QuadraturePoints->SetNumberOfTuples (4);
1896 this->QuadratureWeights->SetNumberOfTuples(4);
1897 double* points = this->QuadraturePoints->GetPointer(0);
1898 double* weights = this->QuadratureWeights->GetPointer(0);
1899
1900 points[0] = 0.04850054944700;
1901 points[1] = 0.23860073755186;
1902 points[2] = 0.51704729510437;
1903 points[3] = 0.79585141789677;
1904
1905 weights[0] = 0.11088841561128;
1906 weights[1] = 0.14345878979921;
1907 weights[2] = 0.06863388717292;
1908 weights[3] = 0.01035224074992;
1909
1910 break;
1911 }
1912 case 8:
1913 case 9:
1914 {
1915 this->QuadraturePoints->SetNumberOfTuples (5);
1916 this->QuadratureWeights->SetNumberOfTuples(5);
1917 double* points = this->QuadraturePoints->GetPointer(0);
1918 double* weights = this->QuadratureWeights->GetPointer(0);
1919
1920 points[0] = 0.03457893991821;
1921 points[1] = 0.17348032077170;
1922 points[2] = 0.38988638706552;
1923 points[3] = 0.63433347263089;
1924 points[4] = 0.85105421294702;
1925
1926 weights[0] = 0.08176478428577;
1927 weights[1] = 0.12619896189991;
1928 weights[2] = 0.08920016122159;
1929 weights[3] = 0.03205560072296;
1930 weights[4] = 0.00411382520310;
1931
1932 break;
1933 }
1934 case 10:
1935 case 11:
1936 {
1937 this->QuadraturePoints->SetNumberOfTuples (6);
1938 this->QuadratureWeights->SetNumberOfTuples(6);
1939 double* points = this->QuadraturePoints->GetPointer(0);
1940 double* weights = this->QuadratureWeights->GetPointer(0);
1941
1942 points[0] = 0.02590455509367;
1943 points[1] = 0.13156394165798;
1944 points[2] = 0.30243691802289;
1945 points[3] = 0.50903641316475;
1946 points[4] = 0.71568112731171;
1947 points[5] = 0.88680561617756;
1948
1949 weights[0] = 0.06253870272658;
1950 weights[1] = 0.10737649973678;
1951 weights[2] = 0.09457718674854;
1952 weights[3] = 0.05128957112962;
1953 weights[4] = 0.01572029718495;
1954 weights[5] = 0.00183107580687;
1955
1956 break;
1957 }
1958 case 12:
1959 case 13:
1960 {
1961 this->QuadraturePoints->SetNumberOfTuples (7);
1962 this->QuadratureWeights->SetNumberOfTuples(7);
1963 double* points = this->QuadraturePoints->GetPointer(0);
1964 double* weights = this->QuadratureWeights->GetPointer(0);
1965
1966 points[0] = 0.02013277377340;
1967 points[1] = 0.10308902914805;
1968 points[2] = 0.24055412604806;
1969 points[3] = 0.41400214459706;
1970 points[4] = 0.60002151327899;
1971 points[5] = 0.77351724659144;
1972 points[6] = 0.91118316656300;
1973
1974 weights[0] = 0.04927650177644;
1975 weights[1] = 0.09069882461269;
1976 weights[2] = 0.09173380327980;
1977 weights[3] = 0.06314637870889;
1978 weights[4] = 0.02942221128953;
1979 weights[5] = 0.00816292563230;
1980 weights[6] = 0.00089268803369;
1981
1982 break;
1983 }
1984 case 14:
1985 case 15:
1986 {
1987 this->QuadraturePoints->SetNumberOfTuples (8);
1988 this->QuadratureWeights->SetNumberOfTuples(8);
1989 double* points = this->QuadraturePoints->GetPointer(0);
1990 double* weights = this->QuadratureWeights->GetPointer(0);
1991
1992 points[0] = 0.01609775955192;
1993 points[1] = 0.08290061748565;
1994 points[2] = 0.19547516848874;
1995 points[3] = 0.34165199147720;
1996 points[4] = 0.50559707818449;
1997 points[5] = 0.66955227182436;
1998 points[6] = 0.81577170358328;
1999 points[7] = 0.92850896495991;
2000
2001 weights[0] = 0.03977895780670;
2002 weights[1] = 0.07681809326722;
2003 weights[2] = 0.08528476917194;
2004 weights[3] = 0.06844718342165;
2005 weights[4] = 0.04081442638854;
2006 weights[5] = 0.01724686378023;
2007 weights[6] = 0.00447452171301;
2008 weights[7] = 0.00046851778403;
2009
2010 break;
2011 }
2012 case 16:
2013 case 17:
2014 {
2015 this->QuadraturePoints->SetNumberOfTuples (9);
2016 this->QuadratureWeights->SetNumberOfTuples(9);
2017 double* points = this->QuadraturePoints->GetPointer(0);
2018 double* weights = this->QuadratureWeights->GetPointer(0);
2019
2020 points[0] = 0.01316588559711;
2021 points[1] = 0.06808452959377;
2022 points[2] = 0.16175951676407;
2023 points[3] = 0.28589108833922;
2024 points[4] = 0.42945364538781;
2025 points[5] = 0.57969405635116;
2026 points[6] = 0.72326857174034;
2027 points[7] = 0.84743684201324;
2028 points[8] = 0.94124586421327;
2029
2030 weights[0] = 0.03276014511105;
2031 weights[1] = 0.06548953703338;
2032 weights[2] = 0.07767356916056;
2033 weights[3] = 0.06928439568980;
2034 weights[4] = 0.04854062786451;
2035 weights[5] = 0.02634328090255;
2036 weights[6] = 0.01040611657935;
2037 weights[7] = 0.00257439864561;
2038 weights[8] = 0.00026126234652;
2039
2040 break;
2041 }
2042 case 18:
2043 case 19:
2044 {
2045 this->QuadraturePoints->SetNumberOfTuples (10);
2046 this->QuadratureWeights->SetNumberOfTuples(10);
2047 double* points = this->QuadraturePoints->GetPointer(0);
2048 double* weights = this->QuadratureWeights->GetPointer(0);
2049
2050 points[0] = 0.01096845245617;
2051 points[1] = 0.05689815053366;
2052 points[2] = 0.13595023405023;
2053 points[3] = 0.24228119613252;
2054 points[4] = 0.36800785044934;
2055 points[5] = 0.50380712641487;
2056 points[6] = 0.63960948865471;
2057 points[7] = 0.76534767954811;
2058 points[8] = 0.87171007457441;
2059 points[9] = 0.95087429264052;
2060
2061 weights[0] = 0.02743408871016;
2062 weights[1] = 0.05627293640278;
2063 weights[2] = 0.07006950770867;
2064 weights[3] = 0.06745221938144;
2065 weights[4] = 0.05288378876696;
2066 weights[5] = 0.03385456501681;
2067 weights[6] = 0.01719757504655;
2068 weights[7] = 0.00646988906856;
2069 weights[8] = 0.00154552319474;
2070 weights[9] = 0.00015324003670;
2071
2072 break;
2073 }
2074 case 20:
2075 case 21:
2076 {
2077 this->QuadraturePoints->SetNumberOfTuples (11);
2078 this->QuadratureWeights->SetNumberOfTuples(11);
2079 double* points = this->QuadraturePoints->GetPointer(0);
2080 double* weights = this->QuadratureWeights->GetPointer(0);
2081
2082 points[0] = 0.00927897383134;
2083 points[1] = 0.04824969209430;
2084 points[2] = 0.11578862662939;
2085 points[3] = 0.20766834159706;
2086 points[4] = 0.31811795190623;
2087 points[5] = 0.44019839985886;
2088 points[6] = 0.56623983915457;
2089 points[7] = 0.68832423986296;
2090 points[8] = 0.79878435859091;
2091 points[9] = 0.89069109935439;
2092 points[10] = 0.95832514378665;
2093
2094 weights[0] = 0.02330085005155;
2095 weights[1] = 0.04874586103051;
2096 weights[2] = 0.06297954300041;
2097 weights[3] = 0.06418355934975;
2098 weights[4] = 0.05463222232105;
2099 weights[5] = 0.03929021779844;
2100 weights[6] = 0.02358966353881;
2101 weights[7] = 0.01141459091810;
2102 weights[8] = 0.00414000426322;
2103 weights[9] = 0.00096302057554;
2104 weights[10] = 0.00009380048601;
2105
2106 break;
2107 }
2108 case 22:
2109 case 23:
2110 {
2111 this->QuadraturePoints->SetNumberOfTuples (12);
2112 this->QuadratureWeights->SetNumberOfTuples(12);
2113 double* points = this->QuadraturePoints->GetPointer(0);
2114 double* weights = this->QuadratureWeights->GetPointer(0);
2115
2116 points[0] = 0.00795204570266;
2117 points[1] = 0.04142781045426;
2118 points[2] = 0.09975762554264;
2119 points[3] = 0.17981078905241;
2120 points[4] = 0.27727345779932;
2121 points[5] = 0.38689200999769;
2122 points[6] = 0.50275736044903;
2123 points[7] = 0.61862386345846;
2124 points[8] = 0.72824645295307;
2125 points[9] = 0.82571851421479;
2126 points[10] = 0.90579507354454;
2127 points[11] = 0.96420653529267;
2128
2129 weights[0] = 0.02003111258445;
2130 weights[1] = 0.04255661536742;
2131 weights[2] = 0.05658418474943;
2132 weights[3] = 0.06025060748762;
2133 weights[4] = 0.05457394116423;
2134 weights[5] = 0.04276476357019;
2135 weights[6] = 0.02890805183873;
2136 weights[7] = 0.01654734364461;
2137 weights[8] = 0.00771636702389;
2138 weights[9] = 0.00272084214410;
2139 weights[10] = 0.00061995339854;
2140 weights[11] = 0.00005955035981;
2141
2142 break;
2143 }
2144 case 24:
2145 case 25:
2146 {
2147 this->QuadraturePoints->SetNumberOfTuples (13);
2148 this->QuadratureWeights->SetNumberOfTuples(13);
2149 double* points = this->QuadraturePoints->GetPointer(0);
2150 double* weights = this->QuadratureWeights->GetPointer(0);
2151
2152 points[0] = 0.00689083130996;
2153 points[1] = 0.03595336270017;
2154 points[2] = 0.08681178015759;
2155 points[3] = 0.15709997419651;
2156 points[4] = 0.24353289958713;
2157 points[5] = 0.34206951264608;
2158 points[6] = 0.44810263890571;
2159 points[7] = 0.55667462262945;
2160 points[8] = 0.66270931356039;
2161 points[9] = 0.76124976630828;
2162 points[10] = 0.84769104394723;
2163 points[11] = 0.91799964553721;
2164 points[12] = 0.96892889422859;
2165
2166 weights[0] = 0.01740122861003;
2167 weights[1] = 0.03742670816877;
2168 weights[2] = 0.05090983071260;
2169 weights[3] = 0.05611153713072;
2170 weights[4] = 0.05334002160577;
2171 weights[5] = 0.04462460075553;
2172 weights[6] = 0.03294045167837;
2173 weights[7] = 0.02125499671472;
2174 weights[8] = 0.01172825959308;
2175 weights[9] = 0.00531356933882;
2176 weights[10] = 0.00183239113924;
2177 weights[11] = 0.00041072089179;
2178 weights[12] = 0.00003901699326;
2179
2180 break;
2181 }
2182 case 26:
2183 case 27:
2184 {
2185 this->QuadraturePoints->SetNumberOfTuples (14);
2186 this->QuadratureWeights->SetNumberOfTuples(14);
2187 double* points = this->QuadraturePoints->GetPointer(0);
2188 double* weights = this->QuadratureWeights->GetPointer(0);
2189
2190 points[0] = 0.00602880887107;
2191 points[1] = 0.03149425981866;
2192 points[2] = 0.07621362247485;
2193 points[3] = 0.13836652595947;
2194 points[4] = 0.21540975706890;
2195 points[5] = 0.30418952814166;
2196 points[6] = 0.40107137869715;
2197 points[7] = 0.50208913974998;
2198 points[8] = 0.60310739672760;
2199 points[9] = 0.69999091716991;
2200 points[10] = 0.78877423843456;
2201 points[11] = 0.86582490073160;
2202 points[12] = 0.92799573874675;
2203 points[13] = 0.97277712074118;
2204
2205 weights[0] = 0.01525520611942;
2206 weights[1] = 0.03313959546989;
2207 weights[2] = 0.04591477211457;
2208 weights[3] = 0.05202586541059;
2209 weights[4] = 0.05138992403936;
2210 weights[5] = 0.04525343225437;
2211 weights[6] = 0.03573901029244;
2212 weights[7] = 0.02521618353679;
2213 weights[8] = 0.01569433228504;
2214 weights[9] = 0.00841297673712;
2215 weights[10] = 0.00372487567527;
2216 weights[11] = 0.00126178389515;
2217 weights[12] = 0.00027909934095;
2218 weights[13] = 0.00002627616167;
2219
2220 break;
2221 }
2222 case 28:
2223 case 29:
2224 {
2225 this->QuadraturePoints->SetNumberOfTuples (15);
2226 this->QuadratureWeights->SetNumberOfTuples(15);
2227 double* points = this->QuadraturePoints->GetPointer(0);
2228 double* weights = this->QuadratureWeights->GetPointer(0);
2229
2230 points[0] = 0.00531905200284;
2231 points[1] = 0.02781456191826;
2232 points[2] = 0.06743186583900;
2233 points[3] = 0.12274828621550;
2234 points[4] = 0.19176570627765;
2235 points[5] = 0.27198996592949;
2236 points[6] = 0.36052169358706;
2237 points[7] = 0.45416123575448;
2238 points[8] = 0.54952435559355;
2239 points[9] = 0.64316460176878;
2240 points[10] = 0.73169797305252;
2241 points[11] = 0.81192547727501;
2242 points[12] = 0.88094952871531;
2243 points[13] = 0.93628182173552;
2244 points[14] = 0.97595387433502;
2245
2246 weights[0] = 0.01348166272510;
2247 weights[1] = 0.02952765075673;
2248 weights[2] = 0.04153130765151;
2249 weights[3] = 0.04813205766842;
2250 weights[4] = 0.04904126789430;
2251 weights[5] = 0.04499155582051;
2252 weights[6] = 0.03747387579201;
2253 weights[7] = 0.02832655317418;
2254 weights[8] = 0.01929341658523;
2255 weights[9] = 0.01166858248475;
2256 weights[10] = 0.00611105011019;
2257 weights[11] = 0.00265566298577;
2258 weights[12] = 0.00088657363523;
2259 weights[13] = 0.00019398726306;
2260 weights[14] = 0.00001812878557;
2261
2262 break;
2263 }
2264 case 30:
2265 case 31:
2266 {
2267 this->QuadraturePoints->SetNumberOfTuples (16);
2268 this->QuadratureWeights->SetNumberOfTuples(16);
2269 double* points = this->QuadraturePoints->GetPointer(0);
2270 double* weights = this->QuadratureWeights->GetPointer(0);
2271
2272 points[0] = 0.00472768712293;
2273 points[1] = 0.02474296761943;
2274 points[2] = 0.06007643771664;
2275 points[3] = 0.10960060925877;
2276 points[4] = 0.17172475948300;
2277 points[5] = 0.24445243174451;
2278 points[6] = 0.32544621002413;
2279 points[7] = 0.41210296411686;
2280 points[8] = 0.50163755615319;
2281 points[9] = 0.59117238531650;
2282 points[10] = 0.67782991741456;
2283 points[11] = 0.75882525794914;
2284 points[12] = 0.83155588302646;
2285 points[13] = 0.89368597454880;
2286 points[14] = 0.94322428571225;
2287 points[15] = 0.97860643749870;
2288
2289 weights[0] = 0.01199940562466;
2290 weights[1] = 0.02646084251727;
2291 weights[2] = 0.03768582468182;
2292 weights[3] = 0.04449657347243;
2293 weights[4] = 0.04650623939725;
2294 weights[5] = 0.04411265767579;
2295 weights[6] = 0.03834804695109;
2296 weights[7] = 0.03061203791776;
2297 weights[8] = 0.02235718564947;
2298 weights[9] = 0.01480377665771;
2299 weights[10] = 0.00874754549559;
2300 weights[11] = 0.00449484885147;
2301 weights[12] = 0.00192353192606;
2302 weights[13] = 0.00063445999957;
2303 weights[14] = 0.00013757810398;
2304 weights[15] = 0.00001277841057;
2305
2306 break;
2307 }
2308 case 32:
2309 case 33:
2310 {
2311 this->QuadraturePoints->SetNumberOfTuples (17);
2312 this->QuadratureWeights->SetNumberOfTuples(17);
2313 double* points = this->QuadraturePoints->GetPointer(0);
2314 double* weights = this->QuadratureWeights->GetPointer(0);
2315
2316 points[0] = 0.00422976548649;
2317 points[1] = 0.02215270531183;
2318 points[2] = 0.05385601482718;
2319 points[3] = 0.09843493683054;
2320 points[4] = 0.15460792826589;
2321 points[5] = 0.22075922519215;
2322 points[6] = 0.29498586629802;
2323 points[7] = 0.37515254164082;
2324 points[8] = 0.45895305335302;
2325 points[9] = 0.54397667809048;
2326 points[10] = 0.62777753854681;
2327 points[11] = 0.70794500138509;
2328 points[12] = 0.78217310308122;
2329 points[13] = 0.84832708570995;
2330 points[14] = 0.90450542331433;
2331 points[15] = 0.94909701659654;
2332 points[16] = 0.98084389384741;
2333
2334 weights[0] = 0.01074815103074;
2335 weights[1] = 0.02383776201864;
2336 weights[2] = 0.03430788979558;
2337 weights[3] = 0.04114397584696;
2338 weights[4] = 0.04392261877247;
2339 weights[5] = 0.04282540392782;
2340 weights[6] = 0.03855524194700;
2341 weights[7] = 0.03216357011229;
2342 weights[8] = 0.02482925611191;
2343 weights[9] = 0.01763878933100;
2344 weights[10] = 0.01141364223861;
2345 weights[11] = 0.00661641976034;
2346 weights[12] = 0.00334651729181;
2347 weights[13] = 0.00141388375895;
2348 weights[14] = 0.00046167405878;
2349 weights[15] = 0.00009935652534;
2350 weights[16] = 0.00000918080420;
2351
2352 break;
2353 }
2354 case 34:
2355 case 35:
2356 {
2357 this->QuadraturePoints->SetNumberOfTuples (18);
2358 this->QuadratureWeights->SetNumberOfTuples(18);
2359 double* points = this->QuadraturePoints->GetPointer(0);
2360 double* weights = this->QuadratureWeights->GetPointer(0);
2361
2362 points[0] = 0.00380658224750;
2363 points[1] = 0.01994835104734;
2364 points[2] = 0.04854964530422;
2365 points[3] = 0.08887625911650;
2366 points[4] = 0.13988457083517;
2367 points[5] = 0.20025369592363;
2368 points[6] = 0.26842018278660;
2369 points[7] = 0.34261859780201;
2370 points[8] = 0.42092727587032;
2371 points[9] = 0.50131810275027;
2372 points[10] = 0.58170905267092;
2373 points[11] = 0.66001812722532;
2374 points[12] = 0.73421730813501;
2375 points[13] = 0.80238514983642;
2376 points[14] = 0.86275672070006;
2377 points[15] = 0.91376986411079;
2378 points[16] = 0.95410789551732;
2379 points[17] = 0.98274840759429;
2380
2381 weights[0] = 0.00968239880373;
2382 weights[1] = 0.02157877267913;
2383 weights[2] = 0.03133390767164;
2384 weights[3] = 0.03807513425334;
2385 weights[4] = 0.04137718228740;
2386 weights[5] = 0.04128366580984;
2387 weights[6] = 0.03826279467224;
2388 weights[7] = 0.03309597620198;
2389 weights[8] = 0.02672342436888;
2390 weights[9] = 0.02007864169631;
2391 weights[10] = 0.01394389765361;
2392 weights[11] = 0.00885227822507;
2393 weights[12] = 0.00505024878834;
2394 weights[13] = 0.00252072163843;
2395 weights[14] = 0.00105355028395;
2396 weights[15] = 0.00034109120369;
2397 weights[16] = 0.00007293700866;
2398 weights[17] = 0.00000671008612;
2399
2400 break;
2401 }
2402 case 36:
2403 case 37:
2404 {
2405 this->QuadraturePoints->SetNumberOfTuples (19);
2406 this->QuadratureWeights->SetNumberOfTuples(19);
2407 double* points = this->QuadraturePoints->GetPointer(0);
2408 double* weights = this->QuadratureWeights->GetPointer(0);
2409
2410 points[0] = 0.00344389040386;
2411 points[1] = 0.01805697833790;
2412 points[2] = 0.04398739509084;
2413 points[3] = 0.08063327636666;
2414 points[4] = 0.12713640986156;
2415 points[5] = 0.18240698366909;
2416 points[6] = 0.24514956909517;
2417 points[7] = 0.31389356741822;
2418 points[8] = 0.38702770276933;
2419 points[9] = 0.46283779855202;
2420 points[10] = 0.53954696279209;
2421 points[11] = 0.61535724480455;
2422 points[12] = 0.68849179091409;
2423 points[13] = 0.75723651917330;
2424 points[14] = 0.81998035706324;
2425 points[15] = 0.87525316298383;
2426 points[16] = 0.92176068172914;
2427 points[17] = 0.95841690242341;
2428 points[18] = 0.98438280655170;
2429
2430 weights[0] = 0.00876729705685;
2431 weights[1] = 0.01962085634017;
2432 weights[2] = 0.02870814977862;
2433 weights[3] = 0.03527811719937;
2434 weights[4] = 0.03892238622215;
2435 weights[5] = 0.03959824821476;
2436 weights[6] = 0.03760750052024;
2437 weights[7] = 0.03352506807051;
2438 weights[8] = 0.02809160793602;
2439 weights[9] = 0.02209056314976;
2440 weights[10] = 0.01623181532195;
2441 weights[11] = 0.01106144062900;
2442 weights[12] = 0.00691081107791;
2443 weights[13] = 0.00388978481254;
2444 weights[14] = 0.00191978847269;
2445 weights[15] = 0.00079504432545;
2446 weights[16] = 0.00025553085889;
2447 weights[17] = 0.00005434264313;
2448 weights[18] = 0.00000498070233;
2449
2450 break;
2451 }
2452 case 38:
2453 case 39:
2454 {
2455 this->QuadraturePoints->SetNumberOfTuples (20);
2456 this->QuadratureWeights->SetNumberOfTuples(20);
2457 double* points = this->QuadraturePoints->GetPointer(0);
2458 double* weights = this->QuadratureWeights->GetPointer(0);
2459
2460 points[0] = 0.00313068374074;
2461 points[1] = 0.01642208813399;
2462 points[2] = 0.04003690046191;
2463 points[3] = 0.07347719178529;
2464 points[4] = 0.11603090765549;
2465 points[5] = 0.16679125348101;
2466 points[6] = 0.22467641938431;
2467 points[7] = 0.28845271218127;
2468 points[8] = 0.35676087010245;
2469 points[9] = 0.42814504093326;
2470 points[10] = 0.50108381548285;
2471 points[11] = 0.57402265818283;
2472 points[12] = 0.64540704577737;
2473 points[13] = 0.71371561101529;
2474 points[14] = 0.77749259203549;
2475 points[15] = 0.83537891463156;
2476 points[16] = 0.88614130291455;
2477 points[17] = 0.92869901491875;
2478 points[18] = 0.96214871215050;
2479 points[19] = 0.98579578884064;
2480
2481 weights[0] = 0.00797579273624;
2482 weights[1] = 0.01791375232568;
2483 weights[2] = 0.02638256442904;
2484 weights[3] = 0.03273464431747;
2485 weights[4] = 0.03658791655311;
2486 weights[5] = 0.03784739037681;
2487 weights[6] = 0.03669742047191;
2488 weights[7] = 0.03355643145337;
2489 weights[8] = 0.02900240474550;
2490 weights[9] = 0.02368229041417;
2491 weights[10] = 0.01822050341821;
2492 weights[11] = 0.01314091925662;
2493 weights[12] = 0.00881355607822;
2494 weights[13] = 0.00543209080611;
2495 weights[14] = 0.00302248917090;
2496 weights[15] = 0.00147744444197;
2497 weights[16] = 0.00060704570427;
2498 weights[17] = 0.00019388830962;
2499 weights[18] = 0.00004103910209;
2500 weights[19] = 0.00000374922099;
2501
2502 break;
2503 }
2504 case 40:
2505 case 41:
2506 {
2507 this->QuadraturePoints->SetNumberOfTuples (21);
2508 this->QuadratureWeights->SetNumberOfTuples(21);
2509 double* points = this->QuadraturePoints->GetPointer(0);
2510 double* weights = this->QuadratureWeights->GetPointer(0);
2511
2512 points[0] = 0.00285835060009;
2513 points[1] = 0.01499936497208;
2514 points[2] = 0.03659386328114;
2515 points[3] = 0.06722644166794;
2516 points[4] = 0.10630147973769;
2517 points[5] = 0.15305857495572;
2518 points[6] = 0.20658770608253;
2519 points[7] = 0.26584701401082;
2520 points[8] = 0.32968309899010;
2521 points[9] = 0.39685347698562;
2522 points[10] = 0.46605076663517;
2523 points[11] = 0.53592813869303;
2524 points[12] = 0.60512553397610;
2525 points[13] = 0.67229614098693;
2526 points[14] = 0.73613262059729;
2527 points[15] = 0.79539257374613;
2528 points[16] = 0.84892277353769;
2529 points[17] = 0.89568174292547;
2530 points[18] = 0.93476043640123;
2531 points[19] = 0.96540160736574;
2532 points[20] = 0.98702556657876;
2533
2534 weights[0] = 0.00728663173133;
2535 weights[1] = 0.01641706114419;
2536 weights[2] = 0.02431607495623;
2537 weights[3] = 0.03042385465478;
2538 weights[4] = 0.03438855355052;
2539 weights[5] = 0.03608527738478;
2540 weights[6] = 0.03561594477458;
2541 weights[7] = 0.03328104676273;
2542 weights[8] = 0.02952807270199;
2543 weights[9] = 0.02488508387518;
2544 weights[10] = 0.01988978006629;
2545 weights[11] = 0.01502452804187;
2546 weights[12] = 0.01066627036547;
2547 weights[13] = 0.00705732097434;
2548 weights[14] = 0.00429931006420;
2549 weights[15] = 0.00236862153460;
2550 weights[16] = 0.00114824142071;
2551 weights[17] = 0.00046857361253;
2552 weights[18] = 0.00014884999899;
2553 weights[19] = 0.00003137723340;
2554 weights[20] = 0.00000285848355;
2555
2556 break;
2557 }
2558 case 42:
2559 case 43:
2560 {
2561 this->QuadraturePoints->SetNumberOfTuples (22);
2562 this->QuadratureWeights->SetNumberOfTuples(22);
2563 double* points = this->QuadraturePoints->GetPointer(0);
2564 double* weights = this->QuadratureWeights->GetPointer(0);
2565
2566 points[0] = 0.00262007472037;
2567 points[1] = 0.01375365798739;
2568 points[2] = 0.03357522684803;
2569 points[3] = 0.06173556162307;
2570 points[4] = 0.09773269667537;
2571 points[5] = 0.14092439775695;
2572 points[6] = 0.19053995518422;
2573 points[7] = 0.24569399962450;
2574 points[8] = 0.30540231844260;
2575 points[9] = 0.36859942495594;
2576 points[10] = 0.43415757484016;
2577 points[11] = 0.50090689264794;
2578 points[12] = 0.56765625027261;
2579 points[13] = 0.63321452557266;
2580 points[14] = 0.69641186298595;
2581 points[15] = 0.75612055917893;
2582 points[16] = 0.81127520683922;
2583 points[17] = 0.86089175276287;
2584 points[18] = 0.90408517849775;
2585 points[19] = 0.94008566921082;
2586 points[20] = 0.96825388381656;
2587 points[21] = 0.98810245999088;
2588
2589 weights[0] = 0.00668293152387;
2590 weights[1] = 0.01509806242157;
2591 weights[2] = 0.02247371373445;
2592 weights[3] = 0.02832445802520;
2593 weights[4] = 0.03232947395276;
2594 weights[5] = 0.03434859966431;
2595 weights[6] = 0.03442630982802;
2596 weights[7] = 0.03277458690039;
2597 weights[8] = 0.02973733662833;
2598 weights[9] = 0.02574182123471;
2599 weights[10] = 0.02124416781346;
2600 weights[11] = 0.01667648237965;
2601 weights[12] = 0.01240245351092;
2602 weights[13] = 0.00868669847385;
2603 weights[14] = 0.00568076838491;
2604 weights[15] = 0.00342606852096;
2605 weights[16] = 0.00187138795325;
2606 weights[17] = 0.00090066625279;
2607 weights[18] = 0.00036536328467;
2608 weights[19] = 0.00011551470918;
2609 weights[20] = 0.00002426317792;
2610 weights[21] = 0.00000220495706;
2611
2612 break;
2613 }
2614 default:
2615 {
2616 vtkErrorMacro("Quadrature rule not supported.");
2617 return;
2618 }
2619 }
2620 }
2621 else
2622 {
2623 vtkErrorMacro("Unsupported combination of Alpha and Beta.");
2624 return;
2625 }
2626}

◆ ScaleTo01()

void vtkvmtkGaussQuadrature::ScaleTo01 ( )

Rescale a 1D quadrature rule (points and weights) from the reference interval [-1,1] to [0,1].

Definition at line 209 of file vtkvmtkGaussQuadrature.cxx.

210{
211 if (this->QuadraturePoints->GetNumberOfComponents() != 1)
212 {
213 vtkErrorMacro("Error: scaling assumes Dimensionality == 1.");
214 return;
215 }
216
217 double point[1];
218 double weight;
219 int numberOfQuadraturePoints = this->GetNumberOfQuadraturePoints();
220 int i;
221 for (i=0; i<numberOfQuadraturePoints; i++)
222 {
223 this->QuadraturePoints->GetTuple(i,point);
224 point[0] = 0.5 * (point[0] + 1.0);
225 this->QuadraturePoints->SetTuple(i,point);
226
227 weight = this->QuadratureWeights->GetValue(i);
228 weight *= 0.5;
229 this->QuadratureWeights->SetValue(i,weight);
230 }
231}

◆ TensorProductQuad()

void vtkvmtkGaussQuadrature::TensorProductQuad ( vtkvmtkGaussQuadrature * q1D)
protected

Definition at line 2628 of file vtkvmtkGaussQuadrature.cxx.

2629{
2630 int numberOf1DQuadraturePoints = q1D->GetNumberOfQuadraturePoints();
2631
2632 this->QuadraturePoints->SetNumberOfComponents(2);
2633 this->QuadraturePoints->SetNumberOfTuples(numberOf1DQuadraturePoints * numberOf1DQuadraturePoints);
2634 this->QuadratureWeights->SetNumberOfTuples(numberOf1DQuadraturePoints * numberOf1DQuadraturePoints);
2635
2636 double point[3];
2637 double weight;
2638 int id;
2639 int i, j;
2640 for (j=0; j<numberOf1DQuadraturePoints; j++)
2641 {
2642 for (i=0; i<numberOf1DQuadraturePoints; i++)
2643 {
2644 id = j * numberOf1DQuadraturePoints + i;
2645
2646 point[0] = q1D->GetQuadraturePoint(i)[0];
2647 point[1] = q1D->GetQuadraturePoint(j)[0];
2648 point[2] = 0.0;
2649
2650 weight = q1D->GetQuadratureWeight(i) * q1D->GetQuadratureWeight(j);
2651
2652 this->QuadraturePoints->SetTuple(id,point);
2653 this->QuadratureWeights->SetValue(id,weight);
2654 }
2655 }
2656}
double * GetQuadraturePoint(vtkIdType id)
double GetQuadratureWeight(vtkIdType id)

◆ TensorProductTriangle()

void vtkvmtkGaussQuadrature::TensorProductTriangle ( vtkvmtkGaussQuadrature * gauss1D,
vtkvmtkGaussQuadrature * jacA1D )
protected

Definition at line 2658 of file vtkvmtkGaussQuadrature.cxx.

2659{
2660 if (gauss1D->GetNumberOfQuadraturePoints() != jacA1D->GetNumberOfQuadraturePoints())
2661 {
2662 vtkErrorMacro("Error: cannot build tensor product rule if rules have different order.");
2663 }
2664
2665 int numberOf1DQuadraturePoints = gauss1D->GetNumberOfQuadraturePoints();
2666
2667 this->QuadraturePoints->SetNumberOfComponents(2);
2668 this->QuadraturePoints->SetNumberOfTuples(numberOf1DQuadraturePoints * numberOf1DQuadraturePoints);
2669 this->QuadratureWeights->SetNumberOfTuples(numberOf1DQuadraturePoints * numberOf1DQuadraturePoints);
2670
2671 double point[2];
2672 double weight;
2673 int id;
2674 int i, j;
2675 for (j=0; j<numberOf1DQuadraturePoints; j++)
2676 {
2677 for (i=0; i<numberOf1DQuadraturePoints; i++)
2678 {
2679 id = j * numberOf1DQuadraturePoints + i;
2680
2681 point[0] = jacA1D->GetQuadraturePoint(j)[0];
2682 point[1] = gauss1D->GetQuadraturePoint(i)[0] * (1.0 - jacA1D->GetQuadraturePoint(j)[0]);
2683
2684 weight = gauss1D->GetQuadratureWeight(i) * jacA1D->GetQuadratureWeight(j);
2685
2686 this->QuadraturePoints->SetTuple(id,point);
2687 this->QuadratureWeights->SetValue(id,weight);
2688 }
2689 }
2690}

◆ TensorProductHexahedron()

void vtkvmtkGaussQuadrature::TensorProductHexahedron ( vtkvmtkGaussQuadrature * q1D)
protected

Definition at line 2692 of file vtkvmtkGaussQuadrature.cxx.

2693{
2694 int numberOf1DQuadraturePoints = q1D->GetNumberOfQuadraturePoints();
2695
2696 this->QuadraturePoints->SetNumberOfComponents(3);
2697 this->QuadraturePoints->SetNumberOfTuples(numberOf1DQuadraturePoints * numberOf1DQuadraturePoints * numberOf1DQuadraturePoints);
2698 this->QuadratureWeights->SetNumberOfTuples(numberOf1DQuadraturePoints * numberOf1DQuadraturePoints * numberOf1DQuadraturePoints);
2699
2700 double point[3];
2701 double weight;
2702 int id;
2703 int i, j, k;
2704 for (k=0; k<numberOf1DQuadraturePoints; k++)
2705 {
2706 for (j=0; j<numberOf1DQuadraturePoints; j++)
2707 {
2708 for (i=0; i<numberOf1DQuadraturePoints; i++)
2709 {
2710 id = k * numberOf1DQuadraturePoints * numberOf1DQuadraturePoints + j * numberOf1DQuadraturePoints + i;
2711
2712 point[0] = q1D->GetQuadraturePoint(i)[0];
2713 point[1] = q1D->GetQuadraturePoint(j)[0];
2714 point[2] = q1D->GetQuadraturePoint(k)[0];
2715
2716 weight = q1D->GetQuadratureWeight(i) * q1D->GetQuadratureWeight(j) * q1D->GetQuadratureWeight(k);
2717
2718 this->QuadraturePoints->SetTuple(id,point);
2719 this->QuadratureWeights->SetValue(id,weight);
2720 }
2721 }
2722 }
2723}

◆ TensorProductWedge()

void vtkvmtkGaussQuadrature::TensorProductWedge ( vtkvmtkGaussQuadrature * q1D,
vtkvmtkGaussQuadrature * q2D )
protected

Definition at line 2725 of file vtkvmtkGaussQuadrature.cxx.

2726{
2727 int numberOf1DQuadraturePoints = q1D->GetNumberOfQuadraturePoints();
2728 int numberOf2DQuadraturePoints = q2D->GetNumberOfQuadraturePoints();
2729
2730 this->QuadraturePoints->SetNumberOfComponents(3);
2731 this->QuadraturePoints->SetNumberOfTuples(numberOf1DQuadraturePoints * numberOf2DQuadraturePoints);
2732 this->QuadratureWeights->SetNumberOfTuples(numberOf1DQuadraturePoints * numberOf2DQuadraturePoints);
2733
2734 double point[3];
2735 double weight;
2736 int id;
2737 int i, j;
2738 for (j=0; j<numberOf1DQuadraturePoints; j++)
2739 {
2740 for (i=0; i<numberOf2DQuadraturePoints; i++)
2741 {
2742 id = j * numberOf2DQuadraturePoints + i;
2743
2744 point[0] = q2D->GetQuadraturePoint(i)[0];
2745 point[1] = q2D->GetQuadraturePoint(i)[1];
2746 point[2] = q1D->GetQuadraturePoint(j)[0];
2747
2748 weight = q2D->GetQuadratureWeight(i) * q1D->GetQuadratureWeight(j);
2749
2750 this->QuadraturePoints->SetTuple(id,point);
2751 this->QuadratureWeights->SetValue(id,weight);
2752 }
2753 }
2754}

◆ TensorProductTetra()

void vtkvmtkGaussQuadrature::TensorProductTetra ( vtkvmtkGaussQuadrature * gauss1D,
vtkvmtkGaussQuadrature * jacA1D,
vtkvmtkGaussQuadrature * jacB1D )
protected

Definition at line 2756 of file vtkvmtkGaussQuadrature.cxx.

2757{
2758 if (gauss1D->GetNumberOfQuadraturePoints() != jacA1D->GetNumberOfQuadraturePoints())
2759 {
2760 vtkErrorMacro("Error: cannot build tensor product rule if rules have different order.");
2761 }
2762
2764 {
2765 vtkErrorMacro("Error: cannot build tensor product rule if rules have different order.");
2766 }
2767
2768 int numberOf1DQuadraturePoints = gauss1D->GetNumberOfQuadraturePoints();
2769
2770 this->QuadraturePoints->SetNumberOfComponents(3);
2771 this->QuadraturePoints->SetNumberOfTuples(numberOf1DQuadraturePoints * numberOf1DQuadraturePoints * numberOf1DQuadraturePoints);
2772 this->QuadratureWeights->SetNumberOfTuples(numberOf1DQuadraturePoints * numberOf1DQuadraturePoints * numberOf1DQuadraturePoints);
2773
2774 double point[3];
2775 double weight;
2776 int id;
2777 int i, j, k;
2778 for (k=0; k<numberOf1DQuadraturePoints; k++)
2779 {
2780 for (j=0; j<numberOf1DQuadraturePoints; j++)
2781 {
2782 for (i=0; i<numberOf1DQuadraturePoints; i++)
2783 {
2784 id = k * numberOf1DQuadraturePoints * numberOf1DQuadraturePoints + j * numberOf1DQuadraturePoints + i;
2785
2786 point[0] = jacB1D->GetQuadraturePoint(k)[0];
2787 point[1] = jacA1D->GetQuadraturePoint(j)[0] * (1.0 - jacB1D->GetQuadraturePoint(k)[0]);
2788 point[2] = gauss1D->GetQuadraturePoint(i)[0] * (1.0 - jacA1D->GetQuadraturePoint(j)[0]) * (1.0 - jacB1D->GetQuadraturePoint(k)[0]);
2789
2790 weight = gauss1D->GetQuadratureWeight(i) * jacA1D->GetQuadratureWeight(j) * jacB1D->GetQuadratureWeight(k);
2791
2792 this->QuadraturePoints->SetTuple(id,point);
2793 this->QuadratureWeights->SetValue(id,weight);
2794 }
2795 }
2796 }
2797}

Member Data Documentation

◆ QuadraturePoints

vtkDoubleArray* vtkvmtkGaussQuadrature::QuadraturePoints
protected

Definition at line 160 of file vtkvmtkGaussQuadrature.h.

◆ QuadratureWeights

vtkDoubleArray* vtkvmtkGaussQuadrature::QuadratureWeights
protected

Definition at line 161 of file vtkvmtkGaussQuadrature.h.

◆ Order

int vtkvmtkGaussQuadrature::Order
protected

Definition at line 163 of file vtkvmtkGaussQuadrature.h.

◆ QuadratureType

int vtkvmtkGaussQuadrature::QuadratureType
protected

Definition at line 164 of file vtkvmtkGaussQuadrature.h.

◆ CellType

vtkIdType vtkvmtkGaussQuadrature::CellType
protected

Definition at line 165 of file vtkvmtkGaussQuadrature.h.

◆ PreviousOrder

int vtkvmtkGaussQuadrature::PreviousOrder
protected

Definition at line 166 of file vtkvmtkGaussQuadrature.h.


The documentation for this class was generated from the following files: