LameAssembler3D.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_LAMEASSEMBLER3D_H__
#define __RIPLEY_LAMEASSEMBLER3D_H__
#include <ripley/Brick.h>
namespace ripley {
class LameAssembler3D : public AbstractAssembler
{
public:
LameAssembler3D(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 Brick>(dom);
}
~LameAssembler3D(){};
/* 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 Brick) domain;
const double *m_dx;
const dim_t *m_NE;
const dim_t *m_NN;
};
} // namespace ripley
#endif // __RIPLEY_LAMEASSEMBLER3D_H__
ripley::LameAssembler3D::collateFunctionSpaceTypes
void collateFunctionSpaceTypes(std::vector< int > &fsTypes, const DataMap &coefs) const
Definition: LameAssembler3D.cpp:29
ripley::LameAssembler3D::m_NN
const dim_t * m_NN
Definition: LameAssembler3D.h:66
ripley::LameAssembler3D::assemblePDESystem
virtual void assemblePDESystem(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const DataMap &coefs) const
Definition: LameAssembler3D.cpp:792
ripley::AbstractAssembler
Definition: ripley/src/AbstractAssembler.h:32
ripley::LameAssembler3D::LameAssembler3D
LameAssembler3D(escript::const_Domain_ptr dom, const double *dx, const dim_t *NE, const dim_t *NN)
Definition: LameAssembler3D.h:27
ripley::LameAssembler3D::assemblePDEBoundarySystemReduced
virtual void assemblePDEBoundarySystemReduced(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const DataMap &coefs) const
Definition: LameAssembler3D.cpp:80
ripley::LameAssembler3D::assemblePDESystemReduced
virtual void assemblePDESystemReduced(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const DataMap &coefs) const
Definition: LameAssembler3D.cpp:74
ripley::LameAssembler3D::assemblePDEBoundarySingleReduced
virtual void assemblePDEBoundarySingleReduced(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const DataMap &coefs) const
Definition: LameAssembler3D.cpp:67
ripley::LameAssembler3D::m_NE
const dim_t * m_NE
Definition: LameAssembler3D.h:65
ripley::LameAssembler3D::assemblePDEBoundarySingle
virtual void assemblePDEBoundarySingle(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const DataMap &coefs) const
Definition: LameAssembler3D.cpp:55
ripley::DataMap
std::map< std::string, escript::Data > DataMap
Definition: ripley/src/domainhelpers.h:24
ripley::LameAssembler3D::m_dx
const double * m_dx
Definition: LameAssembler3D.h:64
escript::Data
Data represents a collection of datapoints.
Definition: Data.h:63
ripley::LameAssembler3D::POINTER_WRAPPER_CLASS
POINTER_WRAPPER_CLASS(const Brick) domain
ripley::LameAssembler3D
Definition: LameAssembler3D.h:24
ripley::LameAssembler3D::assemblePDEBoundarySystem
virtual void assemblePDEBoundarySystem(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const DataMap &coefs) const
Definition: LameAssembler3D.cpp:87
ripley::Brick
Brick is the 3-dimensional implementation of a RipleyDomain.
Definition: ripley/src/Brick.h:28
ripley::LameAssembler3D::~LameAssembler3D
~LameAssembler3D()
Definition: LameAssembler3D.h:36
escript::AbstractSystemMatrix
Base class for escript system matrices.
Definition: AbstractSystemMatrix.h:42
ripley
Definition: ripley/src/AbstractAssembler.h:25
ripley::LameAssembler3D::assemblePDESingleReduced
virtual void assemblePDESingleReduced(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const DataMap &coefs) const
Definition: LameAssembler3D.cpp:61
escript::const_Domain_ptr
boost::shared_ptr< const AbstractDomain > const_Domain_ptr
Definition: AbstractDomain.h:39
escript::DataTypes::dim_t
index_t dim_t
Definition: DataTypes.h:64
ripley::LameAssembler3D::assemblePDESingle
virtual void assemblePDESingle(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const DataMap &coefs) const
Definition: LameAssembler3D.cpp:49