-
Notifications
You must be signed in to change notification settings - Fork 96
/
TimeDependentPoints.i
77 lines (63 loc) · 2.04 KB
/
TimeDependentPoints.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
// -*- 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/TimeDependentPoints.i
*
* @brief Python interface to C++ TimeDependentPoints object.
*/
namespace pylith {
namespace bc {
class pylith::bc::TimeDependentPoints : public BoundaryConditionPoints,
public TimeDependent
{ // class TimeDependentPoints
// PUBLIC METHODS /////////////////////////////////////////////////
public :
/// Default constructor.
TimeDependentPoints(void);
/// Destructor.
~TimeDependentPoints(void);
/// Deallocate PETSc and local data structures.
virtual
void deallocate(void);
/** Set indices of degrees of freedom associated with BC.
*
* Note: Forces at all points are applied to the same degrees of freedom.
*
* Example: [0, 1] to apply forces to x and y degrees of freedom in
* Cartesian system.
*
* @param flags Array of indices for degrees of freedom for forces.
* @param size Size of array
*/
%apply(int* INPLACE_ARRAY1, int DIM1) {
(const int* flags,
const int size)
};
void bcDOF(const int* flags,
const int size);
%clear(const int* flags, const int size);
// PROTECTED METHODS //////////////////////////////////////////////
protected :
/** Get label of boundary condition surface.
*
* @returns Label of surface (from mesh generator).
*/
const char* _getLabel(void) const;
}; // class TimeDependentPoints
} // bc
} // pylith
// End of file