{"id":1077,"date":"2016-04-20T13:26:34","date_gmt":"2016-04-20T11:26:34","guid":{"rendered":"http:\/\/www.wagneracciai.it\/?page_id=1077"},"modified":"2016-04-20T15:48:27","modified_gmt":"2016-04-20T13:48:27","slug":"coil-calculator","status":"publish","type":"page","link":"https:\/\/www.wagneracciai.it\/index.php\/coil-calculator","title":{"rendered":"Calcolo dimensioni e peso nastri e lamiere in acciaio"},"content":{"rendered":"<p><script src=\"\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.7.2\/jquery.min.js\" type=\"text\/javascript\"><\/script><\/p>\n<p><script>$(document).ready(function(){$(\".calculator\").each(function(){var $form=$(this).find(\"form\");var $material=$form.find(\"[name='material']\");var $density=$form.find(\"[name='density']\");var $thickness=$form.find(\"[name='thickness']\");var $width=$form.find(\"[name='width']\");var $innerDiameter=$form.find(\"[name='inner-diameter']\");var $outerDiameter=$form.find(\"[name='outer-diameter']\");var $weight=$form.find(\"[name='weight']\");var $length=$form.find(\"[name='length']\");var $weightPerMmWidth=$form.find(\"[name='weight-per-mm-width']\");var $fields={required:$material.add($density).add($thickness).add($width).add($innerDiameter),optional:$outerDiameter.add($weight).add($length).add($weightPerMmWidth),input:null,select:null};$fields.input=$fields.required.add($fields.optional).filter(function(){return $(this).is(\"input\")});$fields.select=$fields.required.add($fields.optional).filter(function(){return $(this).is(\"select\")});var $submit=$form.find(\"[type='submit']\");var $reset=$form.find(\"[type='reset']\");$material.on({change:function(){$density.val($material.val());$form.trigger(\"_convert\");}});function getOuterDiameterFromWeight(){return Math.sqrt(($weight.val()\/($density.val()*Math.PI*$width.val()))+Math.pow($innerDiameter.val()\/2000,2))*2000;}\nfunction getWeightFromOuterDiameter(){return(Math.pow($outerDiameter.val()\/2000,2)-(Math.pow($innerDiameter.val()\/2000,2)))*($density.val()*Math.PI*$width.val());}\nfunction getWeightFromLength(){return $length.val()*$density.val()*$thickness.val()*$width.val()\/1000;}\nfunction getWeightFromWeightPerMmWidth(){return $weightPerMmWidth.val()*$width.val();}\nfunction getLengthFromWeight(){return($weight.val()*1000)\/($density.val()*$thickness.val()*$width.val());}\nfunction getWeightPerMmWidthFromWeight(){return $weight.val()\/$width.val();}\n$form.on({_activate:function(){$submit.prop(\"disabled\",false);},_deactivate:function(){$submit.prop(\"disabled\",true);},_calculate:function(){if($outerDiameter.val()){if(!$weight.val()){$weight.val(getWeightFromOuterDiameter());}\nif(!$length.val()){$length.val(getLengthFromWeight());}\nif(!$weightPerMmWidth.val()){$weightPerMmWidth.val(getWeightPerMmWidthFromWeight());}}else if($weight.val()){if(!$outerDiameter.val()){$outerDiameter.val(getOuterDiameterFromWeight());}\nif(!$length.val()){$length.val(getLengthFromWeight());}\nif(!$weightPerMmWidth.val()){$weightPerMmWidth.val(getWeightPerMmWidthFromWeight());}}else if($length.val()){if(!$weight.val()){$weight.val(getWeightFromLength());}\nif(!$outerDiameter.val()){$outerDiameter.val(getOuterDiameterFromWeight());}\nif(!$weightPerMmWidth.val()){$weightPerMmWidth.val(getWeightPerMmWidthFromWeight());}}else if($weightPerMmWidth.val()){if(!$weight.val()){$weight.val(getWeightFromWeightPerMmWidth());}\nif(!$outerDiameter.val()){$outerDiameter.val(getOuterDiameterFromWeight());}\nif(!$length.val()){$length.val(getLengthFromWeight());}}\n$form.trigger(\"_convert\");},_convert:function(){$.each($fields.input,function(){var value=parseFloat($(this).val());$(this).val(!value||isNaN(value)?\"\":value.toFixed(2).replace(\".00\",\"\"));});$form.trigger(\"_verify\");},_autofill:function(){$fields.select.trigger(\"change\");$form.trigger(\"_convert\");},_verify:function(){var requiredMatch=true;var optionalMatch=0;$.each($fields.required,function(){if(!$(this).val()){requiredMatch=false;}});$.each($fields.optional,function(){if($(this).val()){optionalMatch++;}});if(requiredMatch&&optionalMatch&&optionalMatch< $fields.optional.length){$form.trigger(\"_activate\");}else{$form.trigger(\"_deactivate\");}},submit:function(event){$form.trigger(\"_convert\");if($form.data(\"isVerified\")()){$form.trigger(\"_calculate\");}\nevent.preventDefault();},reset:function(event){$fields.optional.val(\"\");event.preventDefault();}}).data({isVerified:function(){return!$submit.is(\":disabled\");}}).trigger(\"reset\").trigger(\"_autofill\");$fields.input.on({\"change keyup\":function(){$form.trigger(\"_verify\");}});});});<\/script><\/p>\n<p>Compilando i campi sottostanti \u00e8 possibile avere indicazioni teoriche sul diametro esterno, il peso e la lunghezza dei nostri prodotti.<\/p>\n<div id=\"root\">\n<div id=\"rootContent\" class=\"extended\">\n<div class=\"clean\">\n<div id=\"rootEssence\">\n<div>\n<div class=\"calculator\">\n<form><strong>I campi sottostanti sono OBBLIGATORI:<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td>Tipo materiale:<\/td>\n<td><select name=\"material\"><option value=\"7.85\">Acciaio al carbonio<\/option><option value=\"8.00\">Acciaio INOX<\/option><\/select><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Densit\u00e0:<\/td>\n<td><input disabled=\"disabled\" name=\"density\" type=\"text\" value=\"\" \/><\/td>\n<td>g\/cm<span class=\"sup\">\u00b3<\/span><\/td>\n<\/tr>\n<tr>\n<td>Spessore:<\/td>\n<td><input name=\"thickness\" type=\"text\" value=\"\" \/><\/td>\n<td>mm<\/td>\n<\/tr>\n<tr>\n<td>Larghezza:<\/td>\n<td><input name=\"width\" type=\"text\" value=\"\" \/><\/td>\n<td>mm<\/td>\n<\/tr>\n<tr>\n<td>Diametro interno (iD):<\/td>\n<td><select name=\"inner-diameter\"><option value=\"152\">152<\/option><option value=\"254\">254<\/option><option value=\"305\">305<\/option><option value=\"508\">508<\/option><option selected=\"selected\" value=\"406\">406<\/option><option value=\"610\">610<\/option><\/select><\/td>\n<td>mm<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Inserire ALMENO UNO dei campi sottostanti:<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td>Diametro esterno (eD):<\/td>\n<td><input name=\"outer-diameter\" type=\"text\" value=\"\" \/><\/td>\n<td>mm<\/td>\n<\/tr>\n<tr>\n<td>Peso:<\/td>\n<td><input name=\"weight\" type=\"text\" value=\"\" \/><\/td>\n<td>kg<\/td>\n<\/tr>\n<tr>\n<td>Lunghezza:<\/td>\n<td><input name=\"length\" type=\"text\" value=\"\" \/><\/td>\n<td>m<\/td>\n<\/tr>\n<tr>\n<td>Rapporto peso\/larghezza:<\/td>\n<td><input name=\"weight-per-mm-width\" type=\"text\" value=\"\" \/><\/td>\n<td>kg\/mm<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div><input type=\"submit\" value=\"Calculate\" \/> <input type=\"reset\" value=\"Reset\" \/><\/div>\n<\/form>\n<\/div>\n<p>&nbsp;<\/p>\n<p>ATTENZIONE:\u00a0i calcoli sopra riportati sono puramente teorici e possono essere utilizzati SOLO per farsi un'idea delle dimensioni reali (che non possono essere garantite). Inserire un dato errato render\u00e0 nullo il calcolo.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Compilando i campi sottostanti \u00e8 possibile avere indicazioni teoriche sul diametro esterno, il peso e la lunghezza dei nostri prodotti. I campi sottostanti sono OBBLIGATORI: Tipo materiale: Acciaio al carbonioAcciaio INOX Densit\u00e0: g\/cm\u00b3 Spessore: mm Larghezza: mm Diametro interno (iD): 152254305508406610 mm Inserire ALMENO UNO dei campi sottostanti: Diametro esterno \u2026<\/p>\n<p> <a class=\"continue-reading-link\" href=\"https:\/\/www.wagneracciai.it\/index.php\/coil-calculator\">Continua la lettura<i class=\"icon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.wagneracciai.it\/index.php\/wp-json\/wp\/v2\/pages\/1077"}],"collection":[{"href":"https:\/\/www.wagneracciai.it\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.wagneracciai.it\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.wagneracciai.it\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wagneracciai.it\/index.php\/wp-json\/wp\/v2\/comments?post=1077"}],"version-history":[{"count":13,"href":"https:\/\/www.wagneracciai.it\/index.php\/wp-json\/wp\/v2\/pages\/1077\/revisions"}],"predecessor-version":[{"id":1106,"href":"https:\/\/www.wagneracciai.it\/index.php\/wp-json\/wp\/v2\/pages\/1077\/revisions\/1106"}],"wp:attachment":[{"href":"https:\/\/www.wagneracciai.it\/index.php\/wp-json\/wp\/v2\/media?parent=1077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}