TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Loi_horaire.h
1/****************************************************************************
2* Copyright (c) 2023, 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 Loi_horaire_included
17#define Loi_horaire_included
18
19#include <TRUSTTabs_forward.h>
20#include <Champ_Fonc_t.h>
22
23/*! @brief
24 *
25 */
26class Loi_horaire : public Objet_U
27{
28
29 Declare_instanciable(Loi_horaire);
30
31public:
32 ArrOfDouble position(const double t, const double t0, const ArrOfDouble& position_a_t0);
33 ArrOfDouble vitesse(const double t, const ArrOfDouble& position_a_t);
34 void imprimer(const Schema_Temps_base&, const ArrOfDouble&);
35 void nommer(const Nom& un_nom) override
36 {
37 nom_ = un_nom;
38 };
39 const Nom& le_nom() const override
40 {
41 return nom_;
42 };
43private:
44 void verifier_derivee(const double t);
45 void tester(const Schema_Temps_base&);
46
47 Champ_Fonc_t position_;
48 Champ_Fonc_t vitesse_;
49 Champ_Fonc_t rotation_;
50 Champ_Fonc_t derivee_rotation_;
51 int verification_derivee_=1;
52 int impr_=1;
53 Nom nom_;
54};
55
56#endif
57
Classe Champ_Fonc_t Cette classe derivee de Champ_Uniforme_inst qui represente.
ArrOfDouble vitesse(const double t, const ArrOfDouble &position_a_t)
const Nom & le_nom() const override
Donne le nom de l'Objet_U Methode a surcharger : renvoie "neant" dans cette implementation.
Definition Loi_horaire.h:39
void nommer(const Nom &un_nom) override
Donne un nom a l'Objet_U Methode virtuelle a surcharger.
Definition Loi_horaire.h:35
void imprimer(const Schema_Temps_base &, const ArrOfDouble &)
ArrOfDouble position(const double t, const double t0, const ArrOfDouble &position_a_t0)
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
Objet_U()
Constructeur par defaut : attribue un numero d'identifiant unique a l'objet (object_id_),...
Definition Objet_U.cpp:55
class Schema_Temps_base