TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Boundary_Conditions.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 Boundary_Conditions_included
17#define Boundary_Conditions_included
18
19#include <Objet_U.h>
20
22{
23 Declare_instanciable(Boundary_Conditions);
24public:
25 enum BCType { Paroi = 0, Symetrie = 1, Perio = 2, Mixte_shear = 3 };
28
29 void set_vx_kmin(double value) { vxkmin_ = value; }
30 void set_vx_kmax(double value) { vxkmax_ = value; }
31 void set_dU_perio(double value) { dU_perio_ = value; }
32
33 double get_vx_kmin() const { return vxkmin_; }
34 double get_vx_kmax() const { return vxkmax_; }
35 double get_dU_perio(int fluctuations=0) const { return !fluctuations ? dU_perio_ : 0.; }
36 double get_t0_shear() const { return t0_shear_; }
37 int get_defilement() const { return defilement_; }
41
42protected:
45 double dU_perio_;
46 double t0_shear_;
52};
53
54#endif /* Boundary_Conditions_included */
int get_correction_conserv_qdm() const
int get_correction_interp_monofluide() const
double get_t0_shear() const
double get_dU_perio(int fluctuations=0) const
void set_dU_perio(double value)
int get_resolution_u_prime_() const
void set_vx_kmax(double value)
BCType get_bctype_k_max() const
BCType get_bctype_k_min() const
void set_vx_kmin(double value)
Objet_U()
Constructeur par defaut : attribue un numero d'identifiant unique a l'objet (object_id_),...
Definition Objet_U.cpp:55