43 #define PI 3.14159265359
62 ERROR_MSG (
"This entrie is not allowed: ud_functions.hpp");
87 return 0.088002 * ( x + 0.5 );
90 return - ( 0.02068 * 2.0 ) * ( y );
93 return - ( 0.02068 * 2.0 ) * ( z );
96 ERROR_MSG (
"This entry is not allowed: ud_functions.hpp");
118 ERROR_MSG (
"This entrie is not allowed: ud_functions.hpp");
139 ERROR_MSG (
"This entrie is not allowed: ud_functions.hpp");
201 Real theta = (
PI / 6.0 );
210 return std::sin( theta );
216 return std::cos( theta );
225 ERROR_MSG (
"This entrie is not allowed: ud_functions.hpp");
233 Real theta = ( -
PI / 6.0 );
242 return std::sin( theta );
248 return std::cos( theta );
257 ERROR_MSG (
"This entrie is not allowed: ud_functions.hpp");
278 ERROR_MSG (
"This entrie is not allowed: ud_functions.hpp");
300 ERROR_MSG (
"This entrie is not allowed: ud_functions.hpp");
322 ERROR_MSG (
"This entrie is not allowed: ud_functions.hpp");
343 ERROR_MSG (
"This entrie is not allowed: ud_functions.hpp");
350 fibersDirectionList::fibersDirectionList() :
351 M_mapNameDefinition( )
354 fibersDirectionList::~fibersDirectionList()
357 void fibersDirectionList::setupFiberDefinitions(
const UInt nbFamilies )
363 ASSERT( nbFamilies < 6,
"At the moment, a maximum number = 6 of families can be used! If you want more \n modifiy the file ud_functions.hpp in the application folder." );
366 fiberFunctionPtr_Type pointerToFunction(
new fiberFunction_Type( Family1 ) );
367 M_mapNameDefinition.insert( std::pair<std::string, fiberFunctionPtr_Type>
368 (
"Family1", pointerToFunction ) );
370 pointerToFunction.reset(
new fiberFunction_Type( Family2 ) );
371 M_mapNameDefinition.insert( std::pair<std::string, fiberFunctionPtr_Type>
372 (
"Family2", pointerToFunction ) );
374 pointerToFunction.reset(
new fiberFunction_Type( Family3 ) );
375 M_mapNameDefinition.insert( std::pair<std::string, fiberFunctionPtr_Type>
376 (
"Family3", pointerToFunction ) );
378 pointerToFunction.reset(
new fiberFunction_Type( Family4 ) );
379 M_mapNameDefinition.insert( std::pair<std::string, fiberFunctionPtr_Type>
380 (
"Family4", pointerToFunction ) );
382 pointerToFunction.reset(
new fiberFunction_Type( Family5 ) );
383 M_mapNameDefinition.insert( std::pair<std::string, fiberFunctionPtr_Type>
384 (
"Family5", pointerToFunction ) );
386 pointerToFunction.reset(
new fiberFunction_Type( Family6 ) );
387 M_mapNameDefinition.insert( std::pair<std::string, fiberFunctionPtr_Type>
388 (
"Family6", pointerToFunction ) );
393 fibersDirectionList::fiberFunctionPtr_Type fibersDirectionList::fiberDefinition(
const std::string nameFamily )
396 mapNameDefinitionFiberFunction_Type::const_iterator IT;
398 IT = M_mapNameDefinition.find ( nameFamily );
400 if ( IT != M_mapNameDefinition.end() )
406 std::cout <<
" Wrong identification of the fiber function! " << std::endl;
407 fiberFunctionPtr_Type pointerToFunction(
new fiberFunction_Type() );
409 return pointerToFunction;
Real d0(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
void updateInverseJacobian(const UInt &iQuadPt)
Real w0(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
Real f(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
double Real
Generic real data.
uint32_type UInt
generic unsigned integer (used mainly for addressing)