/[escript]/trunk/finley/src/ReferenceElements.h
ViewVC logotype

Annotation of /trunk/finley/src/ReferenceElements.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 777 - (hide annotations)
Wed Jul 12 08:54:45 2006 UTC (13 years, 4 months ago) by gross
File MIME type: text/plain
File size: 6511 byte(s)
integration with persistent jacobeans is running now
1 jgs 150 /*
2 elspeth 626 ************************************************************
3     * Copyright 2006 by ACcESS MNRF *
4     * *
5     * http://www.access.edu.au *
6     * Primary Business: Queensland, Australia *
7     * Licensed under the Open Software License version 3.0 *
8     * http://www.opensource.org/licenses/osl-3.0.php *
9     * *
10     ************************************************************
11 jgs 150 */
12 jgs 82
13     /**************************************************************/
14    
15     /* Finley: Reference elements */
16    
17     /**************************************************************/
18    
19     /* Author: gross@access.edu.au */
20     /* Version: $Id$ */
21    
22     /**************************************************************/
23    
24 jgs 150 #ifndef INC_FINLEY_REFERENCEELEMENTS
25     #define INC_FINLEY_REFERENCEELEMENTS
26    
27    
28     /**************************************************************/
29    
30     #include "Finley.h"
31 jgs 82 #include "ShapeFunctions.h"
32     #include "Quadrature.h"
33    
34     /**************************************************************/
35    
36     /* The ids of the allowed reference ellements: */
37    
38     #define MAX_numNodes 64
39    
40     typedef enum {
41     Point1,
42     Line2,
43     Line3,
44     Line4,
45     Tri3,
46     Tri6,
47     Tri9,
48     Tri10,
49     Rec4,
50     Rec8,
51     Rec9,
52     Rec12,
53     Rec16,
54     Tet4,
55     Tet10,
56     Tet16,
57     Hex8,
58     Hex20,
59     Hex32,
60     Line2Face,
61     Line3Face,
62     Line4Face,
63     Tri3Face,
64     Tri6Face,
65     Tri9Face,
66     Tri10Face,
67     Rec4Face,
68     Rec8Face,
69     Rec9Face,
70     Rec12Face,
71     Rec16Face,
72     Tet4Face,
73     Tet10Face,
74     Tet16Face,
75     Hex8Face,
76     Hex20Face,
77     Hex32Face,
78     Point1_Contact,
79     Line2_Contact,
80     Line3_Contact,
81     Line4_Contact,
82     Tri3_Contact,
83     Tri6_Contact,
84     Tri9_Contact,
85     Tri10_Contact,
86     Rec4_Contact,
87     Rec8_Contact,
88     Rec9_Contact,
89     Rec12_Contact,
90     Rec16_Contact,
91     Line2Face_Contact,
92     Line3Face_Contact,
93     Line4Face_Contact,
94     Tri3Face_Contact,
95     Tri6Face_Contact,
96     Tri9Face_Contact,
97     Tri10Face_Contact,
98     Rec4Face_Contact,
99     Rec8Face_Contact,
100     Rec9Face_Contact,
101     Rec12Face_Contact,
102     Rec16Face_Contact,
103     Tet4Face_Contact,
104     Tet10Face_Contact,
105     Tet16Face_Contact,
106     Hex8Face_Contact,
107     Hex20Face_Contact,
108     Hex32Face_Contact,
109     NoType /* marks end of list */
110     } ElementTypeId;
111    
112     /**************************************************************/
113    
114     /* this struct holds the definition of the reference element: */
115    
116     typedef struct Finley_RefElementInfo {
117     ElementTypeId TypeId; /* the id */
118     char* Name; /* the name in text form e.g. Line1,Rec12,... */
119 gross 777 dim_t numLocalDim; /* local dimension of the element */
120 jgs 123 dim_t numDim; /* dimension of the element */
121     dim_t numNodes; /* number of nodes defining the element*/
122     dim_t numShapes; /* number of shape functions, typically = numNodes*/
123     dim_t numOrder; /* order of the shape functions */
124     dim_t numVertices; /* number of vertices of the element */
125 jgs 82 ElementTypeId LinearTypeId; /* id of the linear version of the element */
126 jgs 123 index_t linearNodes[MAX_numNodes]; /* gives the list of nodes defining the linear element, typically it is linearNodes[i]=i */
127 jgs 82 Finley_Shape_Function* getValues; /* function to evaluate the shape functions at a set of points */
128     Finley_Quad_getNodes* getQuadNodes; /* function to set the quadrature points */
129     Finley_Quad_getNumNodes* getNumQuadNodes; /* function selects the number of quadrature nodes for a given accuracy order */
130 jgs 123 dim_t numGeoNodes; /* nuber of nodes used to describe the geometry of the geometrically relevant part of the element */
131 jgs 82 /* typically this is numNodes but for volumenic elements used to descrbe faces this is the number of */
132     /* nodes on the particular face */
133 jgs 123 index_t geoNodes[MAX_numNodes]; /* list to gather the geometrically relevant nodes */
134     dim_t numNodesOnFace; /* if the element is allowed as a face element, numNodesOnFace defines the number of nodes */
135 jgs 82 /* defining the face */
136     /* the following lists are only used for face elements defined by numNodesOnFace>0 */
137 jgs 123 index_t faceNode[MAX_numNodes]; /* list of the nodes defining the face */
138     index_t shiftNodes[MAX_numNodes]; /* defines a permutation of the nodes which rotates the nodes on the face */
139     index_t reverseNodes[MAX_numNodes]; /* reverses the order of the nodes on a face. teh permutation has keep 0 fixed. */
140     /* shiftNodes={-1} or reverseNodes={-1} are ignored. */
141 jgs 82 } Finley_RefElementInfo;
142    
143     /**************************************************************/
144    
145     /* this struct holds the realization of a reference element */
146    
147     typedef struct Finley_RefElement {
148     Finley_RefElementInfo* Type; /* type of the reference element */
149     int numQuadNodes; /* number of quadrature points */
150     double *QuadNodes; /* coordinates of quadrature nodes */
151     double *QuadWeights; /* weights of the quadrature scheme */
152     double *S; /* shape functions at quadrature nodes */
153     double *dSdv; /* derivative of the shape functions at quadrature nodes */
154     } Finley_RefElement;
155    
156     /**************************************************************/
157    
158     /* interfaces: */
159    
160     Finley_RefElement* Finley_RefElement_alloc(ElementTypeId,int);
161     void Finley_RefElement_dealloc(Finley_RefElement*);
162     ElementTypeId Finley_RefElement_getTypeId(char*);
163    
164     #endif /* #ifndef INC_FINLEY_REFERENCEELEMENTS */
165    
166     /*
167     * $Log$
168 jgs 150 * Revision 1.3 2005/09/15 03:44:23 jgs
169     * Merge of development branch dev-02 back to main trunk on 2005-09-15
170     *
171     * Revision 1.2.2.1 2005/09/07 06:26:21 gross
172     * the solver from finley are put into the standalone package paso now
173     *
174 jgs 123 * Revision 1.2 2005/07/08 04:07:56 jgs
175     * Merge of development branch back to main trunk on 2005-07-08
176 jgs 82 *
177 jgs 123 * Revision 1.1.1.1.2.1 2005/06/29 02:34:55 gross
178     * some changes towards 64 integers in finley
179     *
180     * Revision 1.1.1.1 2004/10/26 06:53:57 jgs
181     * initial import of project esys2
182     *
183 jgs 82 * Revision 1.1.1.1 2004/06/24 04:00:40 johng
184     * Initial version of eys using boost-python.
185     *
186     *
187     */

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26