TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Option_DG.h
1/****************************************************************************
2* Copyright (c) 2026, 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 Option_DG_included
17#define Option_DG_included
18
19#include <Interprete.h>
20#include <map>
21#include <string>
22
23class Motcle;
24
25/**
26 * @brief This class enable to change options for DG computation in a .data file
27 *
28 * @details Enable to change the discretization order of the vector and scalar unknowns,
29 * disable ortho-normalisation of the matrix, and the quadrature orders.
30 */
31class Option_DG : public Interprete
32{
33 Declare_instanciable(Option_DG);
34public :
35 Entree& interpreter(Entree&) override;
36
37 static int Get_order_for(const Nom& n);
38
39 static int Nb_col_from_order(const int order);
40
41 static int DEFAULT_ORDER;
42 static int GRAM_SCHMIDT;
43 static std::map<std::string, int> ORDERS;
44 static int QUAD_ORDER;
45};
46
47#endif /* Option_DG_included */
Classe de base des objets "interprete".
Definition Interprete.h:38
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
friend class Entree
Definition Objet_U.h:76
This class enable to change options for DG computation in a .data file.
Definition Option_DG.h:32
static int Nb_col_from_order(const int order)
Definition Option_DG.cpp:81
static int QUAD_ORDER
Definition Option_DG.h:44
Entree & interpreter(Entree &) override
Definition Option_DG.cpp:34
static int Get_order_for(const Nom &n)
Definition Option_DG.cpp:70
static std::map< std::string, int > ORDERS
Definition Option_DG.h:23
static int GRAM_SCHMIDT
Definition Option_DG.h:42
static int DEFAULT_ORDER
Definition Option_DG.h:41