v0.14.0
Classes | Functions | Variables
sdf_ydirection Namespace Reference

Classes

class  CylinderZ
 
class  Sphere
 
class  yPlane
 

Functions

def sdf (delta_t, t, x, y, z, tx, ty, tz, block_id)
 
def grad_sdf (delta_t, t, x, y, z, tx, ty, tz, block_id)
 
def hess_sdf (delta_t, t, x, y, z, tx, ty, tz, block_id)
 
def yDirection (t, obj)
 
def updatePosition (t, obj)
 

Variables

int r = 1
 
int indentationEndTime = 1
 
int indentationDepth = 0
 
list list_indenters = []
 

Function Documentation

◆ grad_sdf()

def sdf_ydirection.grad_sdf (   delta_t,
  t,
  x,
  y,
  z,
  tx,
  ty,
  tz,
  block_id 
)

Definition at line 18 of file sdf_ydirection.py.

18 def grad_sdf(delta_t, t, x, y, z, tx, ty, tz, block_id):
19  return list_indenters[0].gradSdf(x,y,z)
20 
21 

◆ hess_sdf()

def sdf_ydirection.hess_sdf (   delta_t,
  t,
  x,
  y,
  z,
  tx,
  ty,
  tz,
  block_id 
)

Definition at line 22 of file sdf_ydirection.py.

22 def hess_sdf(delta_t, t, x, y, z, tx, ty, tz, block_id):
23  return list_indenters[0].hessSdf(x,y,z)
24 
25 # Example Indenters
26 

◆ sdf()

def sdf_ydirection.sdf (   delta_t,
  t,
  x,
  y,
  z,
  tx,
  ty,
  tz,
  block_id 
)

Definition at line 12 of file sdf_ydirection.py.

12 def sdf(delta_t, t, x, y, z, tx, ty, tz, block_id):
13  for indenter in list_indenters[:]:
14  updatePosition(t,indenter)
15  return list_indenters[0].sDF(x,y,z)
16 
17 

◆ updatePosition()

def sdf_ydirection.updatePosition (   t,
  obj 
)

Definition at line 154 of file sdf_ydirection.py.

154 def updatePosition(t, obj):
155  return 0 if obj.t == t else yDirection(t, obj)
156 
157 
158 # Define Indenter geometry below
159 # radius

◆ yDirection()

def sdf_ydirection.yDirection (   t,
  obj 
)

Definition at line 148 of file sdf_ydirection.py.

148 def yDirection(t, obj):
149  offset = (t / indentationEndTime) if (t <= indentationEndTime) else 1
150  obj.yc = obj.Yc + (obj.depth * offset) if (obj.Yc < 0) else obj.Yc - (obj.depth * offset)
151  obj.xc, obj.zc, obj.t = obj.Xc, obj.Zc, t
152  return 0
153 

Variable Documentation

◆ indentationDepth

int sdf_ydirection.indentationDepth = 0

Definition at line 165 of file sdf_ydirection.py.

◆ indentationEndTime

int sdf_ydirection.indentationEndTime = 1

Definition at line 163 of file sdf_ydirection.py.

◆ list_indenters

list sdf_ydirection.list_indenters = []

Definition at line 167 of file sdf_ydirection.py.

◆ r

int sdf_ydirection.r = 1

Definition at line 160 of file sdf_ydirection.py.

sdf_ydirection.hess_sdf
def hess_sdf(delta_t, t, x, y, z, tx, ty, tz, block_id)
Definition: sdf_ydirection.py:22
sdf_ydirection.yDirection
def yDirection(t, obj)
Definition: sdf_ydirection.py:148
sdf_ydirection.sdf
def sdf(delta_t, t, x, y, z, tx, ty, tz, block_id)
Definition: sdf_ydirection.py:12
sdf_ydirection.updatePosition
def updatePosition(t, obj)
Definition: sdf_ydirection.py:154
sdf_ydirection.grad_sdf
def grad_sdf(delta_t, t, x, y, z, tx, ty, tz, block_id)
Definition: sdf_ydirection.py:18