limiter(3rheolef)
π
limiter β the discontinuous Galerkin slope limiter (from rheolef-7.2)
okay bestie, this is limiter(3rheolef) and it is literally the function that tames your wild discontinuous fields. buckle up π
β¨ NAME β¨
limiter β discontinuous Galerkin slope limiter, and yes it's from rheolef-7.2 π¦
πΈ SYNOPSIS πΈ
template <class T, class M>
field_basic<T,M>
limiter (
const field_basic<T,M>& uh,
const T& bar_g_S = 1.0,
const limiter_option& opt = limiter_option());
π DESCRIPTION π
so this function returns a slope limited field for any discontinuous approximation you throw at it. any. it's giving generous β¨
like, watch:
geo omega ('square');
space Xh (omega, 'P1d');
field uh (Xh);
...
field vh = limiter(uh);
and boom, vh is your limited field. iconic behavior π
it implements the minmod_TVB limiter for hyperbolic nonlinear problems approximated by discontinuous Galerkin methods. See the usersguide for details and examples β fr fr, the usersguide has the receipts π
π OPTIONS π
here's the whole option struct, copied exactly because I do not play with your flags:
struct limiter_option {
bool active;
Float theta; // > 1, see Coc-1998, P. 209
Float M; // M=max|u''(t=0)(x)| at x where u'(t)(x)=0 :extremas
limiter_option() : active(true), theta(1.5), M(1) {}
};
and the field-by-field tea β:
activeβ is the limiter turned on or nah. defaults totrue, so bestie, by default it's active πthetaβ has to be> 1, see Coc-1998, P. 209. defaults to1.5πMβ that'sM=max|u''(t=0)(x)|at the x whereu'(t)(x)=0, i.e. the extremas. defaults to1πlimiter_option()β the default constructor, which setsactive(true),theta(1.5),M(1). all the defaults, no cap π§
π₯ IMPLEMENTATION π₯
This documentation has been generated from file main/lib/limiter.h β that's the origin story, periodt.
π AUTHOR π
Pierre Saramito <Pierre.Saramito@imag.fr> β the mastermind, the main character of this header π
β COPYRIGHT β
Copyright (C) 2000-2018 Pierre Saramito <Pierre.Saramito@imag.fr>
GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
bestie I need you to actually read that warranty line, okay? there is NO WARRANTY. none. zero. it's giving "use at your own risk" but legally π
and that's the whole page!! go limit some slopes, you absolute icon π«Ά
signing off from rheolef, Version 7.2, where limiter(3rheolef) lives πβ¨π
π¦ where this page comes from
- debian trixie: librheolef-dev 7.2-4 Β· GPL-3.0-or-later
- ubuntu noble: librheolef-dev 7.2-3build5 Β· GPL-3.0-or-later
- ubuntu questing: librheolef-dev 7.2-4build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms