-
Notifications
You must be signed in to change notification settings - Fork 96
/
FaultCohesiveKin.i
111 lines (94 loc) · 4.05 KB
/
FaultCohesiveKin.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
105
106
107
108
109
110
111
// -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University at Buffalo
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://geodynamics.org).
//
// Copyright (c) 2010-2022 University of California, Davis
//
// See LICENSE.md for license information.
//
// ----------------------------------------------------------------------
//
/** @file modulesrc/faults/FaultCohesiveKin.i
*
* @brief Python interface to C++ FaultCohesiveKin object.
*/
namespace pylith {
namespace faults {
class FaultCohesiveKin: public pylith::faults::FaultCohesive {
// PUBLIC METHODS //////////////////////////////////////////////////////////////////////////////////////////
public:
/// Default constructor.
FaultCohesiveKin(void);
/// Destructor.
virtual ~FaultCohesiveKin(void);
/// Deallocate PETSc and local data structures.
void deallocate(void);
/** Set kinematic earthquake sources.
*
* @param names Array of kinematic earthquake source names.
* @param numNames Number of earthquake sources.
* @param sources Array of kinematic earthquake sources.
* @param numSources Number of earthquake sources.
*/
%apply(const char* const* string_list, const int list_len) {
(const char* const* names,
const int numNames)
};
void setEqRuptures(const char* const* names,
const int numNames,
pylith::faults::KinSrc** ruptures,
const int numRuptures);
%clear(const char* const* names, const int numNames);
/** Verify configuration is acceptable.
*
* @param[in] solution Solution field.
*/
void verifyConfiguration(const pylith::topology::Field& solution) const;
/** Create auxiliary field.
*
* @param[in] solution Solution field.
* @param[in\ domainMesh Finite-element mesh associated with integration domain.
*
* @returns Auxiliary field if applicable, otherwise NULL.
*/
pylith::topology::Field* createAuxiliaryField(const pylith::topology::Field& solution,
const pylith::topology::Mesh& domainMesh);
/** Update auxiliary subfields at beginning of time step.
*
* @param[out] auxiliaryField Auxiliary field.
* @param[in] t Current time.
*/
void updateAuxiliaryField(pylith::topology::Field* auxiliaryField,
const double t);
// PROTECTED METHODS //////////////////////////////////////////////////////////////////
protected:
/** Get auxiliary factory associated with physics.
*
* @return Auxiliary factory for physics object.
*/
pylith::feassemble::AuxiliaryFactory* _getAuxiliaryFactory(void);
/** Set kernels for residual.
*
* @param[out] integrator Integrator for material.
* @param[in] solution Solution field.
*/
void _setKernelsResidual(pylith::feassemble::IntegratorInterface* integrator,
const pylith::topology::Field& solution) const;
/** Set kernels for Jacobian.
*
* @param[out] integrator Integrator for material.
* @param[in] solution Solution field.
*/
void _setKernelsJacobian(pylith::feassemble::IntegratorInterface* integrator,
const pylith::topology::Field& solution) const;
}; // class FaultCohesiveKin
} // faults
} // pylith
// End of file