escript  Revision_
Namespaces | Functions
MeshAdapterFactory.cpp File Reference
#include "MeshAdapterFactory.h"
#include "esysUtils/blocktimer.h"
#include <boost/python/extract.hpp>
#include <boost/scoped_array.hpp>
#include <sstream>

Namespaces

namespace  finley

Functions

void finley::cleanupAndThrow (Mesh *mesh, Esys_MPIInfo *info, string msg)
Domain_ptr finley::loadMesh (const std::string &fileName)
 A suite of factory methods for creating various MeshAdapters.
Domain_ptr finley::readMesh (const std::string &fileName, int integrationOrder=-1, int reducedIntegrationOrder=-1, bool optimize=false)
 Read a mesh from a file. For MPI parallel runs fan out the mesh to multiple processes.
Domain_ptr finley::readGmsh (const std::string &fileName, int numDim, int integrationOrder=-1, int reducedIntegrationOrder=-1, bool optimize=false, bool useMacroElements=false)
 Read a gmsh mesh file.
escript::Domain_ptr finley::brick (int n0=1, int n1=1, int 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 >())
 Creates a rectangular mesh with n0 x n1 x n2 elements over the brick [0,l0] x [0,l1] x [0,l2].
Domain_ptr finley::brick_driver (const boost::python::list &args)
 Python driver for brick()
escript::Domain_ptr finley::rectangle (int n0=1, int 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 >())
 Creates a rectangular mesh with n0 x n1 elements over the brick [0,l0] x [0,l1].
Domain_ptr finley::meshMerge (const boost::python::list &meshList)
 Merges a list of meshes into one list.
Domain_ptr finley::rectangle_driver (const boost::python::list &args)
 Python driver for rectangle()
Domain_ptr finley::glueFaces (const boost::python::list &meshList, double safetyFactor=0.2, double tolerance=1.e-8, bool optimize=false)
 Detects matching faces in the mesh, removes them from the mesh and joins the elements touched by the face elements.
Domain_ptr finley::joinFaces (const boost::python::list &meshList, double safetyFactor=0.2, double tolerance=1.e-8, bool optimize=false)
 Detects matching faces in the mesh and replaces them by joint elements.