Classes | |
| class | DudleyAdapterException |
| DudleyAdapterException exception class. More... | |
| struct | null_deleter |
| class | MeshAdapter |
| MeshAdapter implements the AbstractContinuousDomain interface for the Dudley library. More... | |
Functions | |
| void | setDudleyError (Dudley_ErrorCodeType errorCode, const std::string &errMess) |
| Provide a C++ interface to the dudley C funcion of the same name. Needed because of constness problems. | |
| void | checkDudleyError () |
| Convert a C dudley error into a C++ exception. | |
| void | checkPasoError () |
| Convert a C paso error into a C++ exception. | |
| void | cleanupAndThrow (Dudley_Mesh *mesh, Esys_MPIInfo *info, string msg) |
| Domain_ptr | loadMesh (const std::string &fileName) |
| A suite of factory methods for creating various MeshAdapters. | |
| Domain_ptr | readMesh (const std::string &fileName, int integrationOrder=-1, int reducedIntegrationOrder=-1, int optimize=0) |
| Read a mesh from a file. For MPI parallel runs fan out the mesh to multiple processes. | |
| Domain_ptr | readGmsh (const std::string &fileName, int numDim, int integrationOrder=-1, int reducedIntegrationOrder=-1, int optimize=0, int useMacroElements=0) |
| Read a gmsh mesh file. | |
| Domain_ptr | brick (double n0=1, double n1=1, double n2=1, int order=1, double l0=1.0, double l1=1.0, double l2=1.0, int periodic0=0, int periodic1=0, int periodic2=0, int integrationOrder=-1, int reducedIntegrationOrder=-1, int useElementsOnFace=0, int useFullElementOrder=0, int optimize=0) |
| Creates a rectangular mesh with n0 x n1 x n2 elements over the brick [0,l0] x [0,l1] x [0,l2]. | |
| Domain_ptr | rectangle (double n0=1, double n1=1, int order=1, double l0=1.0, double l1=1.0, int periodic0=false, int periodic1=false, int integrationOrder=-1, int reducedIntegrationOrder=-1, int useElementsOnFace=0, int useFullElementOrder=0, int optimize=0) |
| Creates a rectangular mesh with n0 x n1 elements over the brick [0,l0] x [0,l1]. | |
| DUDLEY_DLL_API escript::Domain_ptr dudley::brick | ( | double | n0 = 1, |
|
| double | n1 = 1, |
|||
| double | n2 = 1, |
|||
| int | order = 1, |
|||
| double | l0 = 1.0, |
|||
| double | l1 = 1.0, |
|||
| double | l2 = 1.0, |
|||
| int | periodic0 = 0, |
|||
| int | periodic1 = 0, |
|||
| int | periodic2 = 0, |
|||
| int | integrationOrder = -1, |
|||
| int | reducedIntegrationOrder = -1, |
|||
| int | useElementsOnFace = 0, |
|||
| int | useFullElementOrder = 0, |
|||
| int | optimize = 0 | |||
| ) |
Creates a rectangular mesh with n0 x n1 x n2 elements over the brick [0,l0] x [0,l1] x [0,l2].
| n0,n1,n2 | Input - number of elements in each dimension | |
| order | Input - =1, =-1 or =2 gives the order of shape function (-1= macro elements of order 1) | |
| l0,l1,l2 | Input - length of each side of brick | |
| integrationOrder | Input - order of the quadrature scheme. If integrationOrder<0 the integration order is selected independently. | |
| reducedIntegrationOrder | Input - order of the reduced quadrature scheme. If reducedIntegrationOrder<0 the integration order is selected independently. | |
| useElementsOnFace | Input - whether or not to use elements on face | |
| periodic0,periodic1,periodic2 | Input - whether or not boundary conditions of the dimension are periodic | |
| useFullElementOrder | ||
| optimize |
Referenced by BOOST_PYTHON_MODULE().
| void dudley::checkDudleyError | ( | ) |
Convert a C dudley error into a C++ exception.
Referenced by dudley::MeshAdapter::addPDEToLumpedSystem(), dudley::MeshAdapter::addPDEToRHS(), dudley::MeshAdapter::addPDEToSystem(), dudley::MeshAdapter::addPDEToTransportProblem(), dudley::MeshAdapter::dump(), dudley::MeshAdapter::getDim(), dudley::MeshAdapter::getTag(), dudley::MeshAdapter::interpolateOnDomain(), dudley::MeshAdapter::isCellOriented(), dudley::MeshAdapter::newSystemMatrix(), dudley::MeshAdapter::newTransportProblem(), dudley::MeshAdapter::probeInterpolationOnDomain(), dudley::MeshAdapter::saveDX(), dudley::MeshAdapter::setNewX(), dudley::MeshAdapter::setTagMap(), dudley::MeshAdapter::setTags(), dudley::MeshAdapter::setToGradient(), dudley::MeshAdapter::setToIntegrals(), dudley::MeshAdapter::setToNormal(), dudley::MeshAdapter::setToSize(), dudley::MeshAdapter::setToX(), and dudley::MeshAdapter::write().
| void dudley::checkPasoError | ( | ) |
Convert a C paso error into a C++ exception.
Referenced by finley::MeshAdapter::newSystemMatrix(), dudley::MeshAdapter::newSystemMatrix(), finley::MeshAdapter::newTransportProblem(), and dudley::MeshAdapter::newTransportProblem().
| void dudley::cleanupAndThrow | ( | Dudley_Mesh * | mesh, | |
| Esys_MPIInfo * | info, | |||
| string | msg | |||
| ) | [inline] |
References Dudley_Mesh_free(), and Esys_MPIInfo_free().
| DUDLEY_DLL_API escript::Domain_ptr dudley::loadMesh | ( | const std::string & | fileName | ) |
A suite of factory methods for creating various MeshAdapters.
Description: A suite of factory methods for creating various MeshAdapters.
recovers mesg from a dump file
| fileName | Input - The name of the file. |
Referenced by BOOST_PYTHON_MODULE().
| DUDLEY_DLL_API escript::Domain_ptr dudley::readGmsh | ( | const std::string & | fileName, | |
| int | numDim, | |||
| int | integrationOrder = -1, |
|||
| int | reducedIntegrationOrder = -1, |
|||
| int | optimize = 0, |
|||
| int | useMacroElements = 0 | |||
| ) |
Read a gmsh mesh file.
| fileName | Input - The name of the file. | |
| numDim | Input - spatial dimension | |
| integrationOrder | Input - order of the quadrature scheme. If integrationOrder<0 the integration order is selected independently. | |
| reducedIntegrationOrder | Input - order of the reduced quadrature scheme. If reducedIntegrationOrder<0 the integration order is selected independently. | |
| optimize | Input - switches on the optimization of node labels | |
| useMacroElements |
Referenced by BOOST_PYTHON_MODULE().
| DUDLEY_DLL_API escript::Domain_ptr dudley::readMesh | ( | const std::string & | fileName, | |
| int | integrationOrder = -1, |
|||
| int | reducedIntegrationOrder = -1, |
|||
| int | optimize = 0 | |||
| ) |
Read a mesh from a file. For MPI parallel runs fan out the mesh to multiple processes.
| fileName | Input - The name of the file. | |
| integrationOrder | Input - order of the quadrature scheme. If integrationOrder<0 the integration order is selected independently. | |
| reducedIntegrationOrder | Input - order of the reduced quadrature scheme. If reducedIntegrationOrder<0 the integration order is selected independently. | |
| optimize | Input - switches on the optimization of node labels |
Referenced by BOOST_PYTHON_MODULE().
| DUDLEY_DLL_API escript::Domain_ptr dudley::rectangle | ( | double | n0 = 1, |
|
| double | n1 = 1, |
|||
| int | order = 1, |
|||
| double | l0 = 1.0, |
|||
| double | l1 = 1.0, |
|||
| int | periodic0 = false, |
|||
| int | periodic1 = false, |
|||
| int | integrationOrder = -1, |
|||
| int | reducedIntegrationOrder = -1, |
|||
| int | useElementsOnFace = 0, |
|||
| int | useFullElementOrder = 0, |
|||
| int | optimize = 0 | |||
| ) |
Creates a rectangular mesh with n0 x n1 elements over the brick [0,l0] x [0,l1].
| n0,n1 | Input - number of elements in each dimension [We only except floats for py transition] | |
| order | Input - =1, =-1 or =2 gives the order of shape function (-1= macro elements of order 1) | |
| l0,l1 | Input - length of each side of brick | |
| integrationOrder | Input - order of the quadrature scheme. If integrationOrder<0 the integration order is selected independently. | |
| reducedIntegrationOrder | Input - order of the reduced quadrature scheme. If reducedIntegrationOrder<0 the integration order is selected independently. | |
| periodic0,periodic1 | Input - whether or not the boundary conditions of the dimension are periodic | |
| useElementsOnFace | Input - whether or not to use elements on face | |
| useFullElementOrder | ||
| optimize |
Referenced by BOOST_PYTHON_MODULE().
| void dudley::setDudleyError | ( | Dudley_ErrorCodeType | errorCode, | |
| const std::string & | errMess | |||
| ) |
Provide a C++ interface to the dudley C funcion of the same name. Needed because of constness problems.
1.7.1