ESScript
Revision_
|
RipleyDomain extends the AbstractContinuousDomain interface for the Ripley library and is the base class for Rectangle and Brick. More...
#include <RipleyDomain.h>
Public Member Functions | |
RipleyDomain (dim_t dim) | |
Constructor with number of dimensions. Allocates MPI info structure. | |
~RipleyDomain () | |
Destructor. | |
virtual int | getMPISize () const |
returns the number of processors used for this domain | |
virtual int | getMPIRank () const |
returns the MPI rank of this processor | |
virtual void | MPIBarrier () const |
if compiled for MPI then executes an MPI_Barrier, else does nothing | |
virtual bool | onMasterProcessor () const |
returns true if on MPI processor 0, else false | |
unsigned int | getMPIComm () const |
returns the MPI communicator | |
virtual bool | isValidFunctionSpaceType (int fsType) const |
returns true if the argument is a valid function space type for this domain | |
virtual std::string | functionSpaceTypeAsString (int fsType) const |
returns a description for the given function space type code | |
virtual int | getDim () const |
returns the number of spatial dimensions of the domain | |
virtual bool | operator== (const escript::AbstractDomain &other) const |
equality operator | |
virtual bool | operator!= (const escript::AbstractDomain &other) const |
inequality operator | |
virtual std::pair< int, int > | getDataShape (int fsType) const |
returns the number of data points per sample, and the number of samples as a pair. | |
int | getTagFromSampleNo (int fsType, int sampleNo) const |
returns the tag key for the given sample number | |
virtual void | setTagMap (const std::string &name, int tag) |
sets a map from a clear tag name to a tag key | |
virtual int | getTag (const std::string &name) const |
returns the tag key for tag name | |
virtual bool | isValidTagName (const std::string &name) const |
returns true if name is a defined tag name | |
virtual std::string | showTagNames () const |
returns all tag names in a single string separated by commas | |
virtual void | setNewX (const escript::Data &arg) |
assigns new location to the domain. | |
virtual void | interpolateOnDomain (escript::Data &target, const escript::Data &source) const |
interpolates data given on source onto target where source and target have to be given on the same domain | |
virtual bool | probeInterpolationOnDomain (int fsType_source, int fsType_target) const |
returns true if data on fsType_source can be interpolated onto fsType_target, false otherwise | |
virtual signed char | preferredInterpolationOnDomain (int fsType_source, int fsType_target) const |
Preferred direction of interpolation. | |
bool | commonFunctionSpace (const std::vector< int > &fs, int &resultcode) const |
given a vector of FunctionSpace type codes, passes back a code which all can be interpolated to | |
virtual void | interpolateACross (escript::Data &target, const escript::Data &source) const |
interpolates data given on source onto target where source and target are given on different domains | |
virtual bool | probeInterpolationACross (int, const escript::AbstractDomain &, int) const |
determines whether interpolation from source to target is possible | |
virtual escript::Data | getX () const |
returns locations in the FEM nodes | |
virtual escript::Data | getNormal () const |
returns boundary normals at the quadrature point on the face elements | |
virtual escript::Data | getSize () const |
returns the element size | |
virtual void | setToX (escript::Data &arg) const |
copies the location of data points into arg. The domain of arg has to match this domain. | |
virtual void | setToGradient (escript::Data &out, const escript::Data &in) const |
copies the gradient of 'in' into 'out'. The actual function space to be considered for the gradient is defined by 'in'. Both arguments have to be defined on this domain. | |
virtual void | setTags (const int fsType, const int newTag, const escript::Data &mask) const |
assigns new tag newTag to all samples of given function space with a positive value of mask for any of its sample points | |
virtual bool | isCellOriented (int fsType) const |
returns true if data on this domain and given function space type has to be considered as cell centered data | |
virtual StatusType | getStatus () const |
returns a status indicator of the domain. The status identifier should be unique over the lifetime of the object but may be updated if changes to the domain happen, e.g. modifications to its geometry. | |
virtual int | getNumberOfTagsInUse (int fsType) const |
returns the number of tags in use for a function space type | |
virtual const int * | borrowListOfTagsInUse (int fsType) const |
returns a pointer to the list of tags in use for a function space type | |
virtual bool | canTag (int fsType) const |
checks if this domain allows tags for the specified function space type | |
virtual int | getApproximationOrder (const int fsType) const |
returns the approximation order used for a function space | |
virtual bool | supportsContactElements () const |
returns true if this domain supports contact elements, false otherwise | |
virtual int | getContinuousFunctionCode () const |
returns a continuous FunctionSpace code | |
virtual int | getReducedContinuousFunctionCode () const |
returns a continuous on reduced order nodes FunctionSpace code | |
virtual int | getFunctionCode () const |
returns a function FunctionSpace code | |
virtual int | getReducedFunctionCode () const |
returns a function with reduced integration order FunctionSpace code | |
virtual int | getFunctionOnBoundaryCode () const |
returns a function on boundary FunctionSpace code | |
virtual int | getReducedFunctionOnBoundaryCode () const |
returns a function on boundary with reduced integration order FunctionSpace code | |
virtual int | getFunctionOnContactZeroCode () const |
return a FunctionOnContactZero code | |
virtual int | getReducedFunctionOnContactZeroCode () const |
returns a FunctionOnContactZero code with reduced integration order | |
virtual int | getFunctionOnContactOneCode () const |
returns a FunctionOnContactOne code | |
virtual int | getReducedFunctionOnContactOneCode () const |
returns a FunctionOnContactOne code with reduced integration order | |
virtual int | getSolutionCode () const |
returns a Solution FunctionSpace code | |
virtual int | getReducedSolutionCode () const |
returns a ReducedSolution FunctionSpace code | |
virtual int | getDiracDeltaFunctionsCode () const |
returns a DiracDeltaFunctions FunctionSpace code | |
virtual int | getSystemMatrixTypeId (const int solver, const int preconditioner, const int package, const bool symmetry) const |
returns the identifier of the matrix type to be used for the global stiffness matrix when a particular solver, package, preconditioner, and symmetric matrix is used | |
virtual int | getTransportTypeId (const int solver, const int preconditioner, const int package, const bool symmetry) const |
returns the identifier of the transport problem type to be used when a particular solver, preconditioner, package and symmetric matrix is used | |
virtual void | setToIntegrals (DoubleVector &integrals, const escript::Data &arg) const |
copies the integrals of the function defined by arg into integrals. arg has to be defined on this domain. | |
virtual void | addPDEToSystem (escript::AbstractSystemMatrix &mat, escript::Data &rhs, const escript::Data &A, const escript::Data &B, const escript::Data &C, const escript::Data &D, const escript::Data &X, const escript::Data &Y, const escript::Data &d, const escript::Data &y, const escript::Data &d_contact, const escript::Data &y_contact, const escript::Data &d_dirac, const escript::Data &y_dirac) const |
adds a PDE onto the stiffness matrix mat and rhs | |
virtual void | addPDEToRHS (escript::Data &rhs, const escript::Data &X, const escript::Data &Y, const escript::Data &y, const escript::Data &y_contact, const escript::Data &y_dirac) const |
adds a PDE onto rhs | |
virtual void | addPDEToTransportProblem (escript::AbstractTransportProblem &tp, escript::Data &source, const escript::Data &M, const escript::Data &A, const escript::Data &B, const escript::Data &C, const escript::Data &D, const escript::Data &X, const escript::Data &Y, const escript::Data &d, const escript::Data &y, const escript::Data &d_contact, const escript::Data &y_contact, const escript::Data &d_dirac, const escript::Data &y_dirac) const |
adds a PDE onto a transport problem | |
virtual escript::ASM_ptr | newSystemMatrix (const int row_blocksize, const escript::FunctionSpace &row_functionspace, const int column_blocksize, const escript::FunctionSpace &column_functionspace, const int type) const |
creates a stiffness matrix and initializes it with zeros | |
virtual escript::ATP_ptr | newTransportProblem (const int blocksize, const escript::FunctionSpace &functionspace, const int type) const |
creates a transport problem | |
virtual void | Print_Mesh_Info (const bool full=false) const |
writes information about the mesh to standard output | |
virtual std::string | getDescription () const =0 |
writes the current mesh to a file with the given name | |
void | dump (const std::string &filename) const =0 |
dumps the mesh to a file with the given name | |
const int * | borrowSampleReferenceIDs (int fsType) const =0 |
returns the array of reference numbers for a function space type | |
virtual void | setToNormal (escript::Data &out) const =0 |
copies the surface normals at data points into out. The actual function space to be considered is defined by out. out has to be defined on this domain. | |
virtual void | setToSize (escript::Data &out) const =0 |
copies the size of samples into out. The actual function space to be considered is defined by out. out has to be defined on this domain. | |
virtual void | readNcGrid (escript::Data &out, std::string filename, std::string varname, const std::vector< int > &first, const std::vector< int > &numValues, const std::vector< int > &multiplier) const =0 |
virtual void | readBinaryGrid (escript::Data &out, std::string filename, const std::vector< int > &first, const std::vector< int > &numValues, const std::vector< int > &multiplier, int byteOrder, int dataType) const =0 |
virtual void | writeBinaryGrid (const escript::Data &in, std::string filename, int byteOrder, int dataType) const =0 |
virtual bool | ownSample (int fsType, index_t id) const =0 |
returns true if this rank owns the sample id on given function space | |
virtual int | getNumDataPointsGlobal () const =0 |
returns the number of data points summed across all MPI processes | |
virtual const int * | getNumNodesPerDim () const =0 |
returns the number of nodes per MPI rank in each dimension | |
virtual const int * | getNumElementsPerDim () const =0 |
returns the number of elements per MPI rank in each dimension | |
virtual const int * | getNumFacesPerBoundary () const =0 |
returns the number of face elements in the order (left,right,bottom,top,[front,back]) on current MPI rank | |
virtual IndexVector | getNodeDistribution () const =0 |
returns the node distribution vector | |
virtual const int * | getNumSubdivisionsPerDim () const =0 |
returns the number of spatial subdivisions in each dimension | |
virtual double | getLocalCoordinate (int index, int dim) const =0 |
returns the index'th coordinate value in given dimension for this rank | |
virtual boost::python::tuple | getGridParameters () const =0 |
returns the tuple (origin, spacing, number_of_elements) | |
virtual bool | supportsFilter (const boost::python::tuple &t) const |
true if this domain can handle to specified tuple of filter options. | |
virtual escript::Data | randomFill (long seed, const boost::python::tuple &filter) const |
Generate filtered random data. |
Protected Member Functions | |
void | copyData (escript::Data &out, escript::Data &in) const |
copies data in 'in' to 'out' (both must be on same function space) | |
void | averageData (escript::Data &out, escript::Data &in) const |
averages data in 'in' to 'out' (from non-reduced to reduced fs) | |
void | multiplyData (escript::Data &out, escript::Data &in) const |
copies data in 'in' to 'out' (from reduced to non-reduced fs) | |
void | updateTagsInUse (int fsType) const |
Paso_Pattern * | createPasoPattern (const IndexVector &ptr, const IndexVector &index, const dim_t M, const dim_t N) const |
allocates and returns a Paso pattern structure | |
Paso_Pattern * | createMainPattern () const |
creates the pattern for the main block of the system matrix | |
void | createCouplePatterns (const std::vector< IndexVector > &colIndices, const dim_t N, Paso_Pattern **colPattern, Paso_Pattern **rowPattern) const |
void | addToSystemMatrix (Paso_SystemMatrix *in, const IndexVector &nodes_Eq, dim_t num_Eq, const IndexVector &nodes_Sol, dim_t num_Sol, const DoubleVector &array) const |
virtual dim_t | getNumNodes () const =0 |
returns the number of nodes per MPI rank | |
virtual dim_t | getNumElements () const =0 |
returns the number of elements per MPI rank | |
virtual dim_t | getNumDOF () const =0 |
returns the number of degrees of freedom per MPI rank | |
virtual dim_t | getNumFaceElements () const =0 |
returns the number of face elements on current MPI rank | |
virtual dim_t | insertNeighbourNodes (IndexVector &index, index_t node) const =0 |
virtual void | assembleCoordinates (escript::Data &arg) const =0 |
populates the data object 'arg' with the node coordinates | |
virtual void | assembleGradient (escript::Data &out, escript::Data &in) const =0 |
computes the gradient of 'in' and puts the result in 'out' | |
virtual void | assembleIntegrate (DoubleVector &integrals, escript::Data &arg) const =0 |
copies the integrals of the function defined by 'arg' into 'integrals' | |
virtual void | assemblePDESingle (Paso_SystemMatrix *mat, escript::Data &rhs, const escript::Data &A, const escript::Data &B, const escript::Data &C, const escript::Data &D, const escript::Data &X, const escript::Data &Y) const =0 |
virtual void | assemblePDEBoundarySingle (Paso_SystemMatrix *mat, escript::Data &rhs, const escript::Data &d, const escript::Data &y) const =0 |
virtual void | assemblePDESingleReduced (Paso_SystemMatrix *mat, escript::Data &rhs, const escript::Data &A, const escript::Data &B, const escript::Data &C, const escript::Data &D, const escript::Data &X, const escript::Data &Y) const =0 |
virtual void | assemblePDEBoundarySingleReduced (Paso_SystemMatrix *mat, escript::Data &rhs, const escript::Data &d, const escript::Data &y) const =0 |
virtual void | assemblePDESystem (Paso_SystemMatrix *mat, escript::Data &rhs, const escript::Data &A, const escript::Data &B, const escript::Data &C, const escript::Data &D, const escript::Data &X, const escript::Data &Y) const =0 |
virtual void | assemblePDEBoundarySystem (Paso_SystemMatrix *mat, escript::Data &rhs, const escript::Data &d, const escript::Data &y) const =0 |
virtual void | assemblePDESystemReduced (Paso_SystemMatrix *mat, escript::Data &rhs, const escript::Data &A, const escript::Data &B, const escript::Data &C, const escript::Data &D, const escript::Data &X, const escript::Data &Y) const =0 |
virtual void | assemblePDEBoundarySystemReduced (Paso_SystemMatrix *mat, escript::Data &rhs, const escript::Data &d, const escript::Data &y) const =0 |
virtual Paso_SystemMatrixPattern * | getPattern (bool reducedRowOrder, bool reducedColOrder) const =0 |
returns the Paso system matrix pattern | |
virtual void | interpolateNodesOnElements (escript::Data &out, escript::Data &in, bool reduced) const =0 |
interpolates data on nodes in 'in' onto (reduced) elements in 'out' | |
virtual void | interpolateNodesOnFaces (escript::Data &out, escript::Data &in, bool reduced) const =0 |
interpolates data on nodes in 'in' onto (reduced) face elements in 'out' | |
virtual void | nodesToDOF (escript::Data &out, escript::Data &in) const =0 |
converts data on nodes in 'in' to degrees of freedom in 'out' | |
virtual void | dofToNodes (escript::Data &out, escript::Data &in) const =0 |
converts data on degrees of freedom in 'in' to nodes in 'out' |
Protected Attributes | |
dim_t | m_numDim |
StatusType | m_status |
Esys_MPIInfo * | m_mpiInfo |
TagMap | m_tagMap |
IndexVector | m_nodeTags |
IndexVector | m_nodeTagsInUse |
IndexVector | m_elementTags |
IndexVector | m_elementTagsInUse |
IndexVector | m_faceTags |
IndexVector | m_faceTagsInUse |
Private Member Functions | |
void | assemblePDE (Paso_SystemMatrix *mat, escript::Data &rhs, const escript::Data &A, const escript::Data &B, const escript::Data &C, const escript::Data &D, const escript::Data &X, const escript::Data &Y) const |
calls the right PDE assembly routines after performing input checks | |
void | assemblePDEBoundary (Paso_SystemMatrix *mat, escript::Data &rhs, const escript::Data &d, const escript::Data &y) const |
RipleyDomain extends the AbstractContinuousDomain interface for the Ripley library and is the base class for Rectangle and Brick.
ripley::RipleyDomain::RipleyDomain | ( | dim_t | dim | ) |
Constructor with number of dimensions. Allocates MPI info structure.
References Esys_MPIInfo_alloc(), m_mpiInfo, and MPI_COMM_WORLD.
ripley::RipleyDomain::~RipleyDomain | ( | ) |
Destructor.
References Esys_MPIInfo_free(), and m_mpiInfo.
|
virtual |
adds a PDE onto rhs
References assemblePDE(), and assemblePDEBoundary().
Referenced by BOOST_PYTHON_MODULE().
|
virtual |
adds a PDE onto the stiffness matrix mat and rhs
References assemblePDE(), assemblePDEBoundary(), paso::SystemMatrixAdapter::getPaso_SystemMatrix(), and S.
Referenced by BOOST_PYTHON_MODULE().
|
virtual |
adds a PDE onto a transport problem
References assemblePDE(), assemblePDEBoundary(), paso::TransportProblemAdapter::getPaso_TransportProblem(), Paso_TransportProblem::mass_matrix, and Paso_TransportProblem::transport_matrix.
Referenced by BOOST_PYTHON_MODULE().
|
protected |
References Paso_SystemMatrix::col_block_size, Paso_SystemMatrix::col_coupleBlock, Paso_Pattern::index, Paso_SystemMatrix::mainBlock, Paso_SystemMatrixPattern::mainPattern, MATRIX_FORMAT_CSC, MATRIX_FORMAT_OFFSET1, MATRIX_FORMAT_TRILINOS_CRS, Paso_Pattern::numInput, Paso_Pattern::numOutput, Paso_SystemMatrix::pattern, Paso_SparseMatrix::pattern, Paso_Pattern::ptr, Paso_SystemMatrix::row_block_size, Paso_SystemMatrix::row_coupleBlock, Paso_SystemMatrix::type, UPDATE_BLOCK, and Paso_SparseMatrix::val.
Referenced by ripley::Brick::addToMatrixAndRHS(), and ripley::Rectangle::addToMatrixAndRHS().
|
protectedpure virtual |
populates the data object 'arg' with the node coordinates
Implemented in ripley::Rectangle, and ripley::Brick.
Referenced by setToX().
|
protectedpure virtual |
computes the gradient of 'in' and puts the result in 'out'
Implemented in ripley::Rectangle, and ripley::Brick.
Referenced by setToGradient().
|
protectedpure virtual |
copies the integrals of the function defined by 'arg' into 'integrals'
Implemented in ripley::Rectangle, and ripley::Brick.
Referenced by setToIntegrals().
|
private |
calls the right PDE assembly routines after performing input checks
References assemblePDESingle(), assemblePDESingleReduced(), assemblePDESystem(), assemblePDESystemReduced(), ripley::Elements, Paso_SystemMatrix::logical_col_block_size, Paso_SystemMatrix::logical_row_block_size, and ripley::ReducedElements.
Referenced by addPDEToRHS(), addPDEToSystem(), and addPDEToTransportProblem().
|
private |
calls the right PDE boundary assembly routines after performing input checks
References assemblePDEBoundarySingle(), assemblePDEBoundarySingleReduced(), assemblePDEBoundarySystem(), assemblePDEBoundarySystemReduced(), ripley::FaceElements, Paso_SystemMatrix::logical_col_block_size, Paso_SystemMatrix::logical_row_block_size, and ripley::ReducedFaceElements.
Referenced by addPDEToRHS(), addPDEToSystem(), and addPDEToTransportProblem().
|
protectedpure virtual |
assembles boundary conditions of a single PDE into the system matrix 'mat' and the right hand side 'rhs'
Implemented in ripley::Rectangle, and ripley::Brick.
Referenced by assemblePDEBoundary().
|
protectedpure virtual |
assembles boundary conditions of a single PDE with reduced order into the system matrix 'mat' and the right hand side 'rhs'
Implemented in ripley::Rectangle, and ripley::Brick.
Referenced by assemblePDEBoundary().
|
protectedpure virtual |
assembles boundary conditions of a system of PDEs into the system matrix 'mat' and the right hand side 'rhs'
Implemented in ripley::Rectangle, and ripley::Brick.
Referenced by assemblePDEBoundary().
|
protectedpure virtual |
assembles boundary conditions of a system of PDEs with reduced order into the system matrix 'mat' and the right hand side 'rhs'
Implemented in ripley::Rectangle, and ripley::Brick.
Referenced by assemblePDEBoundary().
|
protectedpure virtual |
assembles a single PDE into the system matrix 'mat' and the right hand side 'rhs'
Implemented in ripley::Rectangle, and ripley::Brick.
Referenced by assemblePDE().
|
protectedpure virtual |
assembles a single PDE with reduced order into the system matrix 'mat' and the right hand side 'rhs'
Implemented in ripley::Rectangle, and ripley::Brick.
Referenced by assemblePDE().
|
protectedpure virtual |
assembles a system of PDEs into the system matrix 'mat' and the right hand side 'rhs'
Implemented in ripley::Rectangle, and ripley::Brick.
Referenced by assemblePDE().
|
protectedpure virtual |
assembles a system of PDEs with reduced order into the system matrix 'mat' and the right hand side 'rhs'
Implemented in ripley::Rectangle, and ripley::Brick.
Referenced by assemblePDE().
|
protected |
averages data in 'in' to 'out' (from non-reduced to reduced fs)
Referenced by interpolateOnDomain().
|
virtual |
returns a pointer to the list of tags in use for a function space type
References ripley::Elements, ripley::FaceElements, m_elementTagsInUse, m_faceTagsInUse, m_nodeTagsInUse, ripley::Nodes, ripley::ReducedElements, and ripley::ReducedFaceElements.
|
pure virtual |
returns the array of reference numbers for a function space type
fsType | The function space type |
Implemented in ripley::Brick, and ripley::Rectangle.
Referenced by weipa::RipleyNodes::initFromRipley(), and weipa::RipleyElements::initFromRipley().
|
virtual |
checks if this domain allows tags for the specified function space type
References ripley::DegreesOfFreedom, ripley::Elements, ripley::FaceElements, getDescription(), ripley::Nodes, ripley::Points, ripley::ReducedDegreesOfFreedom, ripley::ReducedElements, ripley::ReducedFaceElements, and ripley::ReducedNodes.
bool ripley::RipleyDomain::commonFunctionSpace | ( | const std::vector< int > & | fs, |
int & | resultcode | ||
) | const |
given a vector of FunctionSpace type codes, passes back a code which all can be interpolated to
References ripley::DegreesOfFreedom, ripley::Elements, ripley::FaceElements, ripley::Nodes, ripley::Points, ripley::ReducedDegreesOfFreedom, ripley::ReducedElements, ripley::ReducedFaceElements, and ripley::ReducedNodes.
|
protected |
copies data in 'in' to 'out' (both must be on same function space)
Referenced by interpolateOnDomain().
|
protected |
creates the pattern for the column and row couple blocks of the system matrix. colIndices[i] contains all IDs of DOFs that are connected with DOF i but remote and 'N' is the total number of remote components
References createPasoPattern(), getNumDOF(), M, and N.
Referenced by ripley::Brick::createPattern(), and ripley::Rectangle::createPattern().
|
protected |
creates the pattern for the main block of the system matrix
References createPasoPattern(), getNumDOF(), and insertNeighbourNodes().
Referenced by ripley::Brick::createPattern(), and ripley::Rectangle::createPattern().
|
protected |
allocates and returns a Paso pattern structure
References MATRIX_FORMAT_DEFAULT, and Paso_Pattern_alloc().
Referenced by createCouplePatterns(), and createMainPattern().
|
protectedpure virtual |
converts data on degrees of freedom in 'in' to nodes in 'out'
Implemented in ripley::Rectangle, and ripley::Brick.
Referenced by interpolateOnDomain().
|
pure virtual |
dumps the mesh to a file with the given name
filename | The name of the output file |
Implemented in ripley::Brick, and ripley::Rectangle.
Referenced by BOOST_PYTHON_MODULE().
|
virtual |
returns a description for the given function space type code
References ripley::DegreesOfFreedom, ripley::Elements, ripley::FaceElements, ripley::Nodes, ripley::Points, ripley::ReducedDegreesOfFreedom, ripley::ReducedElements, ripley::ReducedFaceElements, and ripley::ReducedNodes.
Referenced by interpolateOnDomain(), setToGradient(), and setToIntegrals().
|
inlinevirtual |
returns the approximation order used for a function space
|
inlinevirtual |
returns a continuous FunctionSpace code
References ripley::Nodes.
Referenced by ripley::Rectangle::randomFill().
|
virtual |
returns the number of data points per sample, and the number of samples as a pair.
fsType | The function space type |
References ripley::DegreesOfFreedom, ripley::Elements, ripley::FaceElements, getDescription(), getNumDOF(), getNumElements(), getNumFaceElements(), getNumNodes(), m_numDim, ripley::Nodes, ripley::Points, ripley::ReducedDegreesOfFreedom, ripley::ReducedElements, ripley::ReducedFaceElements, and ripley::ReducedNodes.
Referenced by BOOST_PYTHON_MODULE(), weipa::RipleyNodes::initFromRipley(), and weipa::RipleyElements::initFromRipley().
|
pure virtual |
writes the current mesh to a file with the given name
filename | The name of the file to write to |
returns a description for this domain
Implemented in ripley::Brick, and ripley::Rectangle.
Referenced by BOOST_PYTHON_MODULE(), canTag(), getDataShape(), isCellOriented(), preferredInterpolationOnDomain(), Print_Mesh_Info(), and probeInterpolationOnDomain().
|
inlinevirtual |
returns the number of spatial dimensions of the domain
Referenced by BOOST_PYTHON_MODULE(), weipa::RipleyNodes::initFromRipley(), and weipa::RipleyElements::initFromRipley().
|
inlinevirtual |
returns a DiracDeltaFunctions FunctionSpace code
References ripley::Points.
|
inlinevirtual |
returns a function FunctionSpace code
References ripley::Elements.
|
inlinevirtual |
returns a function on boundary FunctionSpace code
References ripley::FaceElements.
|
inlinevirtual |
returns a FunctionOnContactOne code
|
inlinevirtual |
return a FunctionOnContactZero code
|
pure virtual |
returns the tuple (origin, spacing, number_of_elements)
Implemented in ripley::Brick, and ripley::Rectangle.
Referenced by BOOST_PYTHON_MODULE().
|
pure virtual |
returns the index'th coordinate value in given dimension for this rank
Implemented in ripley::Brick, and ripley::Rectangle.
Referenced by weipa::RipleyNodes::initFromRipley().
|
inline |
returns the MPI communicator
|
inlinevirtual |
returns the MPI rank of this processor
Referenced by BOOST_PYTHON_MODULE(), and weipa::RipleyElements::initFromRipley().
|
inlinevirtual |
returns the number of processors used for this domain
Referenced by BOOST_PYTHON_MODULE(), interpolateOnDomain(), ripley::Rectangle::ownSample(), ripley::Brick::ownSample(), and setToGradient().
|
pure virtual |
returns the node distribution vector
Implemented in ripley::Brick, and ripley::Rectangle.
Referenced by weipa::RipleyNodes::initFromRipley().
|
virtual |
returns boundary normals at the quadrature point on the face elements
Referenced by BOOST_PYTHON_MODULE().
|
virtual |
returns the number of tags in use for a function space type
References ripley::Elements, ripley::FaceElements, m_elementTagsInUse, m_faceTagsInUse, m_nodeTagsInUse, ripley::Nodes, ripley::ReducedElements, and ripley::ReducedFaceElements.
|
pure virtual |
returns the number of data points summed across all MPI processes
Implemented in ripley::Brick, and ripley::Rectangle.
Referenced by BOOST_PYTHON_MODULE(), and weipa::RipleyNodes::initFromRipley().
|
protectedpure virtual |
returns the number of degrees of freedom per MPI rank
Implemented in ripley::Rectangle, and ripley::Brick.
Referenced by createCouplePatterns(), createMainPattern(), and getDataShape().
|
protectedpure virtual |
returns the number of elements per MPI rank
Implemented in ripley::Rectangle, and ripley::Brick.
Referenced by getDataShape(), Print_Mesh_Info(), and setTags().
|
pure virtual |
returns the number of elements per MPI rank in each dimension
Implemented in ripley::Brick, and ripley::Rectangle.
Referenced by weipa::RipleyElements::initFromRipley().
|
protectedpure virtual |
returns the number of face elements on current MPI rank
Implemented in ripley::Rectangle, and ripley::Brick.
Referenced by getDataShape(), and setTags().
|
pure virtual |
returns the number of face elements in the order (left,right,bottom,top,[front,back]) on current MPI rank
Implemented in ripley::Brick, and ripley::Rectangle.
Referenced by weipa::RipleyElements::initFromRipley().
|
protectedpure virtual |
returns the number of nodes per MPI rank
Implemented in ripley::Rectangle, and ripley::Brick.
Referenced by getDataShape(), and setTags().
|
pure virtual |
returns the number of nodes per MPI rank in each dimension
Implemented in ripley::Brick, and ripley::Rectangle.
Referenced by weipa::RipleyNodes::initFromRipley(), and weipa::RipleyElements::initFromRipley().
|
pure virtual |
returns the number of spatial subdivisions in each dimension
Implemented in ripley::Brick, and ripley::Rectangle.
Referenced by weipa::RipleyElements::initFromRipley().
|
protectedpure virtual |
returns the Paso system matrix pattern
Implemented in ripley::Rectangle, and ripley::Brick.
Referenced by newSystemMatrix(), and newTransportProblem().
|
inlinevirtual |
returns a continuous on reduced order nodes FunctionSpace code
References ripley::ReducedNodes.
|
inlinevirtual |
returns a function with reduced integration order FunctionSpace code
References ripley::ReducedElements.
|
inlinevirtual |
returns a function on boundary with reduced integration order FunctionSpace code
References ripley::ReducedFaceElements.
|
inlinevirtual |
returns a FunctionOnContactOne code with reduced integration order
|
inlinevirtual |
returns a FunctionOnContactZero code with reduced integration order
|
inlinevirtual |
returns a ReducedSolution FunctionSpace code
References ripley::ReducedDegreesOfFreedom.
|
virtual |
returns the element size
Referenced by BOOST_PYTHON_MODULE().
|
inlinevirtual |
returns a Solution FunctionSpace code
References ripley::DegreesOfFreedom.
|
inlinevirtual |
returns a status indicator of the domain. The status identifier should be unique over the lifetime of the object but may be updated if changes to the domain happen, e.g. modifications to its geometry.
|
virtual |
returns the identifier of the matrix type to be used for the global stiffness matrix when a particular solver, package, preconditioner, and symmetric matrix is used
solver | |
preconditioner | |
package | |
symmetry |
References m_mpiInfo.
Referenced by BOOST_PYTHON_MODULE().
|
inlinevirtual |
int ripley::RipleyDomain::getTagFromSampleNo | ( | int | fsType, |
int | sampleNo | ||
) | const |
returns the tag key for the given sample number
fsType | The function space type |
sampleNo | The sample number |
References ripley::Elements, ripley::FaceElements, m_elementTags, m_faceTags, m_nodeTags, ripley::Nodes, ripley::ReducedElements, and ripley::ReducedFaceElements.
|
virtual |
returns the identifier of the transport problem type to be used when a particular solver, preconditioner, package and symmetric matrix is used
solver | |
preconditioner | |
package | |
symmetry |
References m_mpiInfo.
Referenced by BOOST_PYTHON_MODULE().
|
virtual |
returns locations in the FEM nodes
Referenced by BOOST_PYTHON_MODULE().
|
protectedpure virtual |
inserts the nodes that share an element with 'node' into 'index' and returns the number of these neighbours
Implemented in ripley::Rectangle, and ripley::Brick.
Referenced by createMainPattern().
|
virtual |
interpolates data given on source onto target where source and target are given on different domains
|
protectedpure virtual |
interpolates data on nodes in 'in' onto (reduced) elements in 'out'
Implemented in ripley::Rectangle, and ripley::Brick.
Referenced by interpolateOnDomain().
|
protectedpure virtual |
interpolates data on nodes in 'in' onto (reduced) face elements in 'out'
Implemented in ripley::Rectangle, and ripley::Brick.
Referenced by interpolateOnDomain().
|
virtual |
interpolates data given on source onto target where source and target have to be given on the same domain
References averageData(), copyData(), ripley::DegreesOfFreedom, dofToNodes(), ripley::Elements, ripley::FaceElements, functionSpaceTypeAsString(), getMPISize(), interpolateNodesOnElements(), interpolateNodesOnFaces(), multiplyData(), ripley::Nodes, nodesToDOF(), ripley::ReducedDegreesOfFreedom, ripley::ReducedElements, ripley::ReducedFaceElements, and ripley::ReducedNodes.
Referenced by setToX().
|
virtual |
returns true if data on this domain and given function space type has to be considered as cell centered data
References ripley::DegreesOfFreedom, ripley::Elements, ripley::FaceElements, getDescription(), ripley::Nodes, ripley::Points, ripley::ReducedDegreesOfFreedom, ripley::ReducedElements, ripley::ReducedFaceElements, and ripley::ReducedNodes.
|
virtual |
returns true if the argument is a valid function space type for this domain
References ripley::DegreesOfFreedom, ripley::Elements, ripley::FaceElements, ripley::Nodes, ripley::Points, ripley::ReducedDegreesOfFreedom, ripley::ReducedElements, ripley::ReducedFaceElements, and ripley::ReducedNodes.
Referenced by preferredInterpolationOnDomain(), and probeInterpolationOnDomain().
|
inlinevirtual |
returns true if name is a defined tag name
name | tag name to be checked |
Referenced by BOOST_PYTHON_MODULE().
|
inlinevirtual |
if compiled for MPI then executes an MPI_Barrier, else does nothing
Referenced by BOOST_PYTHON_MODULE(), ripley::Brick::writeBinaryGridImpl(), and ripley::Rectangle::writeBinaryGridImpl().
|
protected |
copies data in 'in' to 'out' (from reduced to non-reduced fs)
Referenced by interpolateOnDomain().
|
virtual |
creates a stiffness matrix and initializes it with zeros
References dudley::checkPasoError(), ripley::DegreesOfFreedom, FALSE, getPattern(), Paso_SystemMatrix_alloc(), and ripley::ReducedDegreesOfFreedom.
Referenced by BOOST_PYTHON_MODULE().
|
virtual |
creates a transport problem
References dudley::checkPasoError(), ripley::DegreesOfFreedom, getPattern(), Paso_TransportProblem_alloc(), and ripley::ReducedDegreesOfFreedom.
Referenced by BOOST_PYTHON_MODULE().
|
protectedpure virtual |
converts data on nodes in 'in' to degrees of freedom in 'out'
Implemented in ripley::Rectangle, and ripley::Brick.
Referenced by interpolateOnDomain().
|
inlinevirtual |
returns true if on MPI processor 0, else false
Referenced by BOOST_PYTHON_MODULE().
|
inlinevirtual |
inequality operator
|
virtual |
equality operator
Reimplemented in ripley::Brick, and ripley::Rectangle.
References m_elementTags, m_faceTags, m_nodeTags, and m_tagMap.
|
pure virtual |
returns true if this rank owns the sample id on given function space
Implemented in ripley::Brick, and ripley::Rectangle.
|
virtual |
Preferred direction of interpolation.
If you really need to test for a particular direction, then use probeInterpolation.
References ripley::DegreesOfFreedom, ripley::Elements, ripley::FaceElements, getDescription(), isValidFunctionSpaceType(), ripley::Nodes, ripley::Points, ripley::ReducedDegreesOfFreedom, ripley::ReducedElements, ripley::ReducedFaceElements, and ripley::ReducedNodes.
|
virtual |
writes information about the mesh to standard output
full | whether to print additional data |
Reimplemented in ripley::Brick, and ripley::Rectangle.
References getDescription(), getNumElements(), m_mpiInfo, m_numDim, m_tagMap, Esys_MPIInfo::rank, and Esys_MPIInfo::size.
Referenced by BOOST_PYTHON_MODULE().
|
virtual |
determines whether interpolation from source to target is possible
|
virtual |
returns true if data on fsType_source can be interpolated onto fsType_target, false otherwise
References ripley::DegreesOfFreedom, ripley::Elements, ripley::FaceElements, getDescription(), isValidFunctionSpaceType(), ripley::Nodes, ripley::Points, ripley::ReducedDegreesOfFreedom, ripley::ReducedElements, ripley::ReducedFaceElements, and ripley::ReducedNodes.
|
virtual |
Generate filtered random data.
Reimplemented in ripley::Rectangle.
|
pure virtual |
Implemented in ripley::Brick, and ripley::Rectangle.
Referenced by ripley::readBinaryGrid().
|
pure virtual |
Implemented in ripley::Brick, and ripley::Rectangle.
Referenced by ripley::readNcGrid().
|
virtual |
assigns new location to the domain.
|
inlinevirtual |
sets a map from a clear tag name to a tag key
name | tag name |
tag | tag key |
Referenced by BOOST_PYTHON_MODULE(), ripley::Brick::populateSampleIds(), and ripley::Rectangle::populateSampleIds().
|
virtual |
assigns new tag newTag to all samples of given function space with a positive value of mask for any of its sample points
References ripley::Elements, ripley::FaceElements, getNumElements(), getNumFaceElements(), getNumNodes(), m_elementTags, m_faceTags, m_nodeTags, ripley::Nodes, ripley::ReducedElements, ripley::ReducedFaceElements, and updateTagsInUse().
|
virtual |
copies the gradient of 'in' into 'out'. The actual function space to be considered for the gradient is defined by 'in'. Both arguments have to be defined on this domain.
References assembleGradient(), ripley::DegreesOfFreedom, ripley::Elements, ripley::FaceElements, functionSpaceTypeAsString(), getMPISize(), ripley::Nodes, ripley::ReducedDegreesOfFreedom, ripley::ReducedElements, ripley::ReducedFaceElements, and ripley::ReducedNodes.
|
virtual |
copies the integrals of the function defined by arg into integrals. arg has to be defined on this domain.
References assembleIntegrate(), ripley::DegreesOfFreedom, ripley::Elements, ripley::FaceElements, functionSpaceTypeAsString(), ripley::Nodes, ripley::ReducedDegreesOfFreedom, ripley::ReducedElements, ripley::ReducedFaceElements, and ripley::ReducedNodes.
|
pure virtual |
copies the surface normals at data points into out. The actual function space to be considered is defined by out. out has to be defined on this domain.
Implemented in ripley::Brick, and ripley::Rectangle.
|
pure virtual |
copies the size of samples into out. The actual function space to be considered is defined by out. out has to be defined on this domain.
Implemented in ripley::Brick, and ripley::Rectangle.
|
virtual |
copies the location of data points into arg. The domain of arg has to match this domain.
References assembleCoordinates(), interpolateOnDomain(), and ripley::Nodes.
|
virtual |
returns all tag names in a single string separated by commas
References m_tagMap.
Referenced by BOOST_PYTHON_MODULE().
|
inlinevirtual |
returns true if this domain supports contact elements, false otherwise
|
virtual |
true if this domain can handle to specified tuple of filter options.
|
protected |
References Esys_MPIInfo::comm, ripley::Elements, ripley::FaceElements, INDEX_T_MAX, INDEX_T_MIN, m_elementTags, m_elementTagsInUse, m_faceTags, m_faceTagsInUse, m_mpiInfo, m_nodeTags, m_nodeTagsInUse, MPI_INT, ripley::Nodes, ripley::ReducedElements, and ripley::ReducedFaceElements.
Referenced by ripley::Brick::populateSampleIds(), ripley::Rectangle::populateSampleIds(), and setTags().
|
pure virtual |
Implemented in ripley::Brick, and ripley::Rectangle.
Referenced by BOOST_PYTHON_MODULE().
|
mutableprotected |
|
mutableprotected |
Referenced by borrowListOfTagsInUse(), getNumberOfTagsInUse(), and updateTagsInUse().
|
mutableprotected |
|
mutableprotected |
Referenced by borrowListOfTagsInUse(), getNumberOfTagsInUse(), and updateTagsInUse().
|
protected |
Referenced by ripley::Brick::Brick(), ripley::Brick::createPattern(), ripley::Rectangle::createPattern(), ripley::Brick::dump(), ripley::Rectangle::dump(), getSystemMatrixTypeId(), getTransportTypeId(), ripley::Brick::populateSampleIds(), ripley::Rectangle::populateSampleIds(), Print_Mesh_Info(), ripley::Rectangle::randomFill(), ripley::Rectangle::Rectangle(), RipleyDomain(), updateTagsInUse(), and ~RipleyDomain().
|
mutableprotected |
|
mutableprotected |
Referenced by borrowListOfTagsInUse(), getNumberOfTagsInUse(), and updateTagsInUse().
|
protected |
|
protected |
|
protected |
Referenced by operator==(), Print_Mesh_Info(), and showTagNames().