v0.15.0
Loading...
Searching...
No Matches
sdf_ydirection.yPlane Class Reference
Collaboration diagram for sdf_ydirection.yPlane:
[legend]

Public Member Functions

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

Public Attributes

int t = 0
 
 Xc = Xc
 
 Yc = Yc
 
 Zc = Zc
 
 xc = Xc
 
 yc = Yc
 
 zc = Zc
 
 shift = shift
 
 depth = indentationDepth
 

Detailed Description

Definition at line 27 of file sdf_ydirection.py.

Constructor & Destructor Documentation

◆ __init__()

sdf_ydirection.yPlane.__init__ ( self,
Xc,
Yc,
Zc,
shift,
indentationDepth )

Definition at line 28 of file sdf_ydirection.py.

28 def __init__(self,Xc,Yc,Zc,shift,indentationDepth):
29 # Initial time
30 self.t = 0
31
32 # Initial Centroid
33 self.Xc = Xc
34 self.Yc = Yc
35 self.Zc = Zc
36
37 # Current Centroid
38 self.xc = Xc
39 self.yc = Yc
40 self.zc = Zc
41
42 # Indenter Dimensions
43 self.shift = shift
44 self.depth = indentationDepth
45
46

Member Function Documentation

◆ gradSdf()

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

Definition at line 50 of file sdf_ydirection.py.

50 def gradSdf(self, x, y, z):
51 dx = np.zeros_like(x).reshape((-1, 1))
52 dy = np.ones_like(y).reshape((-1, 1))
53 dz = np.zeros_like(z).reshape((-1, 1))
54 return np.hstack([dx, dy, dz])
55

◆ hessSdf()

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

Definition at line 56 of file sdf_ydirection.py.

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

◆ sDF()

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

Definition at line 47 of file sdf_ydirection.py.

47 def sDF(self, x, y, z):
48 return np.subtract(y,self.shift)
49

Member Data Documentation

◆ depth

sdf_ydirection.yPlane.depth = indentationDepth

Definition at line 44 of file sdf_ydirection.py.

◆ shift

sdf_ydirection.yPlane.shift = shift

Definition at line 43 of file sdf_ydirection.py.

◆ t

int sdf_ydirection.yPlane.t = 0

Definition at line 30 of file sdf_ydirection.py.

◆ Xc

sdf_ydirection.yPlane.Xc = Xc

Definition at line 33 of file sdf_ydirection.py.

◆ xc

sdf_ydirection.yPlane.xc = Xc

Definition at line 38 of file sdf_ydirection.py.

◆ Yc

sdf_ydirection.yPlane.Yc = Yc

Definition at line 34 of file sdf_ydirection.py.

◆ yc

sdf_ydirection.yPlane.yc = Yc

Definition at line 39 of file sdf_ydirection.py.

◆ Zc

sdf_ydirection.yPlane.Zc = Zc

Definition at line 35 of file sdf_ydirection.py.

◆ zc

sdf_ydirection.yPlane.zc = Zc

Definition at line 40 of file sdf_ydirection.py.


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