TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Schema_Adams_Moulton_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_Adams_Moulton_base_included
17#define Schema_Adams_Moulton_base_included
18/*! @brief class Schema_Adams_Moulton_base Il herite de schema implicite base et porte un solveur par exemple
19 *
20 * le Simpler pour effectuer les Faire_un_pas_de_temps..
21 *
22 */
23
24#include <Schema_Implicite_Multi_TimeStep_base.h>
25#include <TRUSTTab.h>
26
27class Probleme_Couple;
28
30{
31 Declare_base(Schema_Adams_Moulton_base);
32
33public :
34
35 void associer_pb(const Probleme_base&) override;
36 double changer_temps(Equation_base& eqn, const double temps) override;
37 void update_time_derivative(Equation_base& eqn, const DoubleTab& data) override;
38 void mettre_a_jour_equation(Equation_base& eqn, const double temps) override;
39 void store_equation_parameters(Equation_base& eqn, DoubleTab& stored_parameters) override;
40 void modify_equation_parameters(Equation_base& eqn, DoubleTab& stored_parameters) override;
41 void compute_coefficients(double time_step, const DoubleTab& times) const override;
42 void add_multi_timestep_data(const Equation_base& eqn, Matrice_Base& mat_morse, DoubleTab& secmem) const override;
43
44 inline const DoubleTab& coefficients() const override;
45 inline DoubleTab& coefficients() override;
46
47 //pour les schemas en temps a pas multiples
48 void modifier_second_membre_full_impl(const Equation_base& eqn, DoubleTab& secmem) override;
49
50protected :
51
52 virtual void compute_adams_moulton_coefficients(double time_step, const DoubleTab& times) const = 0;
53 mutable DoubleTab adams_moulton_coefficients_;
54};
55
56inline const DoubleTab& Schema_Adams_Moulton_base::coefficients() const
57{
59}
60
65
66#endif
67
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 Probleme_base C'est un Probleme_U qui n'est pas un couplage.
void modify_equation_parameters(Equation_base &eqn, DoubleTab &stored_parameters) override
void modifier_second_membre_full_impl(const Equation_base &eqn, DoubleTab &secmem) override
virtual void compute_adams_moulton_coefficients(double time_step, const DoubleTab &times) const =0
void add_multi_timestep_data(const Equation_base &eqn, Matrice_Base &mat_morse, DoubleTab &secmem) const override
const DoubleTab & coefficients() const override
void update_time_derivative(Equation_base &eqn, const DoubleTab &data) override
double changer_temps(Equation_base &eqn, const double temps) 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 store_equation_parameters(Equation_base &eqn, DoubleTab &stored_parameters) override
void associer_pb(const Probleme_base &) override