FluxLimiter.h
Go to the documentation of this file.
/*****************************************************************************
*
* Copyright (c) 2003-2020 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-2017 by Centre for Geoscience Computing (GeoComp)
* Development from 2019 by School of Earth and Environmental Sciences
**
*****************************************************************************/
#ifndef __PASO_FLUXLIMITER_H__
#define __PASO_FLUXLIMITER_H__
#include "Transport.h"
namespace paso {
struct PASO_DLL_API 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<double> 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__
Transport.h
escript::DataTypes::dim_t
index_t dim_t
Definition: DataTypes.h:66
escript::JMPI
boost::shared_ptr< JMPI_ > JMPI
Definition: EsysMPI.h:74
paso
Definition: BiCGStab.cpp:25
paso::SystemMatrix_ptr
boost::shared_ptr< SystemMatrix< T > > SystemMatrix_ptr
Definition: SystemMatrix.h:42
paso::SystemMatrixPattern_ptr
boost::shared_ptr< SystemMatrixPattern > SystemMatrixPattern_ptr
Definition: SystemMatrixPattern.h:40
paso::const_TransportProblem_ptr
boost::shared_ptr< const TransportProblem > const_TransportProblem_ptr
Definition: Transport.h:34
paso::Coupler_ptr
boost::shared_ptr< Coupler< T > > Coupler_ptr
Definition: Coupler.h:43
PASO_DLL_API
#define PASO_DLL_API
Definition: paso/src/system_dep.h:29
paso::FCT_FluxLimiter
Definition: FluxLimiter.h:27
paso::FCT_FluxLimiter::MQ
double * MQ
Definition: FluxLimiter.h:49
paso::FCT_FluxLimiter::antidiffusive_fluxes
SystemMatrix_ptr< double > antidiffusive_fluxes
Definition: FluxLimiter.h:45
paso::FCT_FluxLimiter::u_tilde
double * u_tilde
Definition: FluxLimiter.h:48
paso::FCT_FluxLimiter::R_coupler
Coupler_ptr< real_t > R_coupler
Definition: FluxLimiter.h:52
paso::FCT_FluxLimiter::borrowed_lumped_mass_matrix
double * borrowed_lumped_mass_matrix
Definition: FluxLimiter.h:54
paso::FCT_FluxLimiter::getFluxPattern
SystemMatrixPattern_ptr getFluxPattern() const
Definition: FluxLimiter.h:36
paso::FCT_FluxLimiter::u_tilde_coupler
Coupler_ptr< real_t > u_tilde_coupler
Definition: FluxLimiter.h:53
paso::FCT_FluxLimiter::R
double * R
Definition: FluxLimiter.h:50
paso::FCT_FluxLimiter::dt
double dt
Definition: FluxLimiter.h:47
paso::FCT_FluxLimiter::getTotalNumRows
dim_t getTotalNumRows() const
Definition: FluxLimiter.h:31
paso::FCT_FluxLimiter::mpi_info
escript::JMPI mpi_info
Definition: FluxLimiter.h:46