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
26
namespace
rheolef
{
63
}
// namespace rheolef
64
65
#include "rheolef/field.h"
66
#include "rheolef/test.h"
67
68
namespace
rheolef
{
69
70
// [verbatim_limiter_option]
72
struct
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]
79
typedef
limiter_option
limiter_option_type
;
80
81
// [verbatim_limiter]
82
template
<
class
T,
class
M>
83
field_basic<T,M>
84
limiter
(
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
Float
see the Float page for the full documentation
rheolef::field_basic
Definition
field.h:219
rheolef::limiter_option_type
limiter_option limiter_option_type
Definition
limiter.h:79
T
Expr1::float_type T
Definition
field_expr.h:230
rheolef
This file is part of Rheolef.
Definition
compiler_eigen.h:39
rheolef::limiter
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
rheolef::limiter_option
see the limiter page for the full documentation
Definition
limiter.h:72
rheolef::limiter_option::active
bool active
Definition
limiter.h:73
rheolef::limiter_option::M
Float M
Definition
limiter.h:75
rheolef::limiter_option::theta
Float theta
Definition
limiter.h:74
rheolef::limiter_option::limiter_option
limiter_option()
Definition
limiter.h:76
M
Expr1::memory_type M
Definition
vec_expr_v2.h:416