The machine.py module#

Summary#

MachineConstants

Provides constants for additive manufacturing machine settings.

AdditiveMachine

Provides the additive manufacturing machine settings used during simulations.

Description#

Provides a container for machine parameters.

Module detail#

class machine.MachineConstants#

Provides constants for additive manufacturing machine settings.

Overview#

DEFAULT_LASER_POWER

Default laser power (W).

MIN_LASER_POWER

Minimum laser power (W).

MAX_LASER_POWER

Maximum laser power (W).

DEFAULT_SCAN_SPEED

Default scan speed (m/s).

MIN_SCAN_SPEED

Minimum scan speed (m/s).

MAX_SCAN_SPEED

Maximum scan speed (m/s).

DEFAULT_HEATER_TEMP

Default heater temperature (C).

MIN_HEATER_TEMP

Minimum heater temperature (C).

MAX_HEATER_TEMP

Maximum heater temperature (C).

DEFAULT_LAYER_THICKNESS

Default layer thickness (m).

MIN_LAYER_THICKNESS

Minimum layer thickness (m).

MAX_LAYER_THICKNESS

Maximum layer thickness (m).

DEFAULT_BEAM_DIAMETER

Default beam diameter (m).

MIN_BEAM_DIAMETER

Minimum beam diameter (m).

MAX_BEAM_DIAMETER

Maximum beam diameter (m).

DEFAULT_STARTING_LAYER_ANGLE

Default starting layer angle (degrees).

MIN_STARTING_LAYER_ANGLE

Minimum starting layer angle (degrees).

MAX_STARTING_LAYER_ANGLE

Maximum starting layer angle (degrees).

DEFAULT_LAYER_ROTATION_ANGLE

Default layer rotation angle (degrees).

MIN_LAYER_ROTATION_ANGLE

Minimum layer rotation angle (degrees).

MAX_LAYER_ROTATION_ANGLE

Maximum layer rotation angle (degrees).

DEFAULT_HATCH_SPACING

Default hatch spacing (m).

MIN_HATCH_SPACING

Minimum hatch spacing (m).

MAX_HATCH_SPACING

Maximum hatch spacing (m).

DEFAULT_SLICING_STRIPE_WIDTH

Default slicing stripe width (m).

MIN_SLICING_STRIPE_WIDTH

Minimum slicing stripe width (m).

MAX_SLICING_STRIPE_WIDTH

Maximum slicing stripe width (m).

Import detail#

from ansys.additive.core.machine import MachineConstants

Attribute detail#

MachineConstants.DEFAULT_LASER_POWER = 195#

Default laser power (W).

MachineConstants.MIN_LASER_POWER = 50#

Minimum laser power (W).

MachineConstants.MAX_LASER_POWER = 700#

Maximum laser power (W).

MachineConstants.DEFAULT_SCAN_SPEED = 1.0#

Default scan speed (m/s).

MachineConstants.MIN_SCAN_SPEED = 0.35#

Minimum scan speed (m/s).

MachineConstants.MAX_SCAN_SPEED = 2.5#

Maximum scan speed (m/s).

MachineConstants.DEFAULT_HEATER_TEMP = 80#

Default heater temperature (C).

MachineConstants.MIN_HEATER_TEMP = 20#

Minimum heater temperature (C).

MachineConstants.MAX_HEATER_TEMP = 500#

Maximum heater temperature (C).

MachineConstants.DEFAULT_LAYER_THICKNESS = 5e-05#

Default layer thickness (m).

MachineConstants.MIN_LAYER_THICKNESS = 1e-05#

Minimum layer thickness (m).

MachineConstants.MAX_LAYER_THICKNESS = 0.0001#

Maximum layer thickness (m).

MachineConstants.DEFAULT_BEAM_DIAMETER = 0.0001#

Default beam diameter (m).

MachineConstants.MIN_BEAM_DIAMETER = 2e-05#

Minimum beam diameter (m).

MachineConstants.MAX_BEAM_DIAMETER = 0.00014#

Maximum beam diameter (m).

MachineConstants.DEFAULT_STARTING_LAYER_ANGLE = 57#

Default starting layer angle (degrees).

MachineConstants.MIN_STARTING_LAYER_ANGLE = 0#

Minimum starting layer angle (degrees).

MachineConstants.MAX_STARTING_LAYER_ANGLE = 180#

Maximum starting layer angle (degrees).

MachineConstants.DEFAULT_LAYER_ROTATION_ANGLE = 67#

Default layer rotation angle (degrees).

MachineConstants.MIN_LAYER_ROTATION_ANGLE = 0#

Minimum layer rotation angle (degrees).

MachineConstants.MAX_LAYER_ROTATION_ANGLE = 180#

Maximum layer rotation angle (degrees).

MachineConstants.DEFAULT_HATCH_SPACING = 0.0001#

Default hatch spacing (m).

MachineConstants.MIN_HATCH_SPACING = 6e-05#

Minimum hatch spacing (m).

MachineConstants.MAX_HATCH_SPACING = 0.0002#

Maximum hatch spacing (m).

MachineConstants.DEFAULT_SLICING_STRIPE_WIDTH = 0.01#

Default slicing stripe width (m).

MachineConstants.MIN_SLICING_STRIPE_WIDTH = 0.001#

Minimum slicing stripe width (m).

MachineConstants.MAX_SLICING_STRIPE_WIDTH = 0.1#

Maximum slicing stripe width (m).

class MachineConstants.AdditiveMachine(*, laser_power: float = MachineConstants.DEFAULT_LASER_POWER, scan_speed: float = MachineConstants.DEFAULT_SCAN_SPEED, heater_temperature: float = MachineConstants.DEFAULT_HEATER_TEMP, layer_thickness: float = MachineConstants.DEFAULT_LAYER_THICKNESS, beam_diameter: float = MachineConstants.DEFAULT_BEAM_DIAMETER, starting_layer_angle: float = MachineConstants.DEFAULT_STARTING_LAYER_ANGLE, layer_rotation_angle: float = MachineConstants.DEFAULT_LAYER_ROTATION_ANGLE, hatch_spacing: float = MachineConstants.DEFAULT_HATCH_SPACING, slicing_stripe_width: float = MachineConstants.DEFAULT_SLICING_STRIPE_WIDTH)#

Provides the additive manufacturing machine settings used during simulations.

Units are SI (m, kg, s, or K) unless otherwise noted. Exceptions include angles, which are (degrees), and the heater temperature, which is (degrees) Celsius.

Overview#

laser_power

Scanning laser power (W).

scan_speed

Laser scanning speed (m/s).

heater_temperature

Temperature (ยฐC) of the machine build chamber heater.

layer_thickness

Thickness (m) of the powder layer deposited with each pass of the

beam_diameter

Width (m) of the laser on the powder or substrate surface defined

starting_layer_angle

Angle (ยฐ) to scan the first layer at.

layer_rotation_angle

Angle (ยฐ) to change the scan vector orientation from layer to layer.

hatch_spacing

Distance (m) between adjacent scan vectors, or hatches, when

slicing_stripe_width

Width (m) of a stripe, which is a section of scan lines within a

Import detail#

from ansys.additive.core.machine import AdditiveMachine

Property detail#

property AdditiveMachine.laser_power: float#

Scanning laser power (W).

Valid values are from 50 to 700 Watts.

property AdditiveMachine.scan_speed: float#

Laser scanning speed (m/s).

Valid values are from 0.35 to 2.5 m/s.

property AdditiveMachine.heater_temperature: float#

Temperature (ยฐC) of the machine build chamber heater.

Valid values are from 20 to 500 ยฐC.

property AdditiveMachine.layer_thickness: float#

Thickness (m) of the powder layer deposited with each pass of the recoater blade.

Valid values are from 1e-5 to 1e-4 m (10 to 100 ยตm).

property AdditiveMachine.beam_diameter: float#

Width (m) of the laser on the powder or substrate surface defined using the D4ฯƒ beam diameter definition.

Usually this value is provided by the machine manufacturer. It is sometimes called the laser spot diameter.

Valid values are from 2e-5 to 1.4e-4 m (20 and 140 ยตm).

property AdditiveMachine.starting_layer_angle: float#

Angle (ยฐ) to scan the first layer at.

The angle is measured counterclockwise from the X axis, such that a value of 90ยฐ results in scan lines parallel to the Y axis.

Valid values are from 0 to 180ยฐ.

property AdditiveMachine.layer_rotation_angle: float#

Angle (ยฐ) to change the scan vector orientation from layer to layer.

Valid values are from 0 to 180ยฐ.

property AdditiveMachine.hatch_spacing: float#

Distance (m) between adjacent scan vectors, or hatches, when rastering back and forth with the laser.

Hatch spacing should allow for a slight overlap of scan vector tracks such that some of the material re-melts to ensure full coverage of solid material.

Valid values are from 6e-5 to 2e-4 m (0.06 and 0.2 mm).

property AdditiveMachine.slicing_stripe_width: float#

Width (m) of a stripe, which is a section of scan lines within a layer.

Valid values are from 0.001 to 0.1 m (1 and 100 mm).