TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Schema_RK_Williamson.h
1/****************************************************************************
2* Copyright (c) 2022, CEA
3* All rights reserved.
4*
5* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9*
10* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
11* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
12* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13*
14*****************************************************************************/
15
16#ifndef Schema_RK_Williamson_included
17#define Schema_RK_Williamson_included
18
19#include <TRUSTSchema_RK.h>
20
21/// \cond DO_NOT_DOCUMENT
22class Schema_RK_Williamson
23{ };
24/// \endcond
25
26/*! @brief : class RK2 This class represents a second-order Runge-Kutta time scheme, case 1 of Williamson, written as:
27 *
28 * q1=h f(x0)
29 * x1=x0+b1 q1
30 * q2=h f(x1) +a2 q1
31 * x2=x1+b2 q2, avec a1=0, a2=sqrt(2)-2, b1=sqrt(2)/2, b2=sqrt(2)/2
32 *
33 */
34class RK2: public TRUSTSchema_RK<Ordre_RK::DEUX_WILLIAMSON>
35{
36 Declare_instanciable(RK2);
37};
38
39
40/*! @brief : class RK3 This class represents a third-order Runge-Kutta time scheme, case 7 of Williamson, written as:
41 *
42 * q1=h f(x0)
43 * x1=x0+b1 q1
44 * q2=h f(x1) +a2 q1
45 * x2=x1+b2 q2
46 * q3=h f(x2)+a3 q2
47 * x3=x2+b3 q3, avec a1=0, a2=-5/9, a3=-153/128, b1=1/3, b2=15/16, b3=8/15
48 *
49 */
50class RK3: public TRUSTSchema_RK<Ordre_RK::TROIS_WILLIAMSON>
51{
52 Declare_instanciable(RK3);
53};
54
55/*! @brief : class RK4 This class represents a degenerate fourth-order Runge-Kutta time scheme (three-point scheme), case 17 of Williamson, written as:
56 *
57 * q1=h f(x0)
58 * x1=x0+b1 q1
59 * q2=h f(x1) +a2 q1
60 * x2=x1+b2 q2
61 * q3=h f(x2)+a3 q2
62 * x3=x2+b3 q3, avec a1=0, a2=-1/2, a3=-2, b1=1/2, b2=1, b3=1/6
63 *
64 */
65class RK4: public TRUSTSchema_RK<Ordre_RK::QUATRE_WILLIAMSON>
66{
67 Declare_instanciable(RK4);
68};
69
70#endif /* Schema_RK_Williamson_included */
: class RK2 This class represents a second-order Runge-Kutta time scheme, case 1 of Williamson,...
: class RK3 This class represents a third-order Runge-Kutta time scheme, case 7 of Williamson,...
: class RK4 This class represents a degenerate fourth-order Runge-Kutta time scheme (three-point sche...