LameAssembler2D.h
Go to the documentation of this file.
/*****************************************************************************
*
* Copyright (c) 2003-2020 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-2017 by Centre for Geoscience Computing (GeoComp)
* Development from 2019 by School of Earth and Environmental Sciences
**
*****************************************************************************/
#ifndef __RIPLEY_LAMEASSEMBLER2D_H__
#define __RIPLEY_LAMEASSEMBLER2D_H__
#include <ripley/Rectangle.h>
namespace ripley {
class LameAssembler2D : public AbstractAssembler
{
public:
LameAssembler2D(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);
}
~LameAssembler2D() {}
/* 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;
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_LAMEASSEMBLER2D_H__
ripley::LameAssembler2D::m_NN
const dim_t * m_NN
Definition: LameAssembler2D.h:95
ripley::isNotEmpty
bool isNotEmpty(const std::string target, const DataMap &mapping)
Definition: ripley/src/domainhelpers.h:54
ripley
Definition: ripley/src/AbstractAssembler.h:26
ripley::LameAssembler2D::assemblePDEBoundarySystemReduced
virtual void assemblePDEBoundarySystemReduced(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const DataMap &coefs) const
Definition: LameAssembler2D.cpp:79
ripley::DataMap
std::map< std::string, escript::Data > DataMap
Definition: ripley/src/domainhelpers.h:39
ripley::LameAssembler2D::assemblePDESystemReduced
virtual void assemblePDESystemReduced(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const DataMap &coefs) const
Definition: LameAssembler2D.cpp:73
ripley::LameAssembler2D::assemblePDESystem
virtual void assemblePDESystem(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const DataMap &coefs) const
Definition: LameAssembler2D.cpp:380
escript::Data::requireWrite
void requireWrite()
Ensures data is ready for write access. This means that the data will be resolved if lazy and will be...
Definition: Data.cpp:1239
INDEX4
#define INDEX4(_X1_, _X2_, _X3_, _X4_, _N1_, _N2_, _N3_)
Definition: index.h:27
ripley::LameAssembler2D::POINTER_WRAPPER_CLASS
POINTER_WRAPPER_CLASS(const Rectangle) domain
INDEX2
#define INDEX2(_X1_, _X2_, _N1_)
Definition: index.h:23
ripley::RipleyException
RipleyException exception class.
Definition: RipleyException.h:44
escript::Data::getSampleDataRO
const DataTypes::real_t * getSampleDataRO(DataTypes::RealVectorType::size_type sampleNo, DataTypes::real_t dummy=0) const
Return the sample data for the given sample no. Please do not use this unless you NEED to access samp...
Definition: Data.h:1989
escript::Data::getDataPointSize
int getDataPointSize() const
Return the size of the data point. It is the product of the data point shape dimensions.
Definition: Data.cpp:1360
ripley::unpackData
const escript::Data unpackData(const std::string target, const DataMap &mapping)
Definition: ripley/src/domainhelpers.h:43
ripley::Rectangle
Rectangle is the 2-dimensional implementation of a RipleyDomain.
Definition: ripley/src/Rectangle.h:43
escript::Data
Data represents a collection of datapoints.
Definition: Data.h:64
INDEX3
#define INDEX3(_X1_, _X2_, _X3_, _N1_, _N2_)
Definition: index.h:25
escript::DataTypes::dim_t
index_t dim_t
Definition: DataTypes.h:93
escript::AbstractSystemMatrix
Base class for escript system matrices.
Definition: AbstractSystemMatrix.h:57
ripley::LameAssembler2D::assemblePDEBoundarySingle
virtual void assemblePDEBoundarySingle(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const DataMap &coefs) const
Definition: LameAssembler2D.cpp:54
escript::Data::isEmpty
bool isEmpty() const
Definition: Data.cpp:1132
ripley::LameAssembler2D::assemblePDESingleReduced
virtual void assemblePDESingleReduced(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const DataMap &coefs) const
Definition: LameAssembler2D.cpp:60
ripley::LameAssembler2D::assemblePDEBoundarySingleReduced
virtual void assemblePDEBoundarySingleReduced(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const DataMap &coefs) const
Definition: LameAssembler2D.cpp:66
escript::DataTypes::index_t
int index_t
type for array/matrix indices used both globally and on each rank
Definition: DataTypes.h:88
ripley::LameAssembler2D::LameAssembler2D
LameAssembler2D(escript::const_Domain_ptr dom, const double *dx, const dim_t *NE, const dim_t *NN)
Definition: LameAssembler2D.h:56
ripley::LameAssembler2D::~LameAssembler2D
~LameAssembler2D()
Definition: LameAssembler2D.h:65
escript::Data::actsExpanded
bool actsExpanded() const
Return true if this Data is expanded or resolves to expanded. That is, if it has a separate value for...
Definition: Data.cpp:1118
ripley::LameAssembler2D::m_dx
const double * m_dx
Definition: LameAssembler2D.h:93
ripley::LameAssembler2D::m_NE
const dim_t * m_NE
Definition: LameAssembler2D.h:94
escript::AbstractSystemMatrix::getRowBlockSize
int getRowBlockSize() const
returns the row block size
Definition: AbstractSystemMatrix.h:128
escript::AbstractSystemMatrix::getColumnBlockSize
int getColumnBlockSize() const
returns the column block size
Definition: AbstractSystemMatrix.h:139
escript::const_Domain_ptr
boost::shared_ptr< const AbstractDomain > const_Domain_ptr
Definition: AbstractDomain.h:58
ripley::LameAssembler2D::collateFunctionSpaceTypes
void collateFunctionSpaceTypes(std::vector< int > &fsTypes, const DataMap &coefs) const
Definition: LameAssembler2D.cpp:29
ripley::LameAssembler2D::assemblePDEBoundarySystem
virtual void assemblePDEBoundarySystem(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const DataMap &coefs) const
Definition: LameAssembler2D.cpp:86
ripley::LameAssembler2D::assemblePDESingle
virtual void assemblePDESingle(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const DataMap &coefs) const
Definition: LameAssembler2D.cpp:48