-
Notifications
You must be signed in to change notification settings - Fork 96
/
EqKinSrc.i
95 lines (77 loc) · 2.36 KB
/
EqKinSrc.i
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
95
// -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://geodynamics.org).
//
// Copyright (c) 2010-2014 University of California, Davis
//
// See COPYING for license information.
//
// ----------------------------------------------------------------------
//
/** @file modulesrc/faults/EqKinSrc.i
*
* @brief Python interface to C++ EqKinSrc object.
*/
namespace pylith {
namespace faults {
class EqKinSrc
{ // class EqKinSrc
// PUBLIC METHODS /////////////////////////////////////////////////
public :
/// Default constructor.
EqKinSrc(void);
/// Destructor.
~EqKinSrc(void);
/// Deallocate PETSc and local data structures.
virtual
void deallocate(void);
/** Set origin time for earthquake source.
*
* @param value Origin time for earthquake source.
*/
void originTime(const PylithScalar value);
/** Get origin time for earthquake source.
*
* @returns Origin time for earthquake source.
*/
PylithScalar originTime(void) const;
/** Set slip time function.
*
* @param slipfn Slip time function.
*/
void slipfn(SlipTimeFn* slipfn);
/** Initialize slip time function.
*
* @param faultMesh Finite-element mesh of fault.
* @param normalizer Nondimensionalization of scales.
*/
void initialize(const pylith::topology::Mesh& faultMesh,
const spatialdata::units::Nondimensional& normalizer);
/** Get slip on fault surface at time t.
*
* @param slipField Slip field over fault mesh.
* @param t Time t.
*/
void slip(pylith::topology::Field* const slipField,
const PylithScalar t);
/** Get final slip.
*
* @returns Final slip.
*/
const pylith::topology::Field& finalSlip(void) const;
/** Get time when slip begins at each point.
*
* @returns Time when slip begins.
*/
const pylith::topology::Field& slipTime(void) const;
}; // class EqKinSrc
} // faults
} // pylith
// End of file