TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Marqueur_Lagrange_base.h
1/****************************************************************************
2* Copyright (c) 2024, 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 Marqueur_Lagrange_base_included
17#define Marqueur_Lagrange_base_included
18
19#include <Champs_compris_interface.h>
20#include <Champ_Fonc_base.h>
21#include <Champs_compris.h>
22
24class Probleme_base;
26
27/*! @brief Marqueur_Lagrange_base The Marqueur_Lagrange_base class is the base class for Lagrangian marker classes.
28 *
29 * Currently only one instantiable derived class: Marqueur_FT
30 * A marker is intended to track the fluid motion by integrating the trajectory
31 * of a set of particles from the (interpolated) fluid velocity.
32 * - the set of tracked points is an attribute of Marqueur_FT as it is of type Maillage_FT_Disc
33 * - post-processing is performed on the number of particles per cell (densite_particules_)
34 * or on the point cloud
35 * - integration starts from a time t_debut_integr_ set by the user
36 * or equal to t_init by default
37 *
38 * @sa Abstract class., Abstract methods:, Ensemble_Lagrange_base& ensemble_points(), void calculer_valeurs_champs()
39 */
41{
42 Declare_base_sans_constructeur(Marqueur_Lagrange_base);
43
44public :
45
48 virtual const Ensemble_Lagrange_base& ensemble_points() const = 0;
49 virtual void calculer_valeurs_champs() = 0;
50 const inline double& temps_debut_integration() const;
51 virtual void discretiser(const Probleme_base& pb, const Discretisation_base& dis);
52 virtual void mettre_a_jour(double temps);
53
54 // Methods of the post-processable fields interface
55 /////////////////////////////////////////////////////
56 void creer_champ(const Motcle& motlu) override { }
57 const Champ_base& get_champ(const Motcle& nom) const override;
58 void get_noms_champs_postraitables(Noms& nom,Option opt=NONE) const override;
59 bool has_champ(const Motcle& nom, OBS_PTR(Champ_base) &ref_champ) const override;
60 bool has_champ(const Motcle& nom) const override;
61 /////////////////////////////////////////////////////
62
63protected :
64
65 OWN_PTR(Champ_Fonc_base) densite_particules_; // Expresses the number of particles per cell
66 double t_debut_integr_; // Start time for trajectory integration
67
68private :
69
70 Champs_compris champs_compris_;
71
72};
73
78
79#endif
class Champ_Fonc_base Base class of fields that are functions of a calculated quantity
class Champ_base This class is the base of the fields hierarchy.
Definition Champ_base.h:43
class Champs_compris_interface This class contains an interface of methods intended to manage
class Discretisation_base This class represents a spatial discretization scheme, which
class Ensemble_Lagrange_base Base class for classes representing a geometric structure made up
virtual void mettre_a_jour(double temps)
const Champ_base & get_champ(const Motcle &nom) const override
const double & temps_debut_integration() const
OWN_PTR(Champ_Fonc_base) densite_particules_
virtual void calculer_valeurs_champs()=0
void creer_champ(const Motcle &motlu) override
virtual const Ensemble_Lagrange_base & ensemble_points() const =0
virtual void discretiser(const Probleme_base &pb, const Discretisation_base &dis)
bool has_champ(const Motcle &nom, OBS_PTR(Champ_base) &ref_champ) const override
void get_noms_champs_postraitables(Noms &nom, Option opt=NONE) const override
virtual Ensemble_Lagrange_base & ensemble_points()=0
A character string (Nom) in uppercase.
Definition Motcle.h:26
An array of character strings (VECT(Nom)).
Definition Noms.h:26
Objet_U()
Default constructor: assigns a unique identifier to the object (object_id_) and registers the object ...
Definition Objet_U.cpp:54
class Probleme_base It is a Probleme_U that is not a coupling.