ripley/src/DefaultAssembler2D.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 __RIPLEY_DEFAULTASSEMBLER2D_H__
#define __RIPLEY_DEFAULTASSEMBLER2D_H__
#include <ripley/Rectangle.h>
namespace ripley {
template<class Scalar = double>
class DefaultAssembler2D : public AbstractAssembler
{
public:
DefaultAssembler2D<Scalar>(escript::const_Domain_ptr dom, const double* dx,
const dim_t* NE, const dim_t* NN)
: AbstractAssembler(),
m_dx(dx),
m_NE(NE),
m_NN(NN)
{
domain = REFCOUNTNS::static_pointer_cast<const Rectangle>(dom);
}
~DefaultAssembler2D() {}
/* The default RipleyDomain assemblers, with original signatures */
virtual void assemblePDESingle(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;
virtual void assemblePDEBoundarySingle(escript::AbstractSystemMatrix* mat,
escript::Data& rhs, const escript::Data& d,
const escript::Data& y) const;
virtual void assemblePDESingleReduced(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;
virtual void assemblePDEBoundarySingleReduced(escript::AbstractSystemMatrix* mat,
escript::Data& rhs, const escript::Data& d,
const escript::Data& y) const;
virtual void assemblePDESystem(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;
virtual void assemblePDEBoundarySystem(escript::AbstractSystemMatrix* mat,
escript::Data& rhs, const escript::Data& d,
const escript::Data& y) const;
virtual void assemblePDESystemReduced(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;
virtual void assemblePDEBoundarySystemReduced(escript::AbstractSystemMatrix* mat,
escript::Data& rhs, const escript::Data& d,
const escript::Data& y) const;
/* The new interface for assemblers */
virtual void assemblePDESingle(escript::AbstractSystemMatrix* mat,
escript::Data& rhs,
const DataMap& coefs) const;
virtual void assemblePDEBoundarySingle(escript::AbstractSystemMatrix* mat,
escript::Data& rhs,
const DataMap& coefs) const;
virtual void assemblePDESingleReduced(escript::AbstractSystemMatrix* mat,
escript::Data& rhs,
const DataMap& coefs) const;
virtual void assemblePDEBoundarySingleReduced(
escript::AbstractSystemMatrix* mat,
escript::Data& rhs,
const DataMap& coefs) const;
virtual void assemblePDESystem(escript::AbstractSystemMatrix* mat,
escript::Data& rhs,
const DataMap& coefs) const;
virtual void assemblePDEBoundarySystem(escript::AbstractSystemMatrix* mat,
escript::Data& rhs,
const DataMap& coefs) const;
virtual void assemblePDESystemReduced(escript::AbstractSystemMatrix* mat,
escript::Data& rhs,
const DataMap& coefs) const;
virtual void assemblePDEBoundarySystemReduced(
escript::AbstractSystemMatrix* mat,
escript::Data& rhs,
const DataMap& coefs) const;
virtual void collateFunctionSpaceTypes(std::vector<int>& fsTypes,
const DataMap& coefs) const;
protected:
POINTER_WRAPPER_CLASS(const Rectangle) domain;
const double *m_dx;
const dim_t *m_NE;
const dim_t *m_NN;
};
} // namespace ripley
#endif // __RIPLEY_DEFAULTASSEMBLER2D_H__
ripley::DefaultAssembler2D::assemblePDEBoundarySingle
virtual void assemblePDEBoundarySingle(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const escript::Data &d, const escript::Data &y) const
Definition: ripley/src/DefaultAssembler2D.cpp:600
ripley::DefaultAssembler2D::assemblePDESystemReduced
virtual void assemblePDESystemReduced(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
Definition: ripley/src/DefaultAssembler2D.cpp:1982
ripley::AbstractAssembler
Definition: ripley/src/AbstractAssembler.h:32
ripley::DefaultAssembler2D
Definition: ripley/src/DefaultAssembler2D.h:24
ripley::DefaultAssembler2D::m_NN
const dim_t * m_NN
Definition: ripley/src/DefaultAssembler2D.h:129
ripley::DefaultAssembler2D::assemblePDEBoundarySingleReduced
virtual void assemblePDEBoundarySingleReduced(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const escript::Data &d, const escript::Data &y) const
Definition: ripley/src/DefaultAssembler2D.cpp:1013
ripley::Rectangle
Rectangle is the 2-dimensional implementation of a RipleyDomain.
Definition: ripley/src/Rectangle.h:28
ripley::DataMap
std::map< std::string, escript::Data > DataMap
Definition: ripley/src/domainhelpers.h:24
escript::Data
Data represents a collection of datapoints.
Definition: Data.h:63
ripley::DefaultAssembler2D::m_dx
const double * m_dx
Definition: ripley/src/DefaultAssembler2D.h:127
ripley::DefaultAssembler2D::assemblePDEBoundarySystem
virtual void assemblePDEBoundarySystem(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const escript::Data &d, const escript::Data &y) const
Definition: ripley/src/DefaultAssembler2D.cpp:1681
ripley::DefaultAssembler2D::assemblePDESingle
virtual void assemblePDESingle(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
Definition: ripley/src/DefaultAssembler2D.cpp:151
ripley::DefaultAssembler2D::collateFunctionSpaceTypes
virtual void collateFunctionSpaceTypes(std::vector< int > &fsTypes, const DataMap &coefs) const
Definition: ripley/src/DefaultAssembler2D.cpp:30
ripley::DefaultAssembler2D::~DefaultAssembler2D
~DefaultAssembler2D()
Definition: ripley/src/DefaultAssembler2D.h:37
ripley::DefaultAssembler2D::assemblePDESystem
virtual void assemblePDESystem(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
Definition: ripley/src/DefaultAssembler2D.cpp:1185
escript::AbstractSystemMatrix
Base class for escript system matrices.
Definition: AbstractSystemMatrix.h:42
ripley
Definition: ripley/src/AbstractAssembler.h:25
ripley::DefaultAssembler2D::m_NE
const dim_t * m_NE
Definition: ripley/src/DefaultAssembler2D.h:128
ripley::DefaultAssembler2D::assemblePDESingleReduced
virtual void assemblePDESingleReduced(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
Definition: ripley/src/DefaultAssembler2D.cpp:841
ripley::DefaultAssembler2D::POINTER_WRAPPER_CLASS
POINTER_WRAPPER_CLASS(const Rectangle) domain
escript::const_Domain_ptr
boost::shared_ptr< const AbstractDomain > const_Domain_ptr
Definition: AbstractDomain.h:39
ripley::DefaultAssembler2D::assemblePDEBoundarySystemReduced
virtual void assemblePDEBoundarySystemReduced(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const escript::Data &d, const escript::Data &y) const
Definition: ripley/src/DefaultAssembler2D.cpp:2178
escript::DataTypes::dim_t
index_t dim_t
Definition: DataTypes.h:64