...
Code Block | ||
---|---|---|
| ||
//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 | ||
---|---|---|
| ||
SLS Material Pricing based on Machine Runtime
...
Code Block |
---|
//Variables starting with keyword "let" are adjustable by customers
//Material variables
let materialCost = 60; // euro/kg
let density = 1.02; // g/cm^3
let margin = 1; // total price is multiplied with margin
//Machine time variables
let maxXYSurface = 1000; // xy surface of the printer in mm^2
let timePerHeight = 10; // h/mm model's height
let machineRate = 50; // euro/hour
// Material cost calculation
let material = model.volume * materialCost * density * 0.000001;
// Don't change the following lines
// Machine runtime cost calculation in hour
let machineTime = (model.h*timePerHeight)*((model.w*model.d)/maxXYSurface);
let machine = machineTime * machineRate;
//Total price: material price plus machine runtime cost
let price = margin * (material + machine);
price; |
WAAM Material Pricing based on Machine Runtime
Code Block |
---|
//material cost
const materialCost = 50 // €/kg, the cost of metal wire is roughly 10% of the powder cost for same metal
const materialDensity = 7.93 // g/cm^3 --> SS316 density
const utilisationRate = 0.75 // 75%
const depositionRate = 3 //kg/hr, average according to literatture
const hourlyRate = 50 //€ per hour
const partVolume = model.volume
const supportVolume = support.volume
const materialPrice = Math.max(partVolume * materialDensity * materialCost*0.000001,0)
const weldingTime = (partVolume*materialDensity*0.000001)/depositionRate; //in hours
const machineCost = weldingTime*hourlyRate;
let price = 250 + (machineCost + materialPrice);
price; |