escript  Revision_
finley/src/DomainFactory.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2016 by The University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Apache License, version 2.0
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16 
17 #ifndef __FINLEY_DOMAINFACTORY_H__
18 #define __FINLEY_DOMAINFACTORY_H__
19 
20 #include <finley/FinleyDomain.h>
21 
22 #include <boost/python/list.hpp>
23 
24 #include <sstream>
25 
31 namespace finley {
32 
37 escript::Domain_ptr readMesh_driver(const boost::python::list& args);
38 
43 escript::Domain_ptr readGmsh_driver(const boost::python::list& args);
44 
69  dim_t n0=1, dim_t n1=1, dim_t n2=1, int order=1,
70  double l0=1.0, double l1=1.0, double l2=1.0,
71  bool periodic0=false, bool periodic1=false, bool periodic2=false,
72  int integrationOrder=-1, int reducedIntegrationOrder=-1,
73  bool useElementsOnFace=false,
74  bool useFullElementOrder=false, bool optimize=false,
75  const std::vector<double>& points=std::vector<double>(),
76  const std::vector<int>& tags=std::vector<int>(),
77  const std::map<std::string, int>& tagNamesToNums=std::map<std::string, int>());
78 
83 escript::Domain_ptr brick_driver(const boost::python::list& args);
84 
109  dim_t n0 = 1, dim_t n1 = 1, int order = 1,
110  double l0 = 1.0, double l1 = 1.0,
111  bool periodic0 = false, bool periodic1 = false,
112  int integrationOrder = -1,
113  int reducedIntegrationOrder = -1,
114  bool useElementsOnFace = false,
115  bool useFullElementOrder = false,
116  bool optimize = false,
117  const std::vector<double>& points = std::vector<double>(),
118  const std::vector<int>& tags = std::vector<int>(),
119  const std::map<std::string, int>& tagNamesToNums = std::map<std::string, int>());
120 
125 escript::Domain_ptr rectangle_driver(const boost::python::list& args);
126 
132 escript::Domain_ptr meshMerge(const boost::python::list& meshList);
133 
143 escript::Domain_ptr glueFaces(const boost::python::list& meshList,
144  double safetyFactor = 0.2, double tolerance = 1.e-8,
145  bool optimize = false);
146 
155 escript::Domain_ptr joinFaces(const boost::python::list& meshList,
156  double safetyFactor = 0.2, double tolerance = 1.e-8,
157  bool optimize = false);
158 
159 } // end of namespace
160 
161 #endif // __FINLEY_DOMAINFACTORY_H__
162 
double l2(dim_t n, const double *x, escript::JMPI mpiinfo)
returns the global L2 norm of x
Definition: PasoUtil.cpp:501
Domain_ptr rectangle_driver(const bp::list &args)
Definition: finley/src/DomainFactory.cpp:776
Domain_ptr rectangle(JMPI info, dim_t n0, dim_t n1, int order, double l0, double l1, bool periodic0, bool periodic1, int integrationOrder, int reducedIntegrationOrder, bool useElementsOnFace, bool useFullElementOrder, bool optimize, const vector< double > &points, const vector< int > &tags, const std::map< std::string, int > &tagNamesToNums)
Creates a 2-dimensional rectangular mesh with n0 x n1 elements over the rectangle [0...
Definition: finley/src/DomainFactory.cpp:739
boost::shared_ptr< AbstractDomain > Domain_ptr
Definition: AbstractDomain.h:36
Domain_ptr readMesh_driver(const bp::list &args)
Definition: finley/src/DomainFactory.cpp:473
boost::shared_ptr< JMPI_ > JMPI
Definition: EsysMPI.h:71
Domain_ptr brick_driver(const bp::list &args)
Definition: finley/src/DomainFactory.cpp:674
A suite of factory methods for creating various finley domains.
Definition: finley/src/Assemble.h:31
Domain_ptr glueFaces(const bp::list &meshList, double safetyFactor, double tolerance, bool optimize)
Definition: finley/src/DomainFactory.cpp:857
Domain_ptr joinFaces(const bp::list &meshList, double safetyFactor, double tolerance, bool optimize)
Definition: finley/src/DomainFactory.cpp:869
Domain_ptr meshMerge(const bp::list &meshList)
Definition: finley/src/DomainFactory.cpp:841
Domain_ptr readGmsh_driver(const bp::list &args)
Definition: finley/src/DomainFactory.cpp:554
Domain_ptr brick(JMPI info, dim_t n0, dim_t n1, dim_t n2, int order, double l0, double l1, double l2, bool periodic0, bool periodic1, bool periodic2, int integrationOrder, int reducedIntegrationOrder, bool useElementsOnFace, bool useFullElementOrder, bool optimize, const std::vector< double > &points, const std::vector< int > &tags, const std::map< std::string, int > &tagNamesToNums)
Creates a rectangular mesh with n0 x n1 x n2 elements over the brick [0,l0] x [0,l1] x [0...
Definition: finley/src/DomainFactory.cpp:635
index_t dim_t
Definition: DataTypes.h:64