FluxLimiter.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 __PASO_FLUXLIMITER_H__
#define __PASO_FLUXLIMITER_H__
#include "Transport.h"
namespace paso {
PASO_DLL_API
struct FCT_FluxLimiter
{
FCT_FluxLimiter(const_TransportProblem_ptr tp);
~FCT_FluxLimiter();
inline dim_t getTotalNumRows() const
{
return antidiffusive_fluxes->getTotalNumRows();
}
inline SystemMatrixPattern_ptr getFluxPattern() const
{
return antidiffusive_fluxes->pattern;
}
void setU_tilde(const double* Mu_tilde);
void addLimitedFluxes_Start();
void addLimitedFluxes_Complete(double* b);
SystemMatrix_ptr antidiffusive_fluxes;
escript::JMPI mpi_info;
double dt;
double* u_tilde;
double* MQ; // (M_C* Q_min, M_C* Q_max)
double* R; // (R-, R+)
//Coupler_ptr MQ_coupler;
Coupler_ptr<real_t> R_coupler;
Coupler_ptr<real_t> u_tilde_coupler;
double* borrowed_lumped_mass_matrix; // borrowed reference
};
} // namespace paso
#endif // __PASO_FLUXLIMITER_H__
PASO_DLL_API
#define PASO_DLL_API
Definition: Paso.h:59
paso::FCT_FluxLimiter::R_coupler
Coupler_ptr< real_t > R_coupler
Definition: FluxLimiter.h:52
paso::FCT_FluxLimiter
Definition: FluxLimiter.h:26
paso::FCT_FluxLimiter::getTotalNumRows
dim_t getTotalNumRows() const
Definition: FluxLimiter.h:31
paso::FCT_FluxLimiter::antidiffusive_fluxes
SystemMatrix_ptr antidiffusive_fluxes
Definition: FluxLimiter.h:45
paso::FCT_FluxLimiter::mpi_info
escript::JMPI mpi_info
Definition: FluxLimiter.h:46
paso::FCT_FluxLimiter::~FCT_FluxLimiter
~FCT_FluxLimiter()
Definition: FluxLimiter.cpp:53
escript::JMPI
boost::shared_ptr< JMPI_ > JMPI
Definition: EsysMPI.h:71
paso::SystemMatrixPattern_ptr
boost::shared_ptr< SystemMatrixPattern > SystemMatrixPattern_ptr
Definition: SystemMatrixPattern.h:39
Transport.h
paso::FCT_FluxLimiter::R
double * R
Definition: FluxLimiter.h:50
paso::FCT_FluxLimiter::FCT_FluxLimiter
FCT_FluxLimiter(const_TransportProblem_ptr tp)
Definition: FluxLimiter.cpp:32
paso::FCT_FluxLimiter::MQ
double * MQ
Definition: FluxLimiter.h:49
paso::SystemMatrix_ptr
boost::shared_ptr< SystemMatrix > SystemMatrix_ptr
Definition: SystemMatrix.h:40
paso
Definition: AMG.cpp:45
paso::FCT_FluxLimiter::getFluxPattern
SystemMatrixPattern_ptr getFluxPattern() const
Definition: FluxLimiter.h:36
paso::FCT_FluxLimiter::setU_tilde
void setU_tilde(const double *Mu_tilde)
Definition: FluxLimiter.cpp:62
paso::FCT_FluxLimiter::u_tilde_coupler
Coupler_ptr< real_t > u_tilde_coupler
Definition: FluxLimiter.h:53
paso::const_TransportProblem_ptr
boost::shared_ptr< const TransportProblem > const_TransportProblem_ptr
Definition: Transport.h:33
paso::FCT_FluxLimiter::dt
double dt
Definition: FluxLimiter.h:47
paso::FCT_FluxLimiter::addLimitedFluxes_Complete
void addLimitedFluxes_Complete(double *b)
Definition: FluxLimiter.cpp:207
paso::FCT_FluxLimiter::u_tilde
double * u_tilde
Definition: FluxLimiter.h:48
paso::FCT_FluxLimiter::addLimitedFluxes_Start
void addLimitedFluxes_Start()
Definition: FluxLimiter.cpp:137
paso::FCT_FluxLimiter::borrowed_lumped_mass_matrix
double * borrowed_lumped_mass_matrix
Definition: FluxLimiter.h:54
paso::Coupler_ptr
boost::shared_ptr< Coupler< T > > Coupler_ptr
Definition: Coupler.h:42
escript::DataTypes::dim_t
index_t dim_t
Definition: DataTypes.h:64