-
Notifications
You must be signed in to change notification settings - Fork 96
/
TractPerturbation.i
104 lines (85 loc) · 2.87 KB
/
TractPerturbation.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
96
97
98
99
100
101
102
103
104
// -*- 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/TractPerturbation.i
*
* @brief Python interface to C++ TractPerturbation object.
*/
namespace pylith {
namespace faults {
class TractPerturbation : public pylith::bc::TimeDependent
{ // class TractPerturbation
// PUBLIC METHODS /////////////////////////////////////////////////
public :
/// Default constructor.
TractPerturbation(void);
/// Destructor.
virtual
~TractPerturbation(void);
/// Deallocate PETSc and local data structures.
virtual
void deallocate(void);
/** Set label for traction perturbation.
*
* @param value Label.
*/
void label(const char* value);
/** Get parameter fields.
*
* @returns Parameter fields.
*/
const pylith::topology::Fields* parameterFields(void) const;
/** Initialize slip time function.
*
* @param faultMesh Finite-element mesh of fault.
* @param faultOrientation Orientation of fault.
* @param normalizer Nondimensionalization of scales.
*/
void initialize(const pylith::topology::Mesh& faultMesh,
const pylith::topology::Field& faultOrientation,
const spatialdata::units::Nondimensional& normalizer);
/** Calculate spatial and temporal variation of value.
*
* @param t Current time.
*/
void calculate(const PylithScalar t);
/** Determine if perturbation has a given parameter.
*
* @param name Name of parameter field.
* @returns True if perturbation has parameter field, false otherwise.
*/
bool hasParameter(const char* name) const;
/** Get vertex field with traction perturbation information.
*
* @param name Name of field.
* @param fields Solution fields.
*
* @returns Traction vector field.
*/
const pylith::topology::Field& vertexField(const char* name,
pylith::topology::SolutionFields* const fields =0);
// PROTECTED METHODS //////////////////////////////////////////////
protected :
/** Get label of boundary condition surface.
*
* @returns Label of surface (from mesh generator).
*/
const char* _getLabel(void) const;
}; // class TractPerturbation
} // faults
} // pylith
// End of file