TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Schema_RK_Rationnel.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_Rationnel_included
17#define Schema_RK_Rationnel_included
18
19#include <TRUSTSchema_RK.h>
20
21/// \cond DO_NOT_DOCUMENT
22class Schema_RK_Rationnel
23{ };
24/// \endcond
25
26/*! @brief : classe RRK2 Cette classe represente un schema de Runge Kutta
27 *
28 * rationel d'ordre 2 qui s'ecrit:
29 * U(n+1) = U(n) + (2g1 (g1,b) - b(g1,g1))/(b,b)
30 * ou : g1 = dt f(U(n))
31 * g2 = dt f(U(n) + c2 g1)
32 * b = b1 g1 + b2 g2
33 * on choisit b1=2, b2=-1, c2=1/2
34 *
35 * @sa : TRUSTSchema_RK, 03/07/2017 ABn. Quelques explications RRK2:, Le papier de reference pour l'implementation du Rational Runge Kutta 2 semble etre :, Wambeck - Rational Runge-Kutta methods for solving systems of ordinary differential equations:, https://link.springer.com/article/10.1007/BF02252381, Le "rational" vient de la fraction rationnelle utilisee dans l'expansion., Le reste colle exactement a l'implementation, d'apres ce que je peux voir. On y retrouve notamment la definition interessante de, a.b / d = a(b,d)+b(d,a)-(a,b) / ||d||^2, pour a, b et d vecteurs., En deux mots (tires de la conclusion) :, Although rational methods require more computational work than linear ones, they can have some other properties, such as a stable behaviour with explicitness, which make them preferable., 05/07/2017 ABn. Complement explications RRK2:, Application du RRK2 en CFD :, https://link.springer.com/content/pdf/10.1007%2F3-540-13917-6_112.pdf, rho*u reste au temps n pour une evaluation intermediaire de f., Said differently, from the time scheme perspective, f is only a function of Y1.
36 */
37
38class RRK2: public TRUSTSchema_RK<Ordre_RK::RATIO_DEUX>
39{
40 Declare_instanciable(RRK2);
41public :
43};
44
45#endif /* Schema_RK_Rationnel_included */
classe Equation_base Le role d'une equation est le calcul d'un ou plusieurs champs....
: classe RRK2 Cette classe represente un schema de Runge Kutta
int faire_un_pas_de_temps_eqn_base(Equation_base &) override
Effectue un pas de temps de Runge Kutta rationnel d'ordre 2, sur l'equation passee en parametre.