Quadrature.h
Go to the documentation of this file.
/*****************************************************************************
*
* Copyright (c) 2003-2020 by The University of Queensland
* http://www.uq.edu.au
*
* Primary Business: Queensland, Australia
* Licensed under the Apache License, version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Development until 2012 by Earth Systems Science Computational Center (ESSCC)
* Development 2012-2013 by School of Earth Sciences
* Development from 2014-2017 by Centre for Geoscience Computing (GeoComp)
* Development from 2019 by School of Earth and Environmental Sciences
**
*****************************************************************************/
/****************************************************************************
Finley: integration schemes for element shapes Tri, Quad, Hex, Tet, Line,
Point
*****************************************************************************/
#ifndef __FINLEY_QUADRATURE_H__
#define __FINLEY_QUADRATURE_H__
#include "Finley.h"
#define MAX_numQuadNodesLine 10
namespace finley {
typedef enum {
PointQuad,
LineQuad,
TriQuad,
RecQuad,
TetQuad,
HexQuad,
NoQuad // marks end of list
} QuadTypeId;
typedef void (Quad_getNodes) (int, std::vector<double>&, std::vector<double>&);
typedef int (Quad_getNumNodes) (int);
typedef int (Quad_getMacro) (int numSubElements, int numQuadNodes,
const double* quadNodes,
const double* quadWeights,
int numF, const double* dFdv,
int new_len, double* new_quadNodes,
double* new_quadWeights, double* new_dFfv);
struct QuadInfo {
QuadTypeId TypeId;
const char* Name;
int numDim;
int numVertices;
Quad_getNodes* getQuadNodes;
Quad_getNumNodes* getNumQuadNodes;
Quad_getMacro *getMacro;
};
/****** Interfaces ******/
Quad_getMacro Quad_MacroPoint;
Quad_getMacro Quad_MacroLine;
Quad_getMacro Quad_MacroTri;
Quad_getMacro Quad_MacroRec;
Quad_getMacro Quad_MacroTet;
Quad_getMacro Quad_MacroHex;
Quad_getNodes Quad_getNodesTri;
Quad_getNodes Quad_getNodesTet;
Quad_getNodes Quad_getNodesRec;
Quad_getNodes Quad_getNodesHex;
Quad_getNodes Quad_getNodesLine;
Quad_getNodes Quad_getNodesPoint;
Quad_getNodes Quad_getNodesTriOnFace;
Quad_getNodes Quad_getNodesRecOnFace;
Quad_getNodes Quad_getNodesLineOnFace;
Quad_getNodes Quad_getNodesPointOnFace;
Quad_getNodes Quad_getNodesTriMacro;
Quad_getNodes Quad_getNodesTetMacro;
Quad_getNodes Quad_getNodesRecMacro;
Quad_getNodes Quad_getNodesHexMacro;
Quad_getNodes Quad_getNodesLineMacro;
Quad_getNumNodes Quad_getNumNodesPoint;
Quad_getNumNodes Quad_getNumNodesLine;
Quad_getNumNodes Quad_getNumNodesTri;
Quad_getNumNodes Quad_getNumNodesRec;
Quad_getNumNodes Quad_getNumNodesTet;
Quad_getNumNodes Quad_getNumNodesHex;
void Quad_makeNodesOnFace(int, int, double*, double*, Quad_getNodes);
const QuadInfo* QuadInfo_getInfo(QuadTypeId id);
} // namespace finley
#endif // __FINLEY_QUADRATURE_H__
Finley.h
finley
A suite of factory methods for creating various finley domains.
Definition: finley/src/Assemble.h:32
finley::Quad_getNumNodesHex
Quad_getNumNodes Quad_getNumNodesHex
Definition: Quadrature.h:103
finley::Quad_getNodesTet
Quad_getNodes Quad_getNodesTet
Definition: Quadrature.h:83
finley::Quad_MacroPoint
Quad_getMacro Quad_MacroPoint
Definition: Quadrature.h:75
finley::Quad_getNodesLineOnFace
Quad_getNodes Quad_getNodesLineOnFace
Definition: Quadrature.h:90
finley::Quad_getNodesPointOnFace
Quad_getNodes Quad_getNodesPointOnFace
Definition: Quadrature.h:91
finley::Quad_getNodesRec
Quad_getNodes Quad_getNodesRec
Definition: Quadrature.h:84
finley::Quad_MacroTet
Quad_getMacro Quad_MacroTet
Definition: Quadrature.h:79
finley::Quad_getNumNodesLine
Quad_getNumNodes Quad_getNumNodesLine
Definition: Quadrature.h:99
finley::Quad_getNumNodesTet
Quad_getNumNodes Quad_getNumNodesTet
Definition: Quadrature.h:102
finley::QuadInfo_getInfo
const QuadInfo * QuadInfo_getInfo(QuadTypeId id)
Definition: Quadrature.cpp:44
finley::Quad_getNodesTri
Quad_getNodes Quad_getNodesTri
Definition: Quadrature.h:82
finley::Quad_MacroTri
Quad_getMacro Quad_MacroTri
Definition: Quadrature.h:77
finley::Quad_getNodesTriMacro
Quad_getNodes Quad_getNodesTriMacro
Definition: Quadrature.h:92
finley::Quad_getNumNodesTri
Quad_getNumNodes Quad_getNumNodesTri
Definition: Quadrature.h:100
finley::Quad_getNodesHexMacro
Quad_getNodes Quad_getNodesHexMacro
Definition: Quadrature.h:95
finley::Quad_getNodesPoint
Quad_getNodes Quad_getNodesPoint
Definition: Quadrature.h:87
finley::Quad_getNodesTriOnFace
Quad_getNodes Quad_getNodesTriOnFace
Definition: Quadrature.h:88
finley::Quad_getNumNodes
int() Quad_getNumNodes(int)
Definition: Quadrature.h:46
finley::Quad_getMacro
int() Quad_getMacro(int numSubElements, int numQuadNodes, const double *quadNodes, const double *quadWeights, int numF, const double *dFdv, int new_len, double *new_quadNodes, double *new_quadWeights, double *new_dFfv)
Definition: Quadrature.h:47
finley::Quad_getNodesHex
Quad_getNodes Quad_getNodesHex
Definition: Quadrature.h:85
finley::Quad_getNumNodesPoint
Quad_getNumNodes Quad_getNumNodesPoint
Definition: Quadrature.h:98
finley::Quad_getNodesLine
Quad_getNodes Quad_getNodesLine
Definition: Quadrature.h:86
finley::Quad_MacroLine
Quad_getMacro Quad_MacroLine
Definition: Quadrature.h:76
finley::Quad_getNodes
void() Quad_getNodes(int, std::vector< double > &, std::vector< double > &)
Definition: Quadrature.h:45
finley::Quad_MacroHex
Quad_getMacro Quad_MacroHex
Definition: Quadrature.h:80
finley::QuadTypeId
QuadTypeId
Definition: Quadrature.h:35
finley::RecQuad
@ RecQuad
Definition: Quadrature.h:39
finley::NoQuad
@ NoQuad
Definition: Quadrature.h:42
finley::TriQuad
@ TriQuad
Definition: Quadrature.h:38
finley::PointQuad
@ PointQuad
Definition: Quadrature.h:36
finley::LineQuad
@ LineQuad
Definition: Quadrature.h:37
finley::TetQuad
@ TetQuad
Definition: Quadrature.h:40
finley::HexQuad
@ HexQuad
Definition: Quadrature.h:41
finley::Quad_getNodesRecMacro
Quad_getNodes Quad_getNodesRecMacro
Definition: Quadrature.h:94
finley::Quad_getNodesLineMacro
Quad_getNodes Quad_getNodesLineMacro
Definition: Quadrature.h:96
finley::Quad_getNodesTetMacro
Quad_getNodes Quad_getNodesTetMacro
Definition: Quadrature.h:93
finley::Quad_getNumNodesRec
Quad_getNumNodes Quad_getNumNodesRec
Definition: Quadrature.h:101
finley::Quad_makeNodesOnFace
void Quad_makeNodesOnFace(int, int, double *, double *, Quad_getNodes)
finley::Quad_getNodesRecOnFace
Quad_getNodes Quad_getNodesRecOnFace
Definition: Quadrature.h:89
finley::Quad_MacroRec
Quad_getMacro Quad_MacroRec
Definition: Quadrature.h:78
finley::QuadInfo
Definition: Quadrature.h:54
finley::QuadInfo::getNumQuadNodes
Quad_getNumNodes * getNumQuadNodes
Definition: Quadrature.h:67
finley::QuadInfo::numDim
int numDim
number of spatial dimensions
Definition: Quadrature.h:60
finley::QuadInfo::getQuadNodes
Quad_getNodes * getQuadNodes
function that returns the quadrature points for a given order
Definition: Quadrature.h:64
finley::QuadInfo::numVertices
int numVertices
number of vertices of the element
Definition: Quadrature.h:62
finley::QuadInfo::getMacro
Quad_getMacro * getMacro
transfers a given quadrature scheme to a macro element structure
Definition: Quadrature.h:69
finley::QuadInfo::TypeId
QuadTypeId TypeId
quadrature type id
Definition: Quadrature.h:56
finley::QuadInfo::Name
const char * Name
the name in text form e.g. "Line", "Rec", ...
Definition: Quadrature.h:58