TrioCFD 1.9.9_beta
TrioCFD documentation
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 It inherits from the implicit base scheme and carries a solver, for example
19 *
20 * the Simpler solver, to perform the time-stepping operations.
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 // for multi-timestep schemes
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
class Equation_base The role of an equation is the calculation of one or more fields....
Matrice_Base class - Base class of the matrix hierarchy.
Probleme_Couple This is the historical coupling class of TRUST.
class Probleme_base It is a Probleme_U that is not a coupling.
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