ESyS-Particle
2.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Frac.h
Go to the documentation of this file.
1
2
// //
3
// Copyright (c) 2003-2013 by The University of Queensland //
4
// Earth Systems Science Computational Centre (ESSCC) //
5
// http://www.uq.edu.au/esscc //
6
// //
7
// Primary Business: Brisbane, Queensland, Australia //
8
// Licensed under the Open Software License version 3.0 //
9
// http://www.opensource.org/licenses/osl-3.0.php //
10
// //
12
13
#ifndef __FRAC_H
14
#define __FRAC_H
15
16
#include "
graph.h
"
17
#include <map>
18
#include <set>
19
#include <iostream>
20
#include <string>
21
22
using
std::map;
23
using
std::multimap;
24
using
std::set;
25
using
std::ostream;
26
using
std::string;
27
28
class
Frac
29
{
30
private
:
31
multimap<int,int>
m_old_grain_map
;
32
multimap<int,int>
m_new_grain_to_particle_map
;
33
map<int,int>
m_new_grain_map
;
34
map<int,set<int> >
m_grain_to_grain_map
;
35
map<int,int>
m_tag_map
;
36
map<int,double>
m_old_grain_mass_map
;
37
map<int,double>
m_new_grain_mass_map
;
38
39
map<int,Vec3>
get_move_vectors
(
const
Graph
&);
40
map<int,double>
get_grain_mass
(
const
Graph
&);
41
42
public
:
43
Frac
(
const
Graph
&,
const
Graph
&);
44
45
void
writeMassRatio
(ostream&,
double
);
46
int
writeAllMass
(ostream&,
double
,
int
,
bool
with_tag=
false
);
47
void
writeAsVtk
(
const
string
&,
float
,
const
Graph
&,
bool
);
48
pair<double,double>
getSplitAbrasion
(
Graph
&,
double
,
double
);
49
};
50
#endif //__FRAC_H
Tools
ExtractGrains
Frac.h
Generated on Mon May 6 2013 23:26:31 for ESyS-Particle by
1.8.3.1