Flow123d
jenkins-Flow123d-linux-release-multijob-282
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
flow123d
src
flow
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
23
class
MH_DofHandler
{
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
;
49
double
solution_precision
;
50
double
time_
;
51
};
52
53
#endif
/* MH_DOFHANDLER_HH_ */
Side
Definition:
sides.h:43
MH_DofHandler::time_changed
double time_changed() const
Definition:
mh_dofhandler.hh:29
flow::FullIteratorId
Definition:
sys_vector.hh:167
Mesh
Definition:
mesh.h:109
std::vector
Definition:
doxy_dummy_defs.hh:7
MH_DofHandler::time_
double time_
Definition:
mh_dofhandler.hh:50
MH_DofHandler::precision
double precision() const
Definition:
mh_dofhandler.hh:43
SideIter
Definition:
sides.h:129
MH_DofHandler
Definition:
mh_dofhandler.hh:23
MH_DofHandler::mh_solution
double * mh_solution
Definition:
mh_dofhandler.hh:48
MH_DofHandler::solution_precision
double solution_precision
Definition:
mh_dofhandler.hh:49
mesh_types.hh
???
Generated by
1.8.5