Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
//Variables starting with keyword "let" are adjustable by customers
let lineWidth = 0.1;              // mm
let layerHeight = 0.1;            // mm
let speed = 45;                   // mm/s
let infill = 0.2;                 // number in [0,1]
let wallThickness = 2;            // mm
let supportInfill = 0.2;          // number in [0,1]

let volumeFactor = 0.0010747;     // number, describes importance of model's volume
let areaFactor = 0.04317783;      // number, describes importance of model's surface area
let supportFactor = 0.0003774;    // number, describes importance of support volume

// Don't change the following lines
let exponent;
if( model.volume < 3000){
        exponent = 0.55;
} else {
        exponent = 0.88;
        }

let volumePart = volumeFactor*(0.818182 - lineWidth)*(Math.pow(layerHeight, (-1.07)) +
0.232)*(Math.pow(speed, (-1.08)))*(Math.pow(infill*100, (1.02)))*model.volume;

let areaPart = areaFactor*(1.578431 - lineWidth)*(Math.pow(layerHeight, (-0.98)) + 0.341)*
(Math.pow(wallThickness, exponent) + 0.002)*(Math.pow(speed, (-0.84)) +
0.003)*model.area;

let supportPart =  supportFactor*supportInfill*support.volume;

let time = volumePart + areaPart + supportPart; // time in minutes

let machineTime = time/60;                      // time in hours
Code Block
languagejs

SLS Material Pricing based on Machine Runtime

...