Flow123d  jenkins-Flow123d-windows32-release-multijob-51
mh_dofhandler.hh
Go to the documentation of this file.
1 /*
2  * mh_dofhandler.hh
3  *
4  * Created on: Jun 18, 2012
5  * Author: jb
6  */
7 
8 #ifndef MH_DOFHANDLER_HH_
9 #define MH_DOFHANDLER_HH_
10 
11 #include <vector>
12 #include "mesh/mesh_types.hh"
13 
14 using namespace std;
15 
16 class Mesh;
17 class Side;
18 class SideIter;
19 
20 
21 /// temporary solution to provide access to results
22 /// from DarcyFlowMH independent of mesh
24 public:
25  void reinit(Mesh *mesh);
26 
27  void set_solution( double time, double * solution, double precision);
28 
29  inline double time_changed() const
30  { return time_; }
31 
32  unsigned int side_dof(const SideIter side) const;
33 
34  /// temporary replacement for DofHandler accessor, flux through given side
35  double side_flux(const Side &side) const;
36 
37  /// temporary replacement for DofHandler accessor, scalar (pressure) on edge of the side
38  double side_scalar(const Side &side) const;
39 
40  /// temporary replacement for DofHandler accessor, scalar (pressure) on element
41  double element_scalar( ElementFullIter &ele ) const;
42 
43  inline double precision() const { return solution_precision; };
44 
45 
46 protected:
47  vector< vector<unsigned int> > elem_side_to_global;
48  double * mh_solution;
50  double time_;
51 };
52 
53 #endif /* MH_DOFHANDLER_HH_ */
Definition: sides.h:43
double time_changed() const
Definition: mesh.h:108
double precision() const
double * mh_solution
double solution_precision