-
Notifications
You must be signed in to change notification settings - Fork 96
/
AbsorbingDampers.i
101 lines (84 loc) · 2.93 KB
/
AbsorbingDampers.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
// -*- 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-2012 University of California, Davis
//
// See COPYING for license information.
//
// ----------------------------------------------------------------------
//
/** @file modulesrc/bc/AbsorbingDampers.i
*
* @brief Python interface to C++ AbsorbingDampers object.
*/
namespace pylith {
namespace bc {
class AbsorbingDampers : public BCIntegratorSubMesh
{ // class AbsorbingDampers
// PUBLIC METHODS /////////////////////////////////////////////////
public :
/// Default constructor.
AbsorbingDampers(void);
/// Destructor.
~AbsorbingDampers(void);
/// Deallocate PETSc and local data structures.
void deallocate(void);
/** Set database for boundary condition parameters.
*
* @param db Spatial database
*/
void db(spatialdata::spatialdb::SpatialDB* const db);
/** Initialize boundary condition.
*
* @param mesh Finite-element mesh.
* @param upDir Direction perpendicular to horizontal surface tangent
* direction that is not collinear with surface normal.
*/
void initialize(const pylith::topology::Mesh& mesh,
const PylithScalar upDir[3]);
/** Integrate contributions to residual term (r) for operator.
*
* @param residual Field containing values for residual
* @param t Current time
* @param fields Solution fields
*/
void integrateResidual(const pylith::topology::Field<pylith::topology::Mesh>& residual,
const PylithScalar t,
pylith::topology::SolutionFields* const fields);
/** Integrate contributions to Jacobian matrix (A) associated with
* operator.
*
* @param mat Sparse matrix
* @param t Current time
* @param fields Solution fields
*/
void integrateJacobian(pylith::topology::Jacobian* mat,
const PylithScalar t,
pylith::topology::SolutionFields* const fields);
/** Integrate contributions to Jacobian matrix (A) associated with
* operator.
*
* @param jacobian Jacobian of system.
* @param t Current time
* @param fields Solution fields
*/
void integrateJacobian(pylith::topology::Field<pylith::topology::Mesh>* jacobian,
const PylithScalar t,
pylith::topology::SolutionFields* const fields);
/** Verify configuration is acceptable.
*
* @param mesh Finite-element mesh
*/
void verifyConfiguration(const pylith::topology::Mesh& mesh) const;
}; // class AbsorbingDampers
} // bc
} //pylith
// End of file