TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Solid_Particle_base.h
1/****************************************************************************
2* Copyright (c) 2025, 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 Solid_Particle_base_included
17#define Solid_Particle_base_included
18
19#include <Fluide_Incompressible.h>
20
21
22/*! @brief : class Solid_Particle
23 *
24 * Description: This class describes spherical solid particles.
25 * This class is used in the module fluid_particle_interaction.
26 * Solid particles must be modeled with a high viscosity ratio
27 * relative to the fluid.
28 * suffix sphere :for sphere flow, therefore all particles have
29 * the same physical properties.
30 * The radius and e_dry coeff are used for the computation of the
31 * solid-solid interactions. See Modele_Collision_FT
32 * Location: ${TrioCFD_ROOT}/src/Multiphase/fluid_particle_interaction
33 */
35{
36 Declare_base_sans_constructeur(Solid_Particle_base);
37
38public:
40
41 // override functions
42 void set_param(Param& param) const override;
43
44 // Setters
45 void set_volume(const double volume) { volume_=volume; }
46 void set_mass(const double mass) { mass_=mass; }
47 void set_equivalent_diameter(const double equivalent_diameter)
48 { equivalent_diameter_=equivalent_diameter; }
49 void set_equivalent_radius(const double equivalent_radius)
50 { equivalent_radius_=equivalent_radius; }
51 // getters
52 const double& get_e_dry() const { return e_dry_; }
53 const double& get_volume() const { return volume_; }
54 const double& get_mass() const { return mass_; }
55 const double& get_equivalent_radius() const { return equivalent_radius_; }
56 const double& get_equivalent_diameter() const { return equivalent_diameter_; }
57
58protected :
59 // Variables declaration and initialization
60 double e_dry_=0.; // dry restitution coefficient
61 double volume_=0.;
62 double mass_=0.;
65};
66
67#endif
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
void set_volume(const double volume)
const double & get_e_dry() const
void set_equivalent_radius(const double equivalent_radius)
const double & get_equivalent_radius() const
void set_mass(const double mass)
const double & get_volume() const
void set_param(Param &param) const override
const double & get_mass() const
const double & get_equivalent_diameter() const
void set_equivalent_diameter(const double equivalent_diameter)