InitialCondition.cpp 3.57 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
///
////// \file
///
///
/// Created by Sebastien Gilles <sebastien.gilles@inria.fr> on the Tue, 26 May 2015 17:13:18 +0200
/// Copyright (c) Inria. All rights reserved.
///
/// \ingroup CoreGroup
/// \addtogroup CoreGroup
/// \{
11

12
#include "Utilities/String/EmptyString.hpp"
13

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


17
namespace MoReFEM
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
{
    
    
    namespace InputParameter
    {
        
             
        
        namespace InitialConditionNS
        {
            
            
            const std::string& Nature::NameInFile()
            {
                static std::string ret("nature");
                return ret;
            }
            
            
            const std::string& Nature::Description()
            {
                static std::string ret("How is given the initial condition value (as a constant or as a Lua function.)" );
                return ret;
            }
            
            const std::string& Nature::Constraint()
            {
45
                static std::string ret("value_in(v, {'ignore', 'constant', 'lua_function'})");
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 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& Nature::DefaultValue()
            {
                return Utilities::EmptyString();
            }
            
            
            const std::string& Scalar::NameInFile()
            {
                static std::string ret("scalar_value");
                return ret;
            }
            
            
            const std::string& Scalar::Description()
            {
                static std::string ret("Value of the initial condition in the case nature is 'constant.");
                return ret;
            }
            
            const std::string& Scalar::Constraint()
            {
                return Utilities::EmptyString();
            }
            
            
            const std::string& Scalar::DefaultValue()
            {
                return Utilities::EmptyString();
            }
            
            
            namespace Impl
            {
                
                
                const std::string& LuaFunction::Description()
                {
                    static std::string ret = std::string("Value of the initial condition in the case nature is 'lua_function'.") + DescriptionCoordsType();
                    return ret;
                }
                
                
                const std::string& LuaFunction::Constraint()
                {
                    return Utilities::EmptyString();
                }
                
                
                const std::string& LuaFunction::DefaultValue()
                {
                    return Utilities::EmptyString();
                }
                
                
            } // namespace Impl
            
            
            
            const std::string& LuaFunctionX::NameInFile()
            {
                static std::string ret("lua_function_x");
                return ret;
            }
            
            
            const std::string& LuaFunctionY::NameInFile()
            {
                static std::string ret("lua_function_y");
                return ret;
            }
            
            
            const std::string& LuaFunctionZ::NameInFile()
            {
                static std::string ret("lua_function_z");
                return ret;
            }
            
            
129
        } // namespace InitialConditionNS
130 131 132 133 134
        
        
    } // namespace InputParameter
    
    
135
} // namespace MoReFEM
136 137 138


/// @} // addtogroup CoreGroup