Skip to content

xxczaki/welding-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welding Utils Build Status XO code style

Useful utilities related to welding 🛠️

Highlights

  • Simple API
  • 0 dependencies
  • Written in TypeScript

Install

$ npm install welding-utils

Usage

const {heatInput} = require('welding-utils');

const options = {
    voltage: 200,
	amperage: 32,
	efficiencyFactor: 0.8,
	lenght: 20,
	time: 11
}

console.log(heatInput(options)); //=> 2.8160000000000003

API

heatInput(options)

options

Type: Object

interface Options {
	voltage: number;
	amperage: number;
	efficiencyFactor: number;
	lenght: number;
	time: number;
}

Returns heat input

preheat(options)

options

Type: Object

interface PreheatOptions {
	cet: number;
	thickness: number;
	heatInput: number;
	hydrogenLevel: number;
}

Returns preheat

ceq(elements)

elements

Type: Object

interface Elements {
	coal: number;
	manganese: number;
	chromium: number;
	molybdenum: number;
	vanadium: number;
	nickel: number;
	copper: number;
}

Returns equivalent carbon content (CEQ)

cet(elements)

elements

Type: Object

interface Elements {
	coal: number;
	manganese: number;
	chromium: number;
	molybdenum: number;
	vanadium: number;
	nickel: number;
	copper: number;
}

Returns equivalent carbon content (CET)

ceAws(elements)

elements

Type: Object

interface Elements {
	coal: number;
	manganese: number;
	chromium: number;
	molybdenum: number;
	vanadium: number;
	nickel: number;
	copper: number;
	silicon: number;
}

Returns equivalent carbon content (CE AWS)

pcm(elements)

elements

Type: Object

interface Elements {
	coal: number;
	manganese: number;
	chromium: number;
	molybdenum: number;
	vanadium: number;
	nickel: number;
	copper: number;
	silicon: number;
	boron: number;
}

Returns critical metal parameter (PCM)

pren(elements)

elements

Type: Object

interface Elements {
	chromium: number;
	molybdenum: number;
	nitrogen: number;
}

Returns pitting resistance equivalent number (PREN)

License

MIT © Antoni Kepinski