dudley/src/DomainFactory.h
Go to the documentation of this file.
/*****************************************************************************
*
* Copyright (c) 2003-2017 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 by Centre for Geoscience Computing (GeoComp)
*
*****************************************************************************/
#ifndef __DUDLEY_DOMAINFACTORY_H__
#define __DUDLEY_DOMAINFACTORY_H__
#include <dudley/DudleyDomain.h>
#include <boost/python/list.hpp>
#include <sstream>
namespace dudley {
escript::Domain_ptr readMesh(const std::string& fileName,
int integrationOrder = -1,
int reducedIntegrationOrder = -1,
bool optimize = false);
escript::Domain_ptr readGmsh(const std::string& fileName, int numDim,
int integrationOrder = -1,
int reducedIntegrationOrder = -1,
bool optimize = false);
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);
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);
escript::Domain_ptr rectangle_driver(const boost::python::list& args);
} // end of namespace
#endif // __DUDLEY_DOMAINFACTORY_H__
dudley::readMesh
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:673
paso::util::l2
double l2(dim_t n, const double *x, escript::JMPI mpiinfo)
returns the global L2 norm of x
Definition: PasoUtil.cpp:501
dudley::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)
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:688
escript::Domain_ptr
boost::shared_ptr< AbstractDomain > Domain_ptr
Definition: AbstractDomain.h:36
escript::JMPI
boost::shared_ptr< JMPI_ > JMPI
Definition: EsysMPI.h:71
dudley::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)
Creates a 2-dimensional rectangular mesh with n0 x n1 x 2 Tri3 elements over the rectangle [0...
Definition: dudley/src/DomainFactory.cpp:736
dudley::brick_driver
Domain_ptr brick_driver(const bp::list &args)
Definition: dudley/src/DomainFactory.cpp:711
dudley::readGmsh
Domain_ptr readGmsh(const string &fileName, int numDim, int, int, bool optimize)
reads a gmsh mesh file
Definition: dudley/src/DomainFactory.cpp:680
dudley
A suite of factory methods for creating 2D and 3D dudley domains.
Definition: dudley/src/Assemble.h:31
dudley::rectangle_driver
Domain_ptr rectangle_driver(const bp::list &args)
Definition: dudley/src/DomainFactory.cpp:753
escript::DataTypes::dim_t
index_t dim_t
Definition: DataTypes.h:64