TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
ALE_ProjectionManager.h
1/****************************************************************************
2* Copyright (c) 2015 - 2018, 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#ifndef ALE_ProjectionManager_included
16#define ALE_ProjectionManager_included
17
18#include <Champs_front_ALE_projection.h>
19#include <Noms.h>
20#include <SFichier.h>
21#include <Entree.h>
22#include <Bords.h>
23
24class Equation_base;
25
26// Computes the fluid forces projected on modal vibration shapes at ALE
27// moving boundaries, and writes results to output files.
28// Also holds the optional Neumann boundary condition list for the grid
29// Laplacian problem.
30
32{
33public:
34
36
38 void read_neumann_bc(Entree& is);
39
40 void update(double temps, int nb_bords_ALE, const Bords& les_bords_ALE,
41 const Nom& nom_cas, Equation_base& eqn);
42
43 void update(double temps, Nom& name_boundary,
44 Champ_front_ALE_projection& field, int nb_mode,
45 int nb_bords_ALE, const Bords& les_bords_ALE,
46 const Nom& nom_cas, Equation_base& eqn);
47
48 bool is_neumann_boundary(const Nom& nom) const;
49
50
51 inline const Noms& neumann_boundary_names() const { return name_boundary_with_Neumann_BC_; }
52 inline int nb_projection_boundaries() const { return field_ALE_projection_.size(); }
53
54 void clear();
55
56private:
57
58 Champs_front_ALE_projection field_ALE_projection_;
59 Noms name_ALE_boundary_projection_;
60 Noms name_boundary_with_Neumann_BC_;
61 mutable SFichier modalForceProjectionALE_;
62};
63
64#endif /* ALE_ProjectionManager_included */
void read_projection_boundary(Entree &is)
void update(double temps, int nb_bords_ALE, const Bords &les_bords_ALE, const Nom &nom_cas, Equation_base &eqn)
bool is_neumann_boundary(const Nom &nom) const
const Noms & neumann_boundary_names() const
ALE_ProjectionManager()=default
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
classe Equation_base Le role d'une equation est le calcul d'un ou plusieurs champs....
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
Un tableau de chaine de caracteres (VECT(Nom)).
Definition Noms.h:26
Cette classe est a la classe C++ ofstream ce que la classe Sortie est a la classe C++ ostream Elle re...
Definition SFichier.h:27