Canoe
Comprehensive Atmosphere N' Ocean Engine
StreamTransport Class Reference

#include <stream_transport.hpp>

Public Member Functions

 StreamTransport (int rows, int cols, bool fourth_order=true)
 
 ~StreamTransport ()
 
void setDiffusionMatrix (Real kdiff, Real dx)
 
void setDiffusionMatrix (AthenaArray< Real > const &mkdiff)
 
void setAdvectionMatrix (AthenaArray< Real > const &streamf, Real dx)
 
void assembleSystem (Real dt, Real theta)
 
void evolve (AthenaArray< Real > *q, Real dt, Real theta=1.)
 
int64_t global (int i, int j) const
 
int64_t globalh (int i, int j) const
 

Protected Attributes

bool fourth_order_
 
int rows_
 
int cols_
 
int rank_
 
int rowsh_
 
int colsh_
 
int rankh_
 
dealii::SparsityPattern skh_
 
dealii::SparsityPattern skk_
 
dealii::SparsityPattern shk_
 
dealii::SparseMatrix< Real > diffusion_
 
dealii::SparseMatrix< Real > advection_
 
dealii::SparseMatrix< Real > KmJ_
 
dealii::SparseMatrix< Real > KmJmN_
 
dealii::SparseMatrix< Real > bneumann_
 
dealii::Vector< Real > qvec_
 
dealii::Vector< Real > dqvec_
 
dealii::Vector< Real > rhs_
 
dealii::SparseMatrix< Real > mass_
 
dealii::SolverControl control_
 
dealii::SolverGMRES solver_
 

Detailed Description

Definition at line 16 of file stream_transport.hpp.

Constructor & Destructor Documentation

◆ StreamTransport()

StreamTransport::StreamTransport ( int  rows,
int  cols,
bool  fourth_order = true 
)

Definition at line 10 of file stream_transport.cpp.

◆ ~StreamTransport()

StreamTransport::~StreamTransport ( )

Definition at line 82 of file stream_transport.cpp.

Member Function Documentation

◆ setDiffusionMatrix() [1/2]

void StreamTransport::setDiffusionMatrix ( Real  kdiff,
Real  dx 
)

Definition at line 84 of file stream_transport.cpp.

◆ setDiffusionMatrix() [2/2]

void StreamTransport::setDiffusionMatrix ( AthenaArray< Real > const &  mkdiff)

◆ setAdvectionMatrix()

void StreamTransport::setAdvectionMatrix ( AthenaArray< Real > const &  streamf,
Real  dx 
)

Definition at line 113 of file stream_transport.cpp.

◆ assembleSystem()

void StreamTransport::assembleSystem ( Real  dt,
Real  theta 
)

Definition at line 151 of file stream_transport.cpp.

◆ evolve()

void StreamTransport::evolve ( AthenaArray< Real > *  q,
Real  dt,
Real  theta = 1. 
)

Definition at line 162 of file stream_transport.cpp.

◆ global()

int64_t StreamTransport::global ( int  i,
int  j 
) const
inline

Definition at line 32 of file stream_transport.hpp.

◆ globalh()

int64_t StreamTransport::globalh ( int  i,
int  j 
) const
inline

Definition at line 34 of file stream_transport.hpp.

Member Data Documentation

◆ fourth_order_

bool StreamTransport::fourth_order_
protected

Definition at line 40 of file stream_transport.hpp.

◆ rows_

int StreamTransport::rows_
protected

Definition at line 42 of file stream_transport.hpp.

◆ cols_

int StreamTransport::cols_
protected

Definition at line 42 of file stream_transport.hpp.

◆ rank_

int StreamTransport::rank_
protected

Definition at line 43 of file stream_transport.hpp.

◆ rowsh_

int StreamTransport::rowsh_
protected

Definition at line 46 of file stream_transport.hpp.

◆ colsh_

int StreamTransport::colsh_
protected

Definition at line 46 of file stream_transport.hpp.

◆ rankh_

int StreamTransport::rankh_
protected

Definition at line 47 of file stream_transport.hpp.

◆ skh_

dealii::SparsityPattern StreamTransport::skh_
protected

Definition at line 50 of file stream_transport.hpp.

◆ skk_

dealii::SparsityPattern StreamTransport::skk_
protected

Definition at line 50 of file stream_transport.hpp.

◆ shk_

dealii::SparsityPattern StreamTransport::shk_
protected

Definition at line 50 of file stream_transport.hpp.

◆ diffusion_

dealii::SparseMatrix<Real> StreamTransport::diffusion_
protected

Definition at line 53 of file stream_transport.hpp.

◆ advection_

dealii::SparseMatrix<Real> StreamTransport::advection_
protected

Definition at line 56 of file stream_transport.hpp.

◆ KmJ_

dealii::SparseMatrix<Real> StreamTransport::KmJ_
protected

Definition at line 59 of file stream_transport.hpp.

◆ KmJmN_

dealii::SparseMatrix<Real> StreamTransport::KmJmN_
protected

Definition at line 59 of file stream_transport.hpp.

◆ bneumann_

dealii::SparseMatrix<Real> StreamTransport::bneumann_
protected

Definition at line 62 of file stream_transport.hpp.

◆ qvec_

dealii::Vector<Real> StreamTransport::qvec_
protected

Definition at line 65 of file stream_transport.hpp.

◆ dqvec_

dealii::Vector<Real> StreamTransport::dqvec_
protected

Definition at line 65 of file stream_transport.hpp.

◆ rhs_

dealii::Vector<Real> StreamTransport::rhs_
protected

Definition at line 65 of file stream_transport.hpp.

◆ mass_

dealii::SparseMatrix<Real> StreamTransport::mass_
protected

Definition at line 66 of file stream_transport.hpp.

◆ control_

dealii::SolverControl StreamTransport::control_
protected

Definition at line 69 of file stream_transport.hpp.

◆ solver_

dealii::SolverGMRES StreamTransport::solver_
protected

Definition at line 70 of file stream_transport.hpp.


The documentation for this class was generated from the following files: