/[escript]/branches/intelc_win32/finley/src/CPPAdapter/MeshAdapterFactory.h
ViewVC logotype

Contents of /branches/intelc_win32/finley/src/CPPAdapter/MeshAdapterFactory.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 742 - (show annotations)
Sat Jun 24 11:27:16 2006 UTC (13 years, 2 months ago) by woo409
File MIME type: text/plain
File size: 5182 byte(s)
+ Initial commit of win32 port using intel c++ compiler 9.1.x for Windows
+ This version is failing some file handling tests in python
1 /* $Id$ */
2 /*
3 ************************************************************
4 * Copyright 2006 by ACcESS MNRF *
5 * *
6 * http://www.access.edu.au *
7 * Primary Business: Queensland, Australia *
8 * Licensed under the Open Software License version 3.0 *
9 * http://www.opensource.org/licenses/osl-3.0.php *
10 * *
11 ************************************************************
12 */
13
14 #if !defined finley_MeshAdapterFactory_20040526_H
15 #define finley_MeshAdapterFactory_20040526_H
16 #include "system_dep.h"
17
18 extern "C" {
19 #include "../Finley.h"
20 #include "../Mesh.h"
21 #include "../RectangularMesh.h"
22 }
23
24 #include "MeshAdapter.h"
25
26 #include "escript/AbstractContinuousDomain.h"
27
28 #include <boost/python/list.hpp>
29
30 #include <sstream>
31
32 namespace finley {
33 /**
34 \brief
35 A suite of factory methods for creating various MeshAdapters.
36
37 Description:
38 A suite of factory methods for creating various MeshAdapters.
39 */
40
41 /**
42 \brief
43 Read a mesh from a file
44 \param fileName Input - The name of the file.
45 \param integrationOrder Input - order of the quadrature scheme.
46 If integrationOrder<0 the integration order is selected independently.
47 */
48 FINLEY_DLL_API
49 escript::AbstractContinuousDomain* readMesh(const std::string& fileName,
50 int integrationOrder=-1);
51 /**
52 \brief
53 Creates a rectangular mesh with n0 x n1 x n2 elements over the brick
54 [0,l0] x [0,l1] x [0,l2].
55
56 \param n0,n1,n2 Input - number of elements in each dimension
57 \param order Input - =1 or =2 gives the order of shape function
58 \param l0,l1,l2 Input - length of each side of brick
59 \param integrationOrder Input - order of the quadrature scheme.
60 \param useElementsOnFace Input - whether or not to use elements on face
61 \param periodic0, periodic1, periodic2 Input - whether or not boundary
62 conditions of the dimension are periodic
63 */
64 FINLEY_DLL_API
65 escript::AbstractContinuousDomain* brick(int n0=1,int n1=1,int n2=1,int order=1,
66 double l0=1.0,double l1=1.0,double l2=1.0,
67 int periodic0=0,int periodic1=0,
68 int periodic2=0,
69 int integrationOrder=-1,
70 int useElementsOnFace=0);
71 /**
72 \brief
73 Creates a rectangular mesh with n0 x n1 elements over the brick
74 [0,l0] x [0,l1].
75
76 \param n0,n1 Input - number of elements in each dimension
77 \param order Input - =1 or =2 gives the order of shape function
78 \param l0,l1 Input - length of each side of brick
79 \param integrationOrder Input - order of the quadrature scheme.
80 If integrationOrder<0 the integration order is selected
81 independently.
82 \param periodic0, periodic1 Input - whether or not the boundary
83 conditions of the dimension are periodic
84 \param useElementsOnFace Input - whether or not to use elements on face
85 */
86 FINLEY_DLL_API
87 escript::AbstractContinuousDomain* rectangle(int n0=1,int n1=1,int order=1,
88 double l0=1.0, double l1=1.0,
89 int periodic0=false,int periodic1=false,
90 int integrationOrder=-1,
91 int useElementsOnFace=false);
92 /**
93 \brief
94 Creates an equidistant mesh with n elements over the interval [0,l].
95 \param n0 Input - number of elements
96 \param order Input - =1 or =2 gives the order of shape function.
97 \param l0 Input - length of the brick
98 \param integrationOrder Input - order of the quadrature scheme.
99 If integrationOrder<0 the integration order is selected
100 independently.
101 \param periodic0 Input - whether or not the boundary conditions are
102 periodic
103 \param useElementsOnFace Input - whether or not to use the elements
104 on the face
105 */
106 FINLEY_DLL_API
107 escript::AbstractContinuousDomain* interval(int n0=1,int order=1,double l0=1.0,
108 int periodic0=false,
109 int integrationOrder=-1,
110 int useElementsOnFace=false);
111 /**
112 \brief
113 Merges a list of meshes into one list.
114 \param meshList Input - The list of meshes.
115 */
116 FINLEY_DLL_API
117 escript::AbstractContinuousDomain* meshMerge(const boost::python::list& meshList);
118 /**
119 \brief
120 Detects matching faces in the mesh, removes them from the mesh
121 and joins the elements touched by the face elements.
122 \param meshList Input - The list of meshes.
123 \param safetyFactor Input - ??
124 \param tolerance Input - ??
125 */
126 FINLEY_DLL_API
127 escript::AbstractContinuousDomain* glueFaces(const boost::python::list& meshList,
128 double safetyFactor=0.2,
129 double tolerance=100.*std::numeric_limits<double>::epsilon());
130 /**
131 \brief
132 Detects matching faces in the mesh and replaces them by joint elements.
133 \param meshList Input - The list of meshes.
134 \param safetyFactor Input - ??
135 \param tolerance Input - ??
136 */
137 FINLEY_DLL_API
138 escript::AbstractContinuousDomain* joinFaces(const boost::python::list& meshList,
139 double safetyFactor=0.2,
140 double tolerance=100.*std::numeric_limits<double>::epsilon());
141
142 } // end of namespace
143 #endif

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26