escript  Revision_4925
WaveAssembler2D.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2014 by University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Open Software License version 3.0
9 * http://www.opensource.org/licenses/osl-3.0.php
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16 #ifndef __RIPLEY_WAVEASSEMBLER2D_H__
17 #define __RIPLEY_WAVEASSEMBLER2D_H__
18 
19 #include <map>
20 #include <escript/Data.h>
21 #include <ripley/Ripley.h>
22 #include <ripley/RipleyException.h>
23 #include <ripley/AbstractAssembler.h>
24 #include <ripley/Rectangle.h>
25 
26 namespace ripley {
27 
28 
30 public:
31  WaveAssembler2D(Rectangle *dom, double *m_dx, dim_t *m_NX, dim_t *m_NE,
32  dim_t *m_NN, std::map<std::string, escript::Data> c);
34 
35  /* The only assembly function we care about right now*/
37  std::map<std::string, escript::Data> coefs) const;
38 
39 
41  std::map<std::string, escript::Data> coefs) const {throw RipleyException("This assembly not supported by this assembler");}
43  std::map<std::string, escript::Data> coefs) const {throw RipleyException("This assembly not supported by this assembler");}
45  std::map<std::string, escript::Data> coefs) const {throw RipleyException("This assembly not supported by this assembler");}
47  escript::Data& rhs,
48  std::map<std::string, escript::Data> coefs) const {throw RipleyException("This assembly not supported by this assembler");}
50  std::map<std::string, escript::Data> coefs) const {throw RipleyException("This assembly not supported by this assembler");}
52  std::map<std::string, escript::Data> coefs) const {throw RipleyException("This assembly not supported by this assembler");}
54  escript::Data& rhs,
55  std::map<std::string, escript::Data> coefs) const {throw RipleyException("This assembly not supported by this assembler");}
56 
57  void collateFunctionSpaceTypes(std::vector<int>& fsTypes,
58  std::map<std::string, escript::Data> coefs) const;
59 
60 private:
61  std::map<std::string, escript::Data> c;
63  double *m_dx;
68  bool isVTI, isHTI;
69 };
70 
71 } // namespace ripley
72 
73 #endif // __RIPLEY_WAVEASSEMBLER2D_H__
74 
dim_t * m_NN
Definition: WaveAssembler2D.h:66
void assemblePDESystem(paso::SystemMatrix_ptr mat, escript::Data &rhs, std::map< std::string, escript::Data > coefs) const
Definition: WaveAssembler2D.cpp:71
WaveAssembler2D(Rectangle *dom, double *m_dx, dim_t *m_NX, dim_t *m_NE, dim_t *m_NN, std::map< std::string, escript::Data > c)
Definition: WaveAssembler2D.cpp:39
escript::Data c44
Definition: WaveAssembler2D.h:67
Definition: WaveAssembler2D.h:29
Definition: AbstractAssembler.h:35
void collateFunctionSpaceTypes(std::vector< int > &fsTypes, std::map< std::string, escript::Data > coefs) const
Definition: WaveAssembler2D.cpp:23
double * m_dx
Definition: WaveAssembler2D.h:63
RipleyException exception class.
Definition: RipleyException.h:29
escript::Data c13
Definition: WaveAssembler2D.h:67
escript::Data c66
Definition: WaveAssembler2D.h:67
bool isHTI
Definition: WaveAssembler2D.h:68
boost::shared_ptr< SystemMatrix > SystemMatrix_ptr
Definition: SystemMatrix.h:38
Rectangle is the 2-dimensional implementation of a RipleyDomain.
Definition: Rectangle.h:29
void assemblePDESystemReduced(paso::SystemMatrix_ptr mat, escript::Data &rhs, std::map< std::string, escript::Data > coefs) const
Definition: WaveAssembler2D.h:51
escript::Data c23
Definition: WaveAssembler2D.h:67
void assemblePDESingleReduced(paso::SystemMatrix_ptr mat, escript::Data &rhs, std::map< std::string, escript::Data > coefs) const
Definition: WaveAssembler2D.h:44
Data represents a collection of datapoints.
Definition: Data.h:71
void assemblePDEBoundarySystemReduced(paso::SystemMatrix_ptr mat, escript::Data &rhs, std::map< std::string, escript::Data > coefs) const
Definition: WaveAssembler2D.h:53
escript::Data c33
Definition: WaveAssembler2D.h:67
dim_t * m_NX
Definition: WaveAssembler2D.h:64
void assemblePDESingle(paso::SystemMatrix_ptr mat, escript::Data &rhs, std::map< std::string, escript::Data > coefs) const
Definition: WaveAssembler2D.h:40
void assemblePDEBoundarySingle(paso::SystemMatrix_ptr mat, escript::Data &rhs, std::map< std::string, escript::Data > coefs) const
Definition: WaveAssembler2D.h:42
void assemblePDEBoundarySingleReduced(paso::SystemMatrix_ptr mat, escript::Data &rhs, std::map< std::string, escript::Data > coefs) const
Definition: WaveAssembler2D.h:46
escript::Data c11
Definition: WaveAssembler2D.h:67
~WaveAssembler2D()
Definition: WaveAssembler2D.h:33
std::map< std::string, escript::Data > c
Definition: WaveAssembler2D.h:61
void assemblePDEBoundarySystem(paso::SystemMatrix_ptr mat, escript::Data &rhs, std::map< std::string, escript::Data > coefs) const
Definition: WaveAssembler2D.h:49
Rectangle * domain
Definition: WaveAssembler2D.h:62
bool isVTI
Definition: WaveAssembler2D.h:68
int dim_t
Definition: types.h:24
escript::Data c12
Definition: WaveAssembler2D.h:67
dim_t * m_NE
Definition: WaveAssembler2D.h:65