v0.14.0
Public Member Functions | Public Attributes | List of all members
sdf_ydirection.yPlane Class Reference

Public Member Functions

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

Public Attributes

 t
 
 Xc
 
 Yc
 
 Zc
 
 xc
 
 yc
 
 zc
 
 shift
 
 depth
 

Detailed Description

Definition at line 27 of file sdf_ydirection.py.

Constructor & Destructor Documentation

◆ __init__()

def 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()

def 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()

def 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()

def 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

Definition at line 44 of file sdf_ydirection.py.

◆ shift

sdf_ydirection.yPlane.shift

Definition at line 43 of file sdf_ydirection.py.

◆ t

sdf_ydirection.yPlane.t

Definition at line 30 of file sdf_ydirection.py.

◆ Xc

sdf_ydirection.yPlane.Xc

Definition at line 33 of file sdf_ydirection.py.

◆ xc

sdf_ydirection.yPlane.xc

Definition at line 38 of file sdf_ydirection.py.

◆ Yc

sdf_ydirection.yPlane.Yc

Definition at line 34 of file sdf_ydirection.py.

◆ yc

sdf_ydirection.yPlane.yc

Definition at line 39 of file sdf_ydirection.py.

◆ Zc

sdf_ydirection.yPlane.Zc

Definition at line 35 of file sdf_ydirection.py.

◆ zc

sdf_ydirection.yPlane.zc

Definition at line 40 of file sdf_ydirection.py.


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