TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Schema_Backward_Differentiation_base.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_Backward_Differentiation_base_included
17#define Schema_Backward_Differentiation_base_included
18
19
20#include <Schema_Implicite_Multi_TimeStep_base.h>
21#include <TRUSTTab.h>
22
23class Probleme_Couple;
24class Matrice_Base;
25
26/*! @brief classe Schema_Backward_Differentiation_base
27 *
28 * @sa Schema_Temps_base
29 */
31{
32
34
35public :
36
37 double changer_temps(Equation_base& eqn, const double temps) override;
38 void update_time_derivative(Equation_base& eqn, const DoubleTab& data) override;
39 void mettre_a_jour_equation(Equation_base& eqn, const double temps) override;
40 void store_equation_parameters(Equation_base& eqn, DoubleTab& stored_parameters) override;
41 void modify_equation_parameters(Equation_base& eqn, DoubleTab& stored_parameters) override;
42 void compute_coefficients(double time_step, const DoubleTab& times) const override;
43 void add_multi_timestep_data(const Equation_base& eqn, Matrice_Base& mat_morse, DoubleTab& secmem) const override;
44
45 inline const DoubleTab& coefficients() const override;
46 inline DoubleTab& coefficients() override;
47
48protected :
49
50 virtual void compute_backward_differentiation_coefficients(double time_step, const DoubleTab& times) const = 0 ;
52};
53
58
63
64#endif
classe Equation_base Le role d'une equation est le calcul d'un ou plusieurs champs....
Classe Matrice_Base Classe de base de la hierarchie des matrices.
classe Probleme_Couple C'est la classe historique de couplage de TRUST.
classe Schema_Backward_Differentiation_base
void store_equation_parameters(Equation_base &eqn, DoubleTab &stored_parameters) override
double changer_temps(Equation_base &eqn, const double temps) override
virtual void compute_backward_differentiation_coefficients(double time_step, const DoubleTab &times) const =0
void modify_equation_parameters(Equation_base &eqn, DoubleTab &stored_parameters) override
void add_multi_timestep_data(const Equation_base &eqn, Matrice_Base &mat_morse, DoubleTab &secmem) const override
void mettre_a_jour_equation(Equation_base &eqn, const double temps) override
void compute_coefficients(double time_step, const DoubleTab &times) const override
void update_time_derivative(Equation_base &eqn, const DoubleTab &data) override