finley/src/DomainFactory.h
Go to the documentation of this file.
/*****************************************************************************
*
* Copyright (c) 2003-2020 by The University of Queensland
* http://www.uq.edu.au
*
* Primary Business: Queensland, Australia
* Licensed under the Apache License, version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Development until 2012 by Earth Systems Science Computational Center (ESSCC)
* Development 2012-2013 by School of Earth Sciences
* Development from 2014-2017 by Centre for Geoscience Computing (GeoComp)
* Development from 2019 by School of Earth and Environmental Sciences
**
*****************************************************************************/
#ifndef __FINLEY_DOMAINFACTORY_H__
#define __FINLEY_DOMAINFACTORY_H__
#include <finley/FinleyDomain.h>
#include <boost/python/list.hpp>
#include <sstream>
namespace finley {
escript::Domain_ptr readMesh_driver(const boost::python::list& args);
escript::Domain_ptr readGmsh_driver(const boost::python::list& args);
escript::Domain_ptr brick(escript::JMPI jmpi,
dim_t n0=1, dim_t n1=1, dim_t n2=1, int order=1,
double l0=1.0, double l1=1.0, double l2=1.0,
bool periodic0=false, bool periodic1=false, bool periodic2=false,
int integrationOrder=-1, int reducedIntegrationOrder=-1,
bool useElementsOnFace=false,
bool useFullElementOrder=false, bool optimize=false,
const std::vector<double>& points=std::vector<double>(),
const std::vector<int>& tags=std::vector<int>(),
const std::map<std::string, int>& tagNamesToNums=std::map<std::string, int>());
escript::Domain_ptr brick_driver(const boost::python::list& args);
escript::Domain_ptr rectangle(escript::JMPI jmpi,
dim_t n0 = 1, dim_t n1 = 1, int order = 1,
double l0 = 1.0, double l1 = 1.0,
bool periodic0 = false, bool periodic1 = false,
int integrationOrder = -1,
int reducedIntegrationOrder = -1,
bool useElementsOnFace = false,
bool useFullElementOrder = false,
bool optimize = false,
const std::vector<double>& points = std::vector<double>(),
const std::vector<int>& tags = std::vector<int>(),
const std::map<std::string, int>& tagNamesToNums = std::map<std::string, int>());
escript::Domain_ptr rectangle_driver(const boost::python::list& args);
escript::Domain_ptr meshMerge(const boost::python::list& meshList);
escript::Domain_ptr glueFaces(const boost::python::list& meshList,
double safetyFactor = 0.2, double tolerance = 1.e-8,
bool optimize = false);
escript::Domain_ptr joinFaces(const boost::python::list& meshList,
double safetyFactor = 0.2, double tolerance = 1.e-8,
bool optimize = false);
} // end of namespace
#endif // __FINLEY_DOMAINFACTORY_H__
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