IFEM  90A354
Functions | Variables
TriangleQuadrature.C File Reference

Triangle quadrature rules. More...

#include "TriangleQuadrature.h"
#include <iostream>
Include dependency graph for TriangleQuadrature.C:

Functions

const double * error (int n)
 Prints an error message for non-supported quadrature rules.
 

Variables

static const double T1 [2] = { 0.3333333333333333, 0.3333333333333333 }
 1-point rule coordinates.
 
static const double W1 [1] = { 1.0 }
 1-point rule weights.
 
static const double T3 [6]
 3-point rule coordinates. More...
 
static const double W3 [3]
 3-point rule weights. More...
 
static const double T4 [8]
 4-point rule coordinates. More...
 
static const double W4 [4]
 4-point rule weights. More...
 

Detailed Description

Triangle quadrature rules.

Date
Feb 07 2017
Author
Knut Morten Okstad / SINTEF

Variable Documentation

◆ T3

const double T3[6]
static
Initial value:
= {
0.5, 0.5,
0.5, 0.5,
0.0, 0.5
}

3-point rule coordinates.

Referenced by TriangleQuadrature::getCoord().

◆ T4

const double T4[8]
static
Initial value:
= {
0.3333333333333333, 0.3333333333333333,
0.6, 0.2,
0.2, 0.6,
0.2, 0.2
}

4-point rule coordinates.

Referenced by TriangleQuadrature::getCoord().

◆ W3

const double W3[3]
static
Initial value:
= {
0.3333333333333333,
0.3333333333333333,
0.3333333333333333
}

3-point rule weights.

Referenced by TriangleQuadrature::getWeight().

◆ W4

const double W4[4]
static
Initial value:
= {
-0.5625,
0.5208333333333333,
0.5208333333333333,
0.5208333333333333,
}

4-point rule weights.

Referenced by TriangleQuadrature::getWeight().