BoundaryTraction#

class BoundaryTraction#

Bases: object

Contains the traction parameters of a Magnet’s boundary at each of the 6 sides of rectangular cells. The traction is applied as a boundary condition of the stress tensor σ during calculation of the internal force.

t = σ·n = n·σ

Here t is the applied traction vector at the boundary with normal vector n, with n equal to ± e_x, ± e_y or ± e_z, represented by pos_x_side, neg_x_side, pos_y_side, neg_y_side, pos_z_side and neg_z_side.

The traction set in any cell without a relevant boundary (e.g. in bulk cells) is thus ignored.

BoundaryTraction should not be initialized by the end user.

__init__(impl)#

Create BoundaryTraction from a cpp BoundaryTraction instance.

Warning

The end user should not create BoundaryTraction instances. Each Magnet already has BoundaryTraction as an attribute which can be used to set the traction parameters. See Magnet.boundary_traction().

Parameters:

impl (_mumaxpluscpp.BoundaryTraction)

make_zero()#

Set all traction parameters to zero.

property pos_x_side#

External traction vector (Pa) applied at the boundary with normal vector n = (+1, 0, 0).

property neg_x_side#

External traction vector (Pa) applied at the boundary with normal vector n = (-1, 0, 0).

property pos_y_side#

External traction vector (Pa) applied at the boundary with normal vector n = (0, +1, 0).

property neg_y_side#

External traction vector (Pa) applied at the boundary with normal vector n = (0, -1, 0).

property pos_z_side#

External traction vector (Pa) applied at the boundary with normal vector n = (0, 0, +1).

property neg_z_side#

External traction vector (Pa) applied at the boundary with normal vector n = (0, 0, -1).