Canoe
Comprehensive Atmosphere N' Ocean Engine
Kinetics.h
Go to the documentation of this file.
1 #ifndef SRC_TRANSPORT_KINETICS_H_
2 #define SRC_TRANSPORT_KINETICS_H_
3 
4 #include <deal.II/lac/sparse_matrix.h>
5 #include <deal.II/lac/vector.h>
6 
7 #include "Advection.h"
8 #include "Diffusion.h"
9 
10 class Kinetics {
11  typedef double Scalar;
12  enum { Dimension = 2 };
13 
14  protected:
16 
18 
20 
22 
23  dealii::SparsityPattern m_pattern;
24 
25  dealii::SparseMatrix<Scalar> m_mass, m_force, m_adj;
26 
27  dealii::Vector<Scalar> m_src, m_rhs, m_bnd;
28 
29  public:
30  Kinetics(int, int, int = 1);
31 
32  void initialize();
33 
34  void assemble(double, double);
35 
36  void checkout();
37 
38  void run(int);
39 
40  private:
41  dealii::SparseMatrix<Scalar> m_buffer;
42 };
43 
44 #endif // SRC_TRANSPORT_KINETICS_H_
dealii::SparsityPattern m_pattern
Definition: Kinetics.h:23
double Scalar
Definition: Kinetics.h:11
dealii::Vector< Scalar > m_src
Definition: Kinetics.h:27
dealii::SparseMatrix< Scalar > m_force
Definition: Kinetics.h:25
Variable< Scalar, 2 > m_eddy
Definition: Kinetics.h:17
Diffusion< Scalar, 2, 4 > m_diffusion
Definition: Kinetics.h:21
void assemble(double, double)
Definition: Kinetics.cc:49
dealii::Vector< Scalar > m_rhs
Definition: Kinetics.h:27
void initialize()
Definition: Kinetics.cc:31
dealii::SparseMatrix< Scalar > m_mass
Definition: Kinetics.h:25
dealii::Vector< Scalar > m_bnd
Definition: Kinetics.h:27
Variable< Scalar, 2 > m_psi
Definition: Kinetics.h:17
Kinetics(int, int, int=1)
Definition: Kinetics.cc:6
void checkout()
Definition: Kinetics.cc:66
Variable< Scalar, 2 > m_q
Definition: Kinetics.h:17
dealii::SparseMatrix< Scalar > m_buffer
Definition: Kinetics.h:41
Advection< Scalar, 2, 4 > m_advection
Definition: Kinetics.h:19
RectGrid< Scalar, Dimension > m_grid
Definition: Kinetics.h:15
dealii::SparseMatrix< Scalar > m_adj
Definition: Kinetics.h:25
void run(int)
Definition: Kinetics.cc:86
@ Dimension
Definition: Kinetics.h:12