escript  Revision_
finley/src/DomainFactory.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2020 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-2017 by Centre for Geoscience Computing (GeoComp)
14 * Development from 2019 by School of Earth and Environmental Sciences
15 **
16 *****************************************************************************/
17 
18 #ifndef __FINLEY_DOMAINFACTORY_H__
19 #define __FINLEY_DOMAINFACTORY_H__
20 
21 #include <finley/FinleyDomain.h>
22 
23 #include <boost/python/list.hpp>
24 
25 #include <sstream>
26 
32 namespace finley {
33 
38 escript::Domain_ptr readMesh_driver(const boost::python::list& args);
39 
44 escript::Domain_ptr readGmsh_driver(const boost::python::list& args);
45 
70  dim_t n0=1, dim_t n1=1, dim_t n2=1, int order=1,
71  double l0=1.0, double l1=1.0, double l2=1.0,
72  bool periodic0=false, bool periodic1=false, bool periodic2=false,
73  int integrationOrder=-1, int reducedIntegrationOrder=-1,
74  bool useElementsOnFace=false,
75  bool useFullElementOrder=false, bool optimize=false,
76  const std::vector<double>& points=std::vector<double>(),
77  const std::vector<int>& tags=std::vector<int>(),
78  const std::map<std::string, int>& tagNamesToNums=std::map<std::string, int>());
79 
84 escript::Domain_ptr brick_driver(const boost::python::list& args);
85 
110  dim_t n0 = 1, dim_t n1 = 1, int order = 1,
111  double l0 = 1.0, double l1 = 1.0,
112  bool periodic0 = false, bool periodic1 = false,
113  int integrationOrder = -1,
114  int reducedIntegrationOrder = -1,
115  bool useElementsOnFace = false,
116  bool useFullElementOrder = false,
117  bool optimize = false,
118  const std::vector<double>& points = std::vector<double>(),
119  const std::vector<int>& tags = std::vector<int>(),
120  const std::map<std::string, int>& tagNamesToNums = std::map<std::string, int>());
121 
126 escript::Domain_ptr rectangle_driver(const boost::python::list& args);
127 
133 escript::Domain_ptr meshMerge(const boost::python::list& meshList);
134 
144 escript::Domain_ptr glueFaces(const boost::python::list& meshList,
145  double safetyFactor = 0.2, double tolerance = 1.e-8,
146  bool optimize = false);
147 
156 escript::Domain_ptr joinFaces(const boost::python::list& meshList,
157  double safetyFactor = 0.2, double tolerance = 1.e-8,
158  bool optimize = false);
159 
160 } // end of namespace
161 
162 #endif // __FINLEY_DOMAINFACTORY_H__
163 
finley::brick_driver
Domain_ptr brick_driver(const bp::list &args)
Definition: finley/src/DomainFactory.cpp:1105
escript::Domain_ptr
boost::shared_ptr< AbstractDomain > Domain_ptr
Definition: AbstractDomain.h:55
finley::rectangle
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:1170
paso::util::l2
double l2(dim_t n, const double *x, escript::JMPI mpiinfo)
returns the global L2 norm of x
Definition: PasoUtil.cpp:530
escript::DataTypes::dim_t
index_t dim_t
Definition: DataTypes.h:93
escript::JMPI
boost::shared_ptr< JMPI_ > JMPI
Definition: EsysMPI.h:72
finley::readGmsh_driver
Domain_ptr readGmsh_driver(const bp::list &args)
Definition: finley/src/DomainFactory.cpp:985
finley::joinFaces
Domain_ptr joinFaces(const bp::list &meshList, double safetyFactor, double tolerance, bool optimize)
Definition: finley/src/DomainFactory.cpp:1300
finley::brick
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:1066
finley::glueFaces
Domain_ptr glueFaces(const bp::list &meshList, double safetyFactor, double tolerance, bool optimize)
Definition: finley/src/DomainFactory.cpp:1288
finley::rectangle_driver
Domain_ptr rectangle_driver(const bp::list &args)
Definition: finley/src/DomainFactory.cpp:1207
finley
A suite of factory methods for creating various finley domains.
Definition: finley/src/Assemble.h:32
finley::readMesh_driver
Domain_ptr readMesh_driver(const bp::list &args)
Definition: finley/src/DomainFactory.cpp:904
finley::meshMerge
Domain_ptr meshMerge(const bp::list &meshList)
Definition: finley/src/DomainFactory.cpp:1272