LifeV
structure/examples/example_anisotropicTraction/ud_functions.hpp
Go to the documentation of this file.
1 //@HEADER
2 /*
3 *******************************************************************************
4 
5  Copyright (C) 2004, 2005, 2007 EPFL, Politecnico di Milano, INRIA
6  Copyright (C) 2010 EPFL, Politecnico di Milano, Emory University
7 
8  This file is part of LifeV.
9 
10  LifeV is free software; you can redistribute it and/or modify
11  it under the terms of the GNU Lesser General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  LifeV is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Lesser General Public License
21  along with LifeV. If not, see <http://www.gnu.org/licenses/>.
22 
23 *******************************************************************************
24 */
25 //@HEADER
26 
27 /*!
28  * @file
29  * @brief File containing the boundary conditions for the Monolithic Test
30  *
31  * @date 2009-04-09
32  * @author Paolo Tricerri <paolo.tricerri@epfl.ch>
33  *
34  * @maintainer Paolo Tricerri <paolo.tricerri@epfl.ch>
35  *
36  * Contains the functions to be assigned as boundary conditions, in the file boundaryConditions.hpp . The functions
37  * can depend on time and space, while they can take in input an ID specifying one of the three principal axis
38  * if the functions to assign is vectorial and the boundary condition is of type \c Full \c.
39  */
40 
41 #ifndef UDF_ANISOTROPIC_HPP
42 #define UDF_ANISOTROPIC_HPP
43 
44 #include <lifev/core/LifeV.hpp>
45 
46 namespace LifeV
47 {
48 
49 //Body Forces
50 Real f (const Real& /*t*/, const Real& /*x*/, const Real& /*y*/, const Real& /*z*/, const ID& /*i*/);
51 Real InternalPressure (const Real& t, const Real& /*x*/, const Real& /*y*/, const Real& /*z*/, const ID& /*i*/);
52 Real fzero_scalar (const Real& /*t*/, const Real& /*x*/, const Real& /*y*/, const Real& /*z*/, const ID& /*i*/);
53 
54 // Initial displacement and velocity
55 Real d0 (const Real& /*t*/, const Real& x, const Real& y, const Real& z, const ID& i);
56 Real w0 (const Real& /*t*/, const Real& /*x*/, const Real& /*y*/, const Real& /*z*/, const ID& /*i*/);
57 Real a0 (const Real& /*t*/, const Real& /*x*/, const Real& /*y*/, const Real& /*z*/, const ID& /*i*/);
58 
59 //Boundary Conditions
60 Real bcZero (const Real& /*t*/, const Real& /*X*/, const Real& /*Y*/, const Real& /*Z*/, const ID& /*i*/);
61 Real bcNonZero (const Real& /*t*/, const Real& /*X*/, const Real& /*Y*/, const Real& /*Z*/, const ID& /*i*/);
62 Real smoothPressure(const Real& t, const Real& x, const Real& y, const Real& /*Z*/, const ID& i);
63 Real bcNonZeroSecondOrderExponential (const Real& /*t*/, const Real& /*X*/, const Real& /*Y*/, const Real& /*Z*/, const ID& /*i*/);
64 
65 Real thetaFunction ( const Real& /*t*/, const Real& x, const Real& y, const Real& z, const ID& i);
66 Real thetaRotationFunction ( const Real& /*t*/, const Real& x, const Real& y, const Real& z, const ID& i);
67 Real positionCenter ( const Real& /*t*/, const Real& x, const Real& y, const Real& z, const ID& i);
68 Real localPosition ( const Real& /*t*/, const Real& x, const Real& y, const Real& z, const ID& i);
69 
70 //Fiber Directions
71 Real Family1 ( const Real& /*t*/, const Real& x, const Real& y, const Real& z, const ID& i);
72 Real Family2 ( const Real& /*t*/, const Real& x, const Real& y, const Real& z, const ID& i);
73 Real Family3 ( const Real& /*t*/, const Real& x, const Real& y, const Real& z, const ID& i);
74 Real Family4 ( const Real& /*t*/, const Real& x, const Real& y, const Real& z, const ID& i);
75 Real Family5 ( const Real& /*t*/, const Real& x, const Real& y, const Real& z, const ID& i);
76 Real Family6 ( const Real& /*t*/, const Real& x, const Real& y, const Real& z, const ID& i);
77 
79 {
80 public:
81 
82  typedef std::function<Real ( Real const&, Real const&, Real const&, Real const&, ID const& ) > fiberFunction_Type;
85 
87 
89 
90  fiberFunctionPtr_Type fiberDefinition( const std::string nameFamily );
91  void setupFiberDefinitions( const UInt nbFamilies );
92 
93 private:
95 };
96 
97 
98 }
99 
100 #endif
void assignFunction(bcBase_Type &base)
Assign the function to the base of the BCHandler.
Real bcNonZeroSecondOrderExponential(const Real &, const Real &, const Real &, const Real &, const ID &)
Real a0(const Real &, const Real &, const Real &, const Real &, const ID &)
Real Family6(const Real &, const Real &x, const Real &y, const Real &z, const ID &i)
Real Family4(const Real &, const Real &x, const Real &y, const Real &z, const ID &i)
Real thetaFunction(const Real &, const Real &x, const Real &y, const Real &z, const ID &i)
Real Family2(const Real &, const Real &x, const Real &y, const Real &z, const ID &i)
Real positionCenter(const Real &, const Real &x, const Real &y, const Real &z, const ID &i)
std::function< Real(Real const &, Real const &, Real const &, Real const &, ID const &) > fiberFunction_Type
std::shared_ptr< fiberFunction_Type > fiberFunctionPtr_Type
uint32_type ID
IDs.
Definition: LifeV.hpp:194
Real smoothPressure(const Real &t, const Real &x, const Real &y, const Real &, const ID &i)
Real Family3(const Real &, const Real &x, const Real &y, const Real &z, const ID &i)
Real localPosition(const Real &, const Real &x, const Real &y, const Real &z, const ID &i)
Real thetaRotationFunction(const Real &, const Real &x, const Real &y, const Real &z, const ID &i)
double Real
Generic real data.
Definition: LifeV.hpp:175
void setupFiberDefinitions(const UInt nbFamilies)
Real InternalPressure(const Real &t, const Real &, const Real &, const Real &, const ID &)
fiberFunctionPtr_Type fiberDefinition(const std::string nameFamily)
Real fzero_scalar(const Real &, const Real &, const Real &, const Real &, const ID &)
Real Family1(const Real &, const Real &x, const Real &y, const Real &z, const ID &i)
Real Family5(const Real &, const Real &x, const Real &y, const Real &z, const ID &i)
Real bcNonZero(const Real &, const Real &, const Real &, const Real &, const ID &)
std::map< std::string, fiberFunctionPtr_Type > mapNameDefinitionFiberFunction_Type
Real bcZero(const Real &, const Real &, const Real &, const Real &, const ID &)
uint32_type UInt
generic unsigned integer (used mainly for addressing)
Definition: LifeV.hpp:191