LifeV
fsi/testsuite/fsi_restart/flowConditions.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 
38 #ifndef __FLOWCONDITIONS_HPP
39 #define __FLOWCONDITIONS_HPP
40 
41 
42 #include <Epetra_SerialDenseVector.h>
43 
44 
45 // LifeV includes
46 #include <lifev/core/LifeV.hpp>
47 #include <lifev/core/filter/GetPot.hpp>
48 #include <lifev/fsi/solver/FSISolver.hpp>
49 #include <lifev/fsi/solver/FSIOperator.hpp>
50 
51 namespace LifeV
52 {
53 
54 class FlowConditions
55 {
56 public:
57 
59 
60  void initParameters ( FSIOperator& oper, const int& outflowFlag);
61 
62  void renewParameters ( FSISolver& oper, const int& outflowFlag);
63 
64  Real fZero (const Real& t, const Real& x, const Real& y, const Real& z, const ID& i);
65 
66  static Real outPressure0 (const Real& t, const Real& x, const Real& y, const Real& z, const ID& i);
67  static Real outPressure1 (const Real& t, const Real& x, const Real& y, const Real& z, const ID& i);
68  static Real outPressure2 (const Real& t, const Real& x, const Real& y, const Real& z, const ID& i);
69  static Real outPressure3 (const Real& t, const Real& x, const Real& y, const Real& z, const ID& i);
70  static Real outPressure4 (const Real& t, const Real& x, const Real& y, const Real& z, const ID& i);
71  static Real outPressure5 (const Real& t, const Real& x, const Real& y, const Real& z, const ID& i);
72  static Real outPressure6 (const Real& t, const Real& x, const Real& y, const Real& z, const ID& i);
73 
74  Real inDeltaRadius (const Real& t, const Real& x, const Real& y, const Real& z, const ID& i);
75  Real outDeltaRadius (const Real& t, const Real& x, const Real& y, const Real& z, const ID& i);
76 
77 
78 private:
79  Real pi;
80 
81  bool bcOnFluid;
82 
84  Real M_influx;
85  Real M_outP;
86 
87  Real M_area0;
92 
93  Real M_beta;
94  Real M_rhos;
95  static std::vector<Real> outputVector;
97 };
98 }
99 
100 #endif /* __FLOWCONDITIONS_HPP */
void assignFunction(bcBase_Type &base)
Assign the function to the base of the BCHandler.
static Real outPressure3(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
Real outDeltaRadius(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
static Real outPressure6(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
static Real outPressure4(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
static Real outPressure1(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
static Real outPressure0(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
static Real outPressure5(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
uint32_type ID
IDs.
Definition: LifeV.hpp:194
void renewParameters(FSISolver &oper, const int &outflowFlag)
Real fZero(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
double Real
Generic real data.
Definition: LifeV.hpp:175
static Real outPressure2(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
uint32_type UInt
generic unsigned integer (used mainly for addressing)
Definition: LifeV.hpp:191
void initParameters(FSIOperator &oper, const int &outflowFlag)
Real inDeltaRadius(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)