escript Revision_
dudley/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 __DUDLEY_DOMAINFACTORY_H__
19#define __DUDLEY_DOMAINFACTORY_H__
20
21#include <dudley/DudleyDomain.h>
22
23#include <boost/python/list.hpp>
24
25#include <sstream>
26
32namespace dudley {
33
44escript::Domain_ptr readMesh(const std::string& fileName,
45 int integrationOrder = -1,
46 int reducedIntegrationOrder = -1,
47 bool optimize = false);
48
59escript::Domain_ptr readGmsh(const std::string& fileName, int numDim,
60 int integrationOrder = -1,
61 int reducedIntegrationOrder = -1,
62 bool optimize = false);
63
79 dim_t n0=1, dim_t n1=1, dim_t n2=1, int order=1,
80 double l0=1.0, double l1=1.0, double l2=1.0,
81 bool periodic0=false, bool periodic1=false, bool periodic2=false,
82 int integrationOrder=-1, int reducedIntegrationOrder=-1,
83 bool useElementsOnFace=false, bool useFullElementOrder=false,
84 bool optimize=false);
85
91escript::Domain_ptr brick_driver(const boost::python::list& args);
92
112 dim_t n0 = 1, dim_t n1 = 1, int order = 1,
113 double l0 = 1.0, double l1 = 1.0,
114 bool periodic0 = false, bool periodic1 = false,
115 int integrationOrder = -1,
116 int reducedIntegrationOrder = -1,
117 bool useElementsOnFace = false,
118 bool useFullElementOrder = false,
119 bool optimize = false);
120
126escript::Domain_ptr rectangle_driver(const boost::python::list& args);
127
128
129} // end of namespace
130
131#endif // __DUDLEY_DOMAINFACTORY_H__
132
#define DUDLEY_DLL_API
Definition dudley/src/system_dep.h:29
A suite of factory methods for creating 2D and 3D dudley domains.
Definition dudley/src/Assemble.h:32
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)
Creates a 2-dimensional rectangular mesh with n0 x n1 x 2 Tri3 elements over the rectangle [0,...
Definition dudley/src/DomainFactory.cpp:737
Domain_ptr readMesh(const string &fileName, int, int, bool optimize)
reads a mesh from a fly file. For MPI parallel runs fans out the mesh to multiple processes.
Definition dudley/src/DomainFactory.cpp:674
Domain_ptr readGmsh(const string &fileName, int numDim, int, int, bool optimize)
reads a gmsh mesh file
Definition dudley/src/DomainFactory.cpp:681
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)
Creates a rectangular mesh with n0 x n1 x n2 elements over the brick [0,l0] x [0,l1] x [0,...
Definition dudley/src/DomainFactory.cpp:689
Domain_ptr brick_driver(const bp::list &args)
Definition dudley/src/DomainFactory.cpp:712
Domain_ptr rectangle_driver(const bp::list &args)
Definition dudley/src/DomainFactory.cpp:754
index_t dim_t
Definition DataTypes.h:66
boost::shared_ptr< AbstractDomain > Domain_ptr
Definition AbstractDomain.h:43
boost::shared_ptr< JMPI_ > JMPI
Definition EsysMPI.h:76