Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
stabilization.cc File Reference
Include dependency graph for stabilization.cc:

Go to the source code of this file.

Functions

template<int dim>
void moe_scalar_limiter (const DoFHandler< dim > &dof_handler, GlobalVectorType &locally_relevant_vector, GlobalVectorType &locally_owned_vector)
template void moe_scalar_limiter (const DoFHandler< 2 > &dof_handler, GlobalVectorType &locally_relevant_vector, GlobalVectorType &locally_owned_vector)
template void moe_scalar_limiter (const DoFHandler< 3 > &dof_handler, GlobalVectorType &locally_relevant_vector, GlobalVectorType &locally_owned_vector)

Function Documentation

◆ moe_scalar_limiter() [1/3]

template void moe_scalar_limiter ( const DoFHandler< 2 > & dof_handler,
GlobalVectorType & locally_relevant_vector,
GlobalVectorType & locally_owned_vector )

◆ moe_scalar_limiter() [2/3]

template void moe_scalar_limiter ( const DoFHandler< 3 > & dof_handler,
GlobalVectorType & locally_relevant_vector,
GlobalVectorType & locally_owned_vector )

◆ moe_scalar_limiter() [3/3]

template<int dim>
void moe_scalar_limiter ( const DoFHandler< dim > & dof_handler,
GlobalVectorType & locally_relevant_vector,
GlobalVectorType & locally_owned_vector )

Implements a Moe a posteriori shock capturing method to keep the field bounded. This limiter is only used when DG advection is selected for the Tracer. The limiter is based on the implementation proposed by: Moe, Scott A., James A. Rossmanith, and David C. Seal. "A simple and effective high-order shock-capturing limiter for discontinuous Galerkin methods." arXiv preprint arXiv:1507.03024 (2015). https://doi.org/10.48550/arXiv.1507.03024.

The implementation follows the main idea of the paper, but we hardcode the value of alpha in the article to 0. This is supposed to lead to a more diffusive limiter, but in all honesty, all of our tries have shown that this is already a not very dissipative limiter when using BDF time integrator.

Parameters
dof_handlerThe DoFHandler used in the scalar simulation. This DOFHandler must have only a single component (a scalar equation).
locally_relevant_vectorA solution vector that contains the locally_relevant solution. This vector is used to read the solution on the ghost cells and will be modified at the end.
locally_owned_vectorA solution vector that contains the locally_owned solution. This vector will be used to write the new limited solution.

Definition at line 10 of file stabilization.cc.

References LetheGridTools::find_cells_around_cell(), and LetheGridTools::vertices_cell_mapping().