v0.15.0
Loading...
Searching...
No Matches
sdf.yPlane Class Reference

Public Member Functions

 sDF (shift, y)
 
 gradSdf ()
 
 hessSdf ()
 
 __init__ (self, Xc, Yc, Zc, shift)
 
 sDF (self, x, y, z)
 
 gradSdf (self, x, y, z)
 
 hessSdf (self, x, y, z)
 
 __init__ (self, Xc, Yc, Zc, shift)
 
 sDF (self, x, y, z)
 
 gradSdf (self, x, y, z)
 
 hessSdf (self, x, y, z)
 
 __init__ (self, Xc, Yc, Zc, shift)
 
 sDF (self, x, y, z)
 
 gradSdf (self, x, y, z)
 
 hessSdf (self, x, y, z)
 

Public Attributes

 Xc = Xc
 
 Yc = Yc
 
 Zc = Zc
 
 xc = Xc
 
 yc = Yc
 
 zc = Zc
 
 shift = shift
 

Detailed Description

Definition at line 46 of file sdf.py.

Constructor & Destructor Documentation

◆ __init__() [1/3]

sdf.yPlane.__init__ ( self,
Xc,
Yc,
Zc,
shift )

Definition at line 47 of file sdf.py.

47 def __init__(self,Xc,Yc,Zc,shift):
48 # Initial Centroid
49 self.Xc = Xc
50 self.Yc = Yc
51 self.Zc = Zc
52
53 # Current Centroid
54 self.xc = Xc
55 self.yc = Yc
56 self.zc = Zc
57
58 # Indenter Dimensions
59 self.shift = shift
60
61

◆ __init__() [2/3]

sdf.yPlane.__init__ ( self,
Xc,
Yc,
Zc,
shift )

Definition at line 26 of file sdf.py.

26 def __init__(self,Xc,Yc,Zc,shift):
27 # Initial Centroid
28 self.Xc = Xc
29 self.Yc = Yc
30 self.Zc = Zc
31
32 # Current Centroid
33 self.xc = Xc
34 self.yc = Yc
35 self.zc = Zc
36
37 # Indenter Dimensions
38 self.shift = shift
39
40

◆ __init__() [3/3]

sdf.yPlane.__init__ ( self,
Xc,
Yc,
Zc,
shift )

Definition at line 47 of file sdf.py.

47 def __init__(self,Xc,Yc,Zc,shift):
48 # Initial Centroid
49 self.Xc = Xc
50 self.Yc = Yc
51 self.Zc = Zc
52
53 # Current Centroid
54 self.xc = Xc
55 self.yc = Yc
56 self.zc = Zc
57
58 # Indenter Dimensions
59 self.shift = shift
60
61

Member Function Documentation

◆ gradSdf() [1/4]

sdf.yPlane.gradSdf ( )

Definition at line 28 of file sdf.py.

28 def gradSdf():
29 # nx, ny, nz
30 return [0, 1, 0]
31

◆ gradSdf() [2/4]

sdf.yPlane.gradSdf ( self,
x,
y,
z )

Definition at line 65 of file sdf.py.

65 def gradSdf(self,x, y,z):
66 dx = np.zeros_like(x)
67 dy = np.ones_like(y)
68 dz = np.zeros_like(z)
69 dx = dx.reshape((-1,1))
70 dy = dy.reshape((-1,1))
71 dz = dz.reshape((-1,1))
72 grad_array = np.hstack([dx, dy, dz])
73 return grad_array
74

◆ gradSdf() [3/4]

sdf.yPlane.gradSdf ( self,
x,
y,
z )

Definition at line 44 of file sdf.py.

44 def gradSdf(self, x, y, z):
45 dx = np.zeros_like(x).reshape((-1, 1))
46 dy = np.ones_like(y).reshape((-1, 1))
47 dz = np.zeros_like(z).reshape((-1, 1))
48 return np.hstack([dx, dy, dz])
49

◆ gradSdf() [4/4]

sdf.yPlane.gradSdf ( self,
x,
y,
z )

Definition at line 65 of file sdf.py.

65 def gradSdf(self,x, y,z):
66 dx = np.zeros_like(x)
67 dy = np.ones_like(y)
68 dz = np.zeros_like(z)
69 dx = dx.reshape((-1,1))
70 dy = dy.reshape((-1,1))
71 dz = dz.reshape((-1,1))
72 grad_array = np.hstack([dx, dy, dz])
73 return grad_array
74

◆ hessSdf() [1/4]

sdf.yPlane.hessSdf ( )

Definition at line 32 of file sdf.py.

32 def hessSdf():
33 # xx, yx, zx, yy, zy, zz
34 return [0, 0, 0, 0, 0, 0]
35
36

◆ hessSdf() [2/4]

sdf.yPlane.hessSdf ( self,
x,
y,
z )

Definition at line 75 of file sdf.py.

75 def hessSdf(self,x, y,z):
76 zeros = np.zeros_like(x)
77 zeros = zeros.reshape((-1,1))
78
79 hess_array = np.hstack([zeros, zeros, zeros, zeros, zeros, zeros])
80
81 # xx, yx, zx, yy, zy, zz
82 return hess_array
83

◆ hessSdf() [3/4]

sdf.yPlane.hessSdf ( self,
x,
y,
z )

Definition at line 50 of file sdf.py.

50 def hessSdf(self, x, y, z):
51 zeros = np.zeros_like(x).reshape((-1, 1))
52 return np.hstack([zeros for _ in range(6)]) # xx, yx, zx, yy, zy, zz
53

◆ hessSdf() [4/4]

sdf.yPlane.hessSdf ( self,
x,
y,
z )

Definition at line 75 of file sdf.py.

75 def hessSdf(self,x, y,z):
76 zeros = np.zeros_like(x)
77 zeros = zeros.reshape((-1,1))
78
79 hess_array = np.hstack([zeros, zeros, zeros, zeros, zeros, zeros])
80
81 # xx, yx, zx, yy, zy, zz
82 return hess_array
83

◆ sDF() [1/4]

sdf.yPlane.sDF ( self,
x,
y,
z )

Definition at line 62 of file sdf.py.

62 def sDF(self, x, y, z):
63 return np.subtract(y,self.shift)
64

◆ sDF() [2/4]

sdf.yPlane.sDF ( self,
x,
y,
z )

Definition at line 41 of file sdf.py.

41 def sDF(self, x, y, z):
42 return np.subtract(y,self.shift)
43

◆ sDF() [3/4]

sdf.yPlane.sDF ( self,
x,
y,
z )

Definition at line 62 of file sdf.py.

62 def sDF(self, x, y, z):
63 return np.subtract(y,self.shift)
64

◆ sDF() [4/4]

sdf.yPlane.sDF ( shift,
y )

Definition at line 25 of file sdf.py.

25 def sDF(shift, y):
26 return y - shift
27

Member Data Documentation

◆ shift

sdf.yPlane.shift = shift

Definition at line 59 of file sdf.py.

◆ Xc

sdf.yPlane.Xc = Xc

Definition at line 49 of file sdf.py.

◆ xc

sdf.yPlane.xc = Xc

Definition at line 54 of file sdf.py.

◆ Yc

sdf.yPlane.Yc = Yc

Definition at line 50 of file sdf.py.

◆ yc

sdf.yPlane.yc = Yc

Definition at line 55 of file sdf.py.

◆ Zc

sdf.yPlane.Zc = Zc

Definition at line 51 of file sdf.py.

◆ zc

sdf.yPlane.zc = Zc

Definition at line 56 of file sdf.py.


The documentation for this class was generated from the following files: