UserRemote

class UserRemote

A user define remote stress

setFunction(fct: StressFunctor)

Set the user remote function

:param StressFunctor() fct: The function

valueAt(p: Coordinate) StressTensor

Get the stress at p

Parameters:

p (Coordinate) – The point coordinates

Returns:

The stress tensor as a flat array [xx, xy, xz, yy, yz, zz]

tractionAt(p: Coordinate, n: Coordinate) Coordinate

Get the traction at p given the normal n

Parameters:
  • p (Coordinate) – The point coordinates

  • n (Coordinate) – The normal to the plane

Returns:

The traction vector

Usage

remote = UserRemote()
remote.setFunction(lambda p: [0, 0, 0, 0, 0, 1000*p[2]])
model.addRemote(remote)