/[escript]/trunk/dudley/src/CPPAdapter/MeshAdapterFactory.h
ViewVC logotype

Diff of /trunk/dudley/src/CPPAdapter/MeshAdapterFactory.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1311 by gross, Fri Mar 23 11:01:53 2007 UTC revision 1312 by ksteube, Mon Sep 24 06:18:44 2007 UTC
# Line 1  Line 1 
1    
2  /* $Id$ */  /* $Id$ */
3  /*  
4   ************************************************************  /*******************************************************
5   *          Copyright 2006 by ACcESS MNRF                   *   *
6   *                                                          *   *           Copyright 2003-2007 by ACceSS MNRF
7   *              http://www.access.edu.au                    *   *       Copyright 2007 by University of Queensland
8   *       Primary Business: Queensland, Australia            *   *
9   *  Licensed under the Open Software License version 3.0    *   *                http://esscc.uq.edu.au
10   *     http://www.opensource.org/licenses/osl-3.0.php       *   *        Primary Business: Queensland, Australia
11   *                                                          *   *  Licensed under the Open Software License version 3.0
12   ************************************************************   *     http://www.opensource.org/licenses/osl-3.0.php
13  */   *
14     *******************************************************/
15    
16  #if !defined  finley_MeshAdapterFactory_20040526_H  #if !defined  finley_MeshAdapterFactory_20040526_H
17  #define finley_MeshAdapterFactory_20040526_H  #define finley_MeshAdapterFactory_20040526_H
# Line 40  namespace finley { Line 42  namespace finley {
42    
43    /**    /**
44       \brief       \brief
45         recovers mesg from a dump file
46         \param fileName Input -  The name of the file.
47      */
48      FINLEY_DLL_API
49      escript::AbstractContinuousDomain* loadMesh(const std::string& fileName);
50      /**
51         \brief
52       Read a mesh from a file       Read a mesh from a file
53       \param fileName Input -  The name of the file.       \param fileName Input -  The name of the file.
54       \param integrationOrder Input - order of the quadrature scheme.         \param integrationOrder Input - order of the quadrature scheme.  
55       If integrationOrder<0 the integration order is selected independently.       If integrationOrder<0 the integration order is selected independently.
56       \param reducedIntegrationOrder Input - order of the reduced quadrature scheme.         \param reducedIntegrationOrder Input - order of the reduced quadrature scheme.  
57       If reducedIntegrationOrder<0 the integration order is selected independently.       If reducedIntegrationOrder<0 the integration order is selected independently.
58       \param optimizeLabeling Input - switches on the optimization of node labels       \param optimize Input - switches on the optimization of node labels
59    */    */
60    FINLEY_DLL_API    FINLEY_DLL_API
61    escript::AbstractContinuousDomain* readMesh(const std::string& fileName,    escript::AbstractContinuousDomain* readMesh(const std::string& fileName,
62                       int integrationOrder=-1,                       int integrationOrder=-1,
63                                       int reducedIntegrationOrder=-1,                                       int reducedIntegrationOrder=-1,
64                                       bool optimizeLabeling=true);                                       int optimize=0);
65    /**    /**
66       \brief       \brief
67       Read a gmsh mesh file       Read a gmsh mesh file
# Line 62  namespace finley { Line 71  namespace finley {
71       If integrationOrder<0 the integration order is selected independently.       If integrationOrder<0 the integration order is selected independently.
72       \param reducedIntegrationOrder Input - order of the reduced quadrature scheme.         \param reducedIntegrationOrder Input - order of the reduced quadrature scheme.  
73       If reducedIntegrationOrder<0 the integration order is selected independently.       If reducedIntegrationOrder<0 the integration order is selected independently.
74       \param optimizeLabeling Input - switches on the optimization of node labels       \param optimize Input - switches on the optimization of node labels
75    */    */
76    FINLEY_DLL_API    FINLEY_DLL_API
77    escript::AbstractContinuousDomain* readGmsh(const std::string& fileName,    escript::AbstractContinuousDomain* readGmsh(const std::string& fileName,
78                       int numDim,                       int numDim,
79                       int integrationOrder=-1,                       int integrationOrder=-1,
80                       int reducedIntegrationOrder=-1,                       int reducedIntegrationOrder=-1,
81                       bool optimizeLabeling=true);                       int optimize=0);
82    /**    /**
83       \brief       \brief
84       Creates a rectangular mesh with n0 x n1 x n2 elements over the brick       Creates a rectangular mesh with n0 x n1 x n2 elements over the brick
# Line 93  namespace finley { Line 102  namespace finley {
102              int periodic2=0,              int periodic2=0,
103              int integrationOrder=-1,              int integrationOrder=-1,
104                      int reducedIntegrationOrder=-1,                      int reducedIntegrationOrder=-1,
105              int useElementsOnFace=0);              int useElementsOnFace=0,
106                        int useFullElementOrder=0,
107                        int optimize=0);
108    /**    /**
109       \brief       \brief
110       Creates a rectangular mesh with n0 x n1 elements over the brick       Creates a rectangular mesh with n0 x n1 elements over the brick
# Line 117  namespace finley { Line 128  namespace finley {
128                        int periodic0=false,int periodic1=false,                        int periodic0=false,int periodic1=false,
129                        int integrationOrder=-1,                        int integrationOrder=-1,
130                                        int reducedIntegrationOrder=-1,                                        int reducedIntegrationOrder=-1,
131                        int useElementsOnFace=false);                        int useElementsOnFace=0,
132    /**                                        int useFullElementOrder=0,
133       \brief                                        int optimize=0);
      Creates an equidistant mesh with n elements over the interval [0,l].  
      \param n0 Input - number of elements  
      \param order Input - =1 or =2 gives the order of shape function.  
      \param l0 Input - length of the brick  
      \param integrationOrder Input - order of the quadrature scheme.  
      If integrationOrder<0 the integration order is selected  
      independently.  
      \param reducedIntegrationOrder Input - order of the reduced quadrature scheme.    
      If reducedIntegrationOrder<0 the integration order is selected independently.  
      \param periodic0 Input - whether or not the boundary conditions are  
      periodic  
      \param useElementsOnFace Input - whether or not to use the elements  
      on the face  
   */  
   FINLEY_DLL_API  
   escript::AbstractContinuousDomain* interval(int n0=1,int order=1,double l0=1.0,  
                      int periodic0=false,  
                      int integrationOrder=-1,  
                                      int reducedIntegrationOrder=-1,  
                      int useElementsOnFace=false);  
134    /**    /**
135       \brief       \brief
136       Merges a list of meshes into one list.       Merges a list of meshes into one list.
# Line 154  namespace finley { Line 145  namespace finley {
145       \param meshList Input - The list of meshes.       \param meshList Input - The list of meshes.
146       \param safetyFactor Input - ??       \param safetyFactor Input - ??
147       \param tolerance Input - ??       \param tolerance Input - ??
148       \param optimizeLabeling Input - switches on the optimization of node labels       \param optimize Input - switches on the optimization of node labels
149    */    */
150    FINLEY_DLL_API    FINLEY_DLL_API
151    escript::AbstractContinuousDomain* glueFaces(const boost::python::list& meshList,    escript::AbstractContinuousDomain* glueFaces(const boost::python::list& meshList,
152                 double safetyFactor=0.2,                 double safetyFactor=0.2,
153                 double tolerance=1.e-8,                 double tolerance=1.e-8,
154                             bool optimizeLabeling=true);                             int optimize=0);
155    /**    /**
156       \brief       \brief
157       Detects matching faces in the mesh and replaces them by joint elements.       Detects matching faces in the mesh and replaces them by joint elements.
158       \param meshList Input - The list of meshes.       \param meshList Input - The list of meshes.
159       \param safetyFactor Input - ??       \param safetyFactor Input - ??
160       \param tolerance Input - ??       \param tolerance Input - ??
161       \param optimizeLabeling Input - switches on the optimization of node labels       \param optimize Input - switches on the optimization of node labels
162    */    */
163    FINLEY_DLL_API    FINLEY_DLL_API
164    escript::AbstractContinuousDomain* joinFaces(const boost::python::list& meshList,    escript::AbstractContinuousDomain* joinFaces(const boost::python::list& meshList,
165              double safetyFactor=0.2,              double safetyFactor=0.2,
166              double tolerance=1.e-8,              double tolerance=1.e-8,
167                          bool optimizeLabeling=true);                          int optimize=0);
168    
169  } // end of namespace  } // end of namespace
170  #endif  #endif

Legend:
Removed from v.1311  
changed lines
  Added in v.1312

  ViewVC Help
Powered by ViewVC 1.1.26