Domain.cpp 6.05 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
///
////// \file
///
///
/// Created by Sebastien Gilles <sebastien.gilles@inria.fr> on the Thu, 19 Mar 2015 15:14:35 +0100
/// Copyright (c) Inria. All rights reserved.
///
/// \ingroup CoreGroup
/// \addtogroup CoreGroup
/// \{
11

12
#include "Utilities/Containers/Print.hpp"
13

14
#include "Core/InputParameter/Geometry/Impl/Domain.hpp"
15 16


17
namespace MoReFEM
18 19 20 21 22 23 24
{
    
    
    namespace InputParameter
    {
        
        
25
        namespace Impl
26 27 28
        {
            
            
29
            namespace DomainNS
30 31
            {
                
32
                  
33
                const std::string& MeshIndexList::NameInFile()
34
                {
35
                    static std::string ret("mesh_index");
36 37 38 39
                    return ret;
                }
                
                
40
                const std::string& MeshIndexList::Description()
41
                {
42
                    static std::string ret("Index of the geometric mesh upon which the domain is defined (as defined "
43
                                           "in the present file). Might be left empty if domain not limited to one mesh; "
44
                                           "at most one value is expected here.");
45 46 47 48 49
                                           
                    return ret;
                }
                
                
50
                const std::string& MeshIndexList::Constraint()
51 52 53 54 55 56 57
                {
                    static std::string ret;
                    return ret;
                }
                
                
                
58
                const std::string& MeshIndexList::DefaultValue()
59 60 61 62 63 64 65 66
                {
                    static std::string ret;
                    return ret;
                }
                
                
                const std::string& DimensionList::NameInFile()
                {
67
                    static std::string ret("dimension_list");
68 69 70 71 72 73 74 75 76 77 78 79 80 81
                    return ret;
                }
                
                
                const std::string& DimensionList::Description()
                {
                    static std::string ret("List of dimensions encompassed by the domain. Might be left empty if no "
                                           "restriction at all upon dimensions.");
                    return ret;
                }
                
                
                const std::string& DimensionList::Constraint()
                {
82
                    static std::string ret("value_in(v, {0, 1, 2, 3})");
83 84 85 86 87 88 89 90 91 92 93 94 95 96
                    return ret;
                }
                
                
                
                const std::string& DimensionList::DefaultValue()
                {
                    static std::string ret;
                    return ret;
                }
                
                
                const std::string& MeshLabelList::NameInFile()
                {
97
                    static std::string ret("mesh_label_list");
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
                    return ret;
                }
                
                
                const std::string& MeshLabelList::Description()
                {
                    static std::string ret("List of mesh labels encompassed by the domain. Might be left empty if no "
                                           "restriction at all upon mesh labels. This parameter does not make sense "
                                           "if no mesh is defined for the domain.");
        
                    return ret;
                }
                
                
                const std::string& MeshLabelList::Constraint()
                {
                    static std::string ret;
                    return ret;
                }
                
                
                
                const std::string& MeshLabelList::DefaultValue()
                {
                    static std::string ret;
                    return ret;
                }
                
                
                const std::string& GeomEltTypeList::NameInFile()
                {
129
                    static std::string ret("geometric_element_type_list");
130 131 132 133
                    return ret;
                }
                
                
134
                
135 136 137
                const std::string& GeomEltTypeList::Description()
                {
                    static std::string ret("List of geometric element types considered in the domain. Might be left "
138 139 140 141 142 143 144 145 146 147 148
                                           "empty if no restriction upon these. No constraint is applied at Ops level, "
                                           "as some geometric element types could be added after generation of current "
                                           "input parameter file. Current list is below; if an incorrect value is "
                                           "put there it will be detected a bit later when the domain object is built.\n "
                                           "The known types when this file was generated are: \n "
                                           ". Point1\n "
                                           ". Segment2, Segment3\n "
                                           ". Triangle3, Triangle6\n "
                                           ". Quadrangle4, Quadrangle8, Quadrangle9\n "
                                           ". Tetrahedron4, Tetrahedron10\n "
                                           ". Hexahedron8, Hexahedron20, Hexahedron27.");
149 150 151 152 153 154
                    return ret;
                }
                
                
                const std::string& GeomEltTypeList::Constraint()
                {
155

156 157 158 159 160 161 162 163 164 165 166 167 168
                    static std::string ret;
                    return ret;
                }
                
                
                
                const std::string& GeomEltTypeList::DefaultValue()
                {
                    static std::string ret;
                    return ret;
                }
                
                
169
            } // namespace DomainNS
170 171
            
            
172
        } // namespace Impl
173 174
        
        
175
    } // namespace InputParameter
176 177
    
    
178
} // namespace MoReFEM
179 180 181


/// @} // addtogroup CoreGroup