38 #ifndef OneDFSIDefinitions_H 39 #define OneDFSIDefinitions_H 50 #include <boost/numeric/ublas/vector_proxy.hpp> 51 #include <boost/numeric/ublas/vector.hpp> 52 #include <boost/function.hpp> 53 #include <boost/shared_ptr.hpp> 57 #include <lifev/core/LifeV.hpp> 58 #include <lifev/core/util/StringUtility.hpp> 59 #include <lifev/core/util/Factory.hpp> 60 #include <lifev/core/util/FactorySingleton.hpp> 61 #include <lifev/core/util/LifeChrono.hpp> 62 #include <lifev/core/fem/FESpace.hpp> 63 #include <lifev/core/algorithm/SolverAmesos.hpp> 65 namespace ublas =
boost::numeric::ublas;
104 class OneDFSIModel_Physics;
105 class OneDFSIModel_Flux;
106 class OneDFSIModel_Source;
107 class OneDFSIModel_BCFunction;
140 physicsMap[
"OneD_LinearPhysics"] = LinearPhysics;
141 physicsMap[
"OneD_NonLinearPhysics"] = NonLinearPhysics;
143 fluxMap[
"OneD_LinearFlux"] = LinearFlux;
144 fluxMap[
"OneD_NonLinearFlux"] = NonLinearFlux;
146 sourceMap[
"OneD_LinearSource"] = LinearSource;
147 sourceMap[
"OneD_NonLinearSource"] = NonLinearSource;
154 if ( exponent == 0.5 )
156 return std::sqrt ( base );
160 return std::pow ( base, exponent );
168 if ( exponent == 1.0 )
174 return std::pow ( base, exponent );
182 if ( exponent == 1.5 )
184 return std::sqrt ( base ) * base;
188 return std::pow ( base, exponent );
196 if ( exponent == 2.0 )
202 return std::pow ( base, exponent );
210 if ( exponent == 3.0 )
212 return base * base * base;
216 return std::pow ( base, exponent );
224 if ( exponent == 4.0 )
226 return base * base * base * base;
230 return std::pow ( base, exponent );
Real pow15(const Real &base, const Real &exponent)
Fast pow for the case of exponent 1.5.
std::map< std::string, fluxTerm_Type > fluxMap
Real pow10(const Real &base, const Real &exponent)
Fast pow for the case of exponent 1.0.
std::map< std::string, physicsType_Type > physicsMap
void updateInverseJacobian(const UInt &iQuadPt)
Real pow05(const Real &base, const Real &exponent)
Fast pow for the case of exponent 0.5.
Real pow40(const Real &base, const Real &exponent)
Fast pow for the case of exponent 4.0.
void mapsDefinition()
Define the map of the OneDFSIModel objects.
Real pow30(const Real &base, const Real &exponent)
Fast pow for the case of exponent 3.0.
Real pow20(const Real &base, const Real &exponent)
Fast pow for the case of exponent 2.0.
double Real
Generic real data.
std::map< std::string, sourceTerm_Type > sourceMap