LifeV
BCInterfaceFunctionParserSolver0D.cpp
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 BCInterfaceFunctionParserSolver class
30  *
31  * @date 24-08-2009
32  * @author Cristiano Malossi <cristiano.malossi@epfl.ch>
33  *
34  * @maintainer Cristiano Malossi <cristiano.malossi@epfl.ch>
35  */
36 
37 // BCInterface includes
38 #include <lifev/bc_interface/0D/function/BCInterfaceFunctionParserSolver0D.hpp>
39 
40 namespace LifeV
41 {
42 
43 // ===================================================
44 // Methods
45 // ===================================================
46 template< >
47 void
49 {
50 
51 #ifdef HAVE_LIFEV_DEBUG
52  debugStream ( 5023 ) << "BCInterfaceFunctionSolver<ZeroDimensionalBCHandler, ZeroDimensionalData>::updatePhysicalSolverVariables" << "\n";
53 #endif
54 
55  // Create/Update variables
56  for ( std::set< physicalSolverList >::iterator j = M_list.begin(); j != M_list.end(); ++j )
57  switch ( *j )
58  {
59  // f_ -> FLUID
60  case f_timeStep:
61 
62 #ifdef HAVE_LIFEV_DEBUG
63  debugStream ( 5023 ) << " f_timeStep(): " << M_physicalSolver->dataTime()->timeStep() << "\n";
64 #endif
65  setVariable ( "f_timeStep", M_physicalSolver->dataTime()->timeStep() );
66 
67  break;
68 
69  case f_venousPressure:
70 
71 #ifdef HAVE_LIFEV_DEBUG
72  debugStream ( 5023 ) << " f_venousPressure(): " << M_physicalSolver->venousPressure() << "\n";
73 #endif
74  setVariable ( "f_venousPressure", M_physicalSolver->venousPressure() );
75 
76  break;
77 
78  default:
79 
80  switchErrorMessage ( "MultiscaleGlobalData" );
81 
82  break;
83  }
84 }
85 
86 
87 
88 // ===================================================
89 // Protected Methods
90 // ===================================================
91 template< >
92 void
94 {
95 
96 #ifdef HAVE_LIFEV_DEBUG
97  debugStream ( 5023 ) << "BCInterfaceFunctionSolver<ZeroDimensionalBCHandler, ZeroDimensionalData>::createAccessList( data )" << "\n";
98 #endif
99 
101 
103  createList ( mapList, data );
104 
105  if ( M_physicalSolver.get() )
106  {
108  }
109 }
110 
111 } // Namespace LifeV
void updateInverseJacobian(const UInt &iQuadPt)