Rheolef  7.2
an efficient C++ finite element environment
 
Loading...
Searching...
No Matches
limiter.h
Go to the documentation of this file.
1#ifndef _RHEOLEF_LIMITER_H
2#define _RHEOLEF_LIMITER_H
3//
4// This file is part of Rheolef.
5//
6// Copyright (C) 2000-2009 Pierre Saramito <Pierre.Saramito@imag.fr>
7//
8// Rheolef is free software; you can redistribute it and/or modify
9// it under the terms of the GNU General Public License as published by
10// the Free Software Foundation; either version 2 of the License, or
11// (at your option) any later version.
12//
13// Rheolef is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU General Public License for more details.
17//
18// You should have received a copy of the GNU General Public License
19// along with Rheolef; if not, write to the Free Software
20// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21//
22// =========================================================================
23// AUTHOR: Pierre.Saramito@imag.fr
24// DATE: 3 october 2015
25
26namespace rheolef {
63} // namespace rheolef
64
65#include "rheolef/field.h"
66#include "rheolef/test.h"
67
68namespace rheolef {
69
70// [verbatim_limiter_option]
73 bool active;
74 Float theta; // > 1, see Coc-1998, P. 209
75 Float M; // M=max|u''(t=0)(x)| at x where u'(t)(x)=0 :extremas
76 limiter_option() : active(true), theta(1.5), M(1) {}
77};
78// [verbatim_limiter_option]
80
81// [verbatim_limiter]
82template <class T, class M>
84limiter (
85 const field_basic<T,M>& uh,
86 const T& bar_g_S = 1.0,
87 const limiter_option& opt = limiter_option());
88// [verbatim_limiter]
89
90} // namespace rheolef
91#endif // _RHEOLEF_LIMITER_H
see the Float page for the full documentation
limiter_option limiter_option_type
Definition limiter.h:79
Expr1::float_type T
Definition field_expr.h:230
This file is part of Rheolef.
field_basic< T, M > limiter(const field_basic< T, M > &uh, const T &bar_g_S, const limiter_option &opt)
see the limiter page for the full documentation
Definition limiter.cc:65
see the limiter page for the full documentation
Definition limiter.h:72
Expr1::memory_type M