-
Notifications
You must be signed in to change notification settings - Fork 3
/
events.hpp
94 lines (72 loc) · 2.37 KB
/
events.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// events.hpp
//
// This file develops a set of classes that represent earthquake or
// explosion seismic events as "sources" of elastodynamic phonons.
//
// The classes developed here derive from the base class developed in
// sources.hpp. Including this file in your code module will
// automatically include sources.hpp as well.
//
//
#ifndef EVENTS_H_
#define EVENTS_H_
//
#include "sources.hpp"
#include "tensors.hpp"
//////
// CLASSES: -- Forward Declarations --
//
// FROM OTHER HEADERS: (Referenced here by pointer only - no
// need to include full header.)
class MediumCell; /* Defined in media.hpp */
//////
// TYPEDEFS:
//
//////
// CLASSES: Definitions
//
//////
// CLASS: ::: ShearDislocation :::
// Shear Dislocation Seismic Event Phonon Source
//
// FROM: PhononSource (Public Inheritance)
//
// ENCAPSULATES:
//
// Moment-Tensor source of P- and S-waves from explosion or
// shear-dislocation events. Stores P and S probability
// distributions, and can spit out a randomly generated take-off
// angle if asked.
//
class ShearDislocation : public PhononSource {
protected:
// ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
// ::: Private Member Variables (ShearDislocation Class) :::
// ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
//
// (All the members of PhononSource PLUS:)
//
R3::XYZ mLoc; // Location of the event
Real mAmp_P; // Initial amplitude multiplier for P-waves
Real mAmp_S; // Initial amplitude multiplier for S-waves
MediumCell * mpCell; // MediumCell in which the Source is
// located. Set by the Link() method.
public:
// ::::::::::::::::::::::::::::::::::::::::::::::
// ::: Constructors (ShearDislocation Class) :::
// ::::::::::::::::::::::::::::::::::::::::::::::
ShearDislocation(Tensor::Tensor MT, R3::XYZ Loc);
// ::::::::::::::::::::::::::::::::::::::::::::::::::::::
// ::: Property-Set Methods (ShearDislocation Class) :::
// ::::::::::::::::::::::::::::::::::::::::::::::::::::::
void Link(MediumCell * pCell) {
mpCell = pCell;
}
// ::::::::::::::::::::::::::::::::::::::::::::::::::::::
// ::: Do-Something Methods (ShearDislocation Class) :::
// ::::::::::::::::::::::::::::::::::::::::::::::::::::::
Phonon GenerateEventPhonon();
};
///
#endif //#ifndef EVENTS_H_
//