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

Public Member Functions

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

Public Attributes

 Xc
 
 Yc
 
 Zc
 
 xc
 
 yc
 
 zc
 
 shift
 

Detailed Description

Definition at line 24 of file sdf.py.

Constructor & Destructor Documentation

◆ __init__() [1/3]

def 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]

def 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]

def 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]

def 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]

def 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() [3/4]

def 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() [4/4]

def 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]

def 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]

def 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() [3/4]

def 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() [4/4]

def 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]

def 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() [2/4]

def 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() [3/4]

def 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]

def 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

Definition at line 59 of file sdf.py.

◆ Xc

sdf.yPlane.Xc

Definition at line 49 of file sdf.py.

◆ xc

sdf.yPlane.xc

Definition at line 54 of file sdf.py.

◆ Yc

sdf.yPlane.Yc

Definition at line 50 of file sdf.py.

◆ yc

sdf.yPlane.yc

Definition at line 55 of file sdf.py.

◆ Zc

sdf.yPlane.Zc

Definition at line 51 of file sdf.py.

◆ zc

sdf.yPlane.zc

Definition at line 56 of file sdf.py.


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