TrioCFD 1.9.9_beta
TrioCFD documentation
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 : class RRK2 This class represents a second-order rational Runge-Kutta scheme:
27 *
28 * U(n+1) = U(n) + (2g1 (g1,b) - b(g1,g1))/(b,b)
29 * where: g1 = dt f(U(n))
30 * g2 = dt f(U(n) + c2 g1)
31 * b = b1 g1 + b2 g2
32 * with b1=2, b2=-1, c2=1/2
33 *
34 * @sa : TRUSTSchema_RK, 03/07/2017 ABn. Some notes on RRK2:, The reference paper for the Rational Runge-Kutta 2 implementation appears to be:, Wambeck - Rational Runge-Kutta methods for solving systems of ordinary differential equations:, https://link.springer.com/article/10.1007/BF02252381, The "rational" refers to the rational fraction used in the expansion., The rest matches the implementation closely. Notably, we find the interesting definition:, a.b / d = a(b,d)+b(d,a)-(a,b) / ||d||^2, for vectors a, b and d., In brief (from the 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. Additional notes on RRK2:, Application of RRK2 in CFD:, https://link.springer.com/content/pdf/10.1007%2F3-540-13917-6_112.pdf, rho*u stays at time n for an intermediate evaluation of f., Said differently, from the time scheme perspective, f is only a function of Y1.
35 */
36
37class RRK2: public TRUSTSchema_RK<Ordre_RK::RATIO_DEUX>
38{
39 Declare_instanciable(RRK2);
40public :
42};
43
44#endif /* Schema_RK_Rationnel_included */
class Equation_base The role of an equation is the calculation of one or more fields....
: class RRK2 This class represents a second-order rational Runge-Kutta scheme:
int faire_un_pas_de_temps_eqn_base(Equation_base &) override
Performs a second-order rational Runge-Kutta time step on the equation passed as parameter.