assign_current_density#
- Maxwell2d.assign_current_density(assignment, current_density_name=None, phase='0deg', current_density_x='0', current_density_y='0', current_density_z='0', current_density_2d='0', coordinate_system='Global', coordinate_system_type='Cartesian')#
Assign current density to a single or list of entities.
This method specifies the x-, y-, and z-components of the current density in a conduction path.
- Parameters:
- assignment
list
Objects to assign the current to.
- current_density_name
str
,optional
Current density name. If no name is provided a random name is generated.
- phase
str
,optional
Current density phase. Available units are ‘deg’, ‘degmin’, ‘degsec’ and ‘rad’. Default value is 0deg.
- current_density_x
str
,optional
Current density X coordinate value. Default value is 0 A/m2.
- current_density_y
str
,optional
Current density Y coordinate value. Default value is 0 A/m2.
- current_density_z
str
,optional
Current density Z coordinate value. Default value is 0 A/m2.
- current_density_2d
str
,optional
Current density 2D value. Default value is 0 A/m2.
- coordinate_system
str
,optional
Coordinate system name. Default value is ‘Global’.
- coordinate_system_type
str
,optional
Coordinate system cartesian. Possible values can be
"Cartesian"
,"Cylindrical"
, and"Spherical"
. Default value is"Cartesian"
.
- assignment
- Returns:
- bool
True
when successful,False
when failed.