/[escript]/branches/domexper/dudley/src/Quadrature.h
ViewVC logotype

Contents of /branches/domexper/dudley/src/Quadrature.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3086 - (show annotations)
Thu Aug 5 05:07:58 2010 UTC (9 years, 6 months ago) by jfenwick
File MIME type: text/plain
File size: 3756 byte(s)
Another pass at removing finley

1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2010 by University of Queensland
5 * Earth Systems Science Computational Center (ESSCC)
6 * http://www.uq.edu.au/esscc
7 *
8 * Primary Business: Queensland, Australia
9 * Licensed under the Open Software License version 3.0
10 * http://www.opensource.org/licenses/osl-3.0.php
11 *
12 *******************************************************/
13
14
15 /**************************************************************/
16
17 /* Dudley: integration schemes for element shapes Tri, Quad, Hex, Tet, Line, Point */
18
19 /**************************************************************/
20
21 #ifndef INC_DUDLEY_QUADRATURE
22 #define INC_DUDLEY_QUADRATURE
23
24 /**************************************************************/
25
26 #include "Dudley.h"
27
28 /**************************************************************/
29
30 #define MAX_numQuadNodesLine 10
31
32 typedef enum {
33 PointQuad,
34 LineQuad,
35 TriQuad,
36 RecQuad,
37 TetQuad,
38 HexQuad,
39 NoQuad /* marks end of list */
40 } Dudley_QuadTypeId;
41
42 typedef void (Dudley_Quad_getNodes) (dim_t,double*,double*);
43 typedef dim_t (Dudley_Quad_getNumNodes) (dim_t);
44 typedef dim_t(Dudley_Quad_getMacro)(dim_t numSubElements, int numQuadNodes, double* quadNodes, double* quadWeights,
45 dim_t numF, double* dFdv,
46 dim_t new_len, double* new_quadNodes, double* new_quadWeights,
47 double* new_dFfv );
48
49 typedef struct Dudley_QuadInfo {
50 Dudley_QuadTypeId TypeId; /* the id */
51 char* Name; /* the name in text form e.g. Line,Rec,... */
52 dim_t numDim; /* spacial dimension */
53 dim_t numVertices; /* number of vertices of the element */
54 Dudley_Quad_getNodes* getQuadNodes; /* function to set the quadrature points for a given order */
55 Dudley_Quad_getNumNodes* getNumQuadNodes; /* function selects the number of quadrature nodes for a given accuracy order */
56 Dudley_Quad_getMacro *getMacro; /* transfers a given quadrature scheme to a macro element structure */
57 } Dudley_QuadInfo;
58
59 /**************************************************************/
60
61 /* Interfaces: */
62
63
64 Dudley_Quad_getMacro Dudley_Quad_MacroPoint;
65 Dudley_Quad_getMacro Dudley_Quad_MacroLine;
66 Dudley_Quad_getMacro Dudley_Quad_MacroTri;
67 Dudley_Quad_getMacro Dudley_Quad_MacroRec;
68 Dudley_Quad_getMacro Dudley_Quad_MacroTet;
69 Dudley_Quad_getMacro Dudley_Quad_MacroHex;
70
71
72 Dudley_Quad_getNodes Dudley_Quad_getNodesTri;
73 Dudley_Quad_getNodes Dudley_Quad_getNodesTet;
74 Dudley_Quad_getNodes Dudley_Quad_getNodesRec;
75 Dudley_Quad_getNodes Dudley_Quad_getNodesHex;
76 Dudley_Quad_getNodes Dudley_Quad_getNodesLine;
77 Dudley_Quad_getNodes Dudley_Quad_getNodesPoint;
78 Dudley_Quad_getNodes Dudley_Quad_getNodesTriOnFace;
79 Dudley_Quad_getNodes Dudley_Quad_getNodesRecOnFace;
80 Dudley_Quad_getNodes Dudley_Quad_getNodesLineOnFace;
81 Dudley_Quad_getNodes Dudley_Quad_getNodesPointOnFace;
82 Dudley_Quad_getNodes Dudley_Quad_getNodesTriMacro;
83 Dudley_Quad_getNodes Dudley_Quad_getNodesTetMacro;
84 Dudley_Quad_getNodes Dudley_Quad_getNodesRecMacro;
85 Dudley_Quad_getNodes Dudley_Quad_getNodesHexMacro;
86 Dudley_Quad_getNodes Dudley_Quad_getNodesLineMacro;
87
88
89
90 Dudley_Quad_getNumNodes Dudley_Quad_getNumNodesPoint;
91 Dudley_Quad_getNumNodes Dudley_Quad_getNumNodesLine;
92 Dudley_Quad_getNumNodes Dudley_Quad_getNumNodesTri;
93 Dudley_Quad_getNumNodes Dudley_Quad_getNumNodesRec;
94 Dudley_Quad_getNumNodes Dudley_Quad_getNumNodesTet;
95 Dudley_Quad_getNumNodes Dudley_Quad_getNumNodesHex;
96
97 void Dudley_Quad_makeNodesOnFace(dim_t, dim_t,double*,double*, Dudley_Quad_getNodes);
98 Dudley_QuadInfo* Dudley_QuadInfo_getInfo(Dudley_QuadTypeId id);
99
100 #endif /* #ifndef INC_DUDLEY_QUADRATURE */
101

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26