LifeV
fsi/testsuite/fsi_restart/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 Crosetto <crosetto@iacspc70.epfl.ch>
33  *
34  * @contributor Cristiano Malossi <cristiano.malossi@epfl.ch>
35  * @maintainer Paolo Crosetto <crosetto@iacspc70.epfl.ch>
36  *
37  * Contains the functions to be assigned as boundary conditions, in the file boundaryConditions.hpp . The functions
38  * can depend on time and space, while they can take in input an ID specifying one of the three principal axis
39  * if the functions to assign is vectorial and the boundary condition is of type \c Full \c.
40  */
41 
42 #ifndef UDF_HPP
43 #define UDF_HPP
44 
45 // LifeV includes
46 #include <lifev/core/LifeV.hpp>
47 
48 namespace LifeV
49 {
50 
51 class aortaVelIn
52 {
53 public:
54  static Real S_timestep;
55 };
56 
57 Real f (const Real& t, const Real& x, const Real& y, const Real& z, const ID& i);
58 
59 Real u1 (const Real& t, const Real& x, const Real& y, const Real& z, const ID& i);
60 
61 Real fZero (const Real& t, const Real& x, const Real& y, const Real& z, const ID& i);
62 
63 // Initial velocity
64 Real u0 (const Real& t, const Real& x, const Real& y, const Real& z, const ID& i);
65 Real p0 (const Real& t, const Real& x, const Real& y, const Real& z, const ID& i);
66 Real E (const Real& /*t*/, const Real& /*x*/, const Real& /*y*/, const Real& /*z*/, const ID& /*i*/);
67 Real hydrostatic (const Real& /*t*/, const Real& /*x*/, const Real& /*y*/, const Real& /*z*/, const ID& /*i*/);
68 
69 Real hydro (const Real& t, const Real& /*x*/, const Real& /*y*/, const Real& /*z*/, const ID& i);
70 Real u2 (const Real& t, const Real& x, const Real& y, const Real& z, const ID& i);
71 
72 
73 // Initial displacement and velocity
74 Real d0 (const Real& t, const Real& x, const Real& y, const Real& z, const ID& i);
75 
76 Real w0 (const Real& t, const Real& x, const Real& y, const Real& z, const ID& i);
77 
78 Real uInterpolated (const Real& time, const Real& x, const Real& y, const Real& z, const ID& i);
79 
80 Real aortaPhisPress (const Real& t, const Real& /*x*/, const Real& /*y*/, const Real& /*z*/, const ID& i);
81 Real vinit (const Real& t, const Real& /*x*/, const Real& /*y*/, const Real& /*z*/, const ID& i);
82 
83 Real u2normal (const Real& t, const Real& /*x*/, const Real& /*y*/, const Real& /*z*/, const ID& /*i*/);
84 
85 Real fluxFunction (const Real& t, const Real& /*x*/, const Real& /*y*/, const Real& /*z*/, const ID& i);
86 
87 Real squareSinusoidalFluxFunction (const Real& t, const Real& /*x*/, const Real& /*y*/, const Real& /*z*/, const ID& /*i*/);
88 }
89 
90 
91 
92 #endif
void assignFunction(bcBase_Type &base)
Assign the function to the base of the BCHandler.
Real hydro(const Real &t, const Real &, const Real &, const Real &, const ID &i)
Real u2(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
Real vinit(const Real &t, const Real &, const Real &, const Real &, const ID &i)
uint32_type ID
IDs.
Definition: LifeV.hpp:194
Real squareSinusoidalFluxFunction(const Real &t, const Real &, const Real &, const Real &, const ID &)
double Real
Generic real data.
Definition: LifeV.hpp:175
Real hydrostatic(const Real &, const Real &, const Real &, const Real &, const ID &)
Real fluxFunction(const Real &, const Real &, const Real &, const Real &, const ID &i)