.\" .de Id .. .de Sp .if n .sp .if t .sp 0.4 .. .TH limiter 4rheolef "rheolef-7.0" "rheolef-7.0" "rheolef-7.0" .\" label: /*Class:limiter .SH NAME \fBlimiter\fP - discontinuous Galerkin slope limiter .SH SYNOPSIS field limiter (const field& uh, options...); .SH DESCRIPTION This function returns a slope limited field for any supplied discontinuous approximation. .\" begin_example .Sp .nf geo omega ("square"); space Xh (omega, "P1d"); field uh (Xh); ... field vh = limiter(uh); .Sp .fi .\" end_example This function is still in development as a prototype: it supports only d=1 dimension and k=0 or 1 polynomial degrees. Its generalization to 2D and 3D geometries and any polynomial degree is in development. .\" skip start:AUTHOR: .\" skip start:DATE: .\" END .SH IMPLEMENTATION .\" begin_example .Sp .nf struct limiter_option_type { 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_type() : active(true), theta(1.5), M(1) {} }; template field_basic limiter ( const field_basic& uh, const T& bar_g_S = 1.0, const limiter_option_type& opt = limiter_option_type()); .Sp .fi .\" end_example .SH COPYRIGHT Copyright (C) 2000-2018 Pierre Saramito GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.