{"id":988629,"date":"2025-12-11T17:34:34","date_gmt":"2025-12-11T14:34:34","guid":{"rendered":"https:\/\/biel.com.tr\/?page_id=988629"},"modified":"2025-12-11T17:36:30","modified_gmt":"2025-12-11T14:36:30","slug":"agirlik-hesaplama","status":"publish","type":"page","link":"https:\/\/biel.com.tr\/en\/agirlik-hesaplama\/","title":{"rendered":"A\u011f\u0131rl\u0131k Hesaplama"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"988629\" class=\"elementor elementor-988629\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-8fb44f9 e-flex e-con-boxed e-con e-parent\" data-id=\"8fb44f9\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-80b74b4 elementor-widget elementor-widget-html\" data-id=\"80b74b4\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n  \/* Kapsay\u0131c\u0131 Stil *\/\n  .tube-calc-container {\n    background-color: #fcfcfc;\n    border: 1px solid #e0e0e0;\n    padding: 25px;\n    border-radius: 8px;\n    max-width: 800px;\n    font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif;\n    margin: 20px auto;\n    box-shadow: 0 4px 10px rgba(0,0,0,0.05);\n    border-top: 4px solid #ff6600;\n  }\n\n  \/* Se\u00e7enek K\u0131lavuzu (\u015eekil ve Birimler - Her zaman 2 s\u00fctun) *\/\n  .calc-options-grid {\n    display: grid;\n    grid-template-columns: 1fr 1fr;\n    gap: 15px;\n    margin-bottom: 20px;\n  }\n\n  .calc-toggle-group label {\n    font-size: 0.85em;\n    font-weight: bold;\n    color: #555;\n    display: block;\n    margin-bottom: 5px;\n  }\n\n  \/* Giri\u015f Stilleri *\/\n  .calc-toggle-select, .tube-calc-input {\n    width: 100%;\n    padding: 10px;\n    border: 1px solid #ccc;\n    border-radius: 4px;\n    box-sizing: border-box;\n    background: white;\n    height: auto !important;\n    min-height: 45px;\n    line-height: 1.5;\n    font-size: 16px;\n  }\n\n  \/* Varsay\u0131lan Sat\u0131r D\u00fczeni (Mobil) *\/\n  .tube-calc-row { margin-bottom: 15px; }\n  .tube-calc-label { display: block; font-weight: bold; margin-bottom: 5px; color: #333; }\n  .calc-hidden { display: none; }\n\n  \/* D\u0130NAM\u0130K AYAR: CSS K\u0131lavuzu (Grid) 500px ve \u00fczeri ekranlar i\u00e7in *\/\n  @media (min-width: 500px) {\n      .calc-input-grid {\n          display: grid;\n          grid-template-columns: 1fr 1fr;\n          gap: 15px 30px;\n      }\n      \/* \u00d6zel Yo\u011funluk ve Malzeme Sat\u0131rlar\u0131 t\u00fcm s\u00fctunlara yay\u0131l\u0131r *\/\n      #row-custom-density, #row-material {\n          grid-column: 1 \/ -1;\n      }\n  }\n\n  \/* Buton - TURUNCU Tema *\/\n  .tube-calc-btn {\n    background-color: #ff6600;\n    color: white;\n    border: none;\n    padding: 12px 20px;\n    font-size: 16px;\n    font-weight: bold;\n    border-radius: 4px;\n    cursor: pointer;\n    width: 100%;\n    transition: background-color 0.2s;\n    margin-top: 5px;\n  }\n  .tube-calc-btn:hover { background-color: #e65c00; }\n\n  \/* Sonu\u00e7 Kutusu *\/\n  .tube-calc-result {\n    margin-top: 20px;\n    padding: 15px;\n    background-color: #fff5eb;\n    border: 1px solid #ffd6b3;\n    color: #cc5200;\n    border-radius: 4px;\n    text-align: center;\n    font-weight: bold;\n    display: none;\n  }\n  .calc-error { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }\n  \n  \/* Yard\u0131mc\u0131 metin *\/\n  .unit-display { font-weight: normal; color: #666; font-size: 0.9em; }\n<\/style>\n\n<div class=\"tube-calc-container\">\n\n  <div class=\"calc-options-grid\">\n    <div class=\"calc-toggle-group\">\n      <label>\u015eekil<\/label>\n      <select id=\"tc-shape\" class=\"calc-toggle-select\" onchange=\"updateUI()\">\n        <option value=\"round\">Yuvarlak Boru<\/option>\n        <option value=\"rect\">Dikd\u00f6rtgen Profil<\/option>\n        <option value=\"wire\">Tel\/\u00c7ubuk (Yuvarlak)<\/option>\n      <\/select>\n    <\/div>\n    <div class=\"calc-toggle-group\">\n      <label>Birimler<\/label>\n      <select id=\"tc-unit\" class=\"calc-toggle-select\" onchange=\"updateUI()\">\n        <option value=\"metric\">Metrik (mm \/ m)<\/option>\n        <option value=\"imperial\">\u0130ngiliz (in\u00e7 \/ fit)<\/option>\n      <\/select>\n    <\/div>\n  <\/div>\n\n  <div class=\"calc-input-grid\">\n\n    <div id=\"row-material\" class=\"tube-calc-row\">\n      <label class=\"tube-calc-label\">Malzeme<\/label>\n      <select id=\"tc-material\" class=\"tube-calc-input\" onchange=\"updateUI()\">\n        <option value=\"7.85\">\u00c7elik<\/option>\n        <option value=\"7.9\">Paslanmaz \u00c7elik<\/option>\n        <option value=\"2.7\">Al\u00fcminyum<\/option>\n        <option value=\"8.96\">Bak\u0131r<\/option>\n        <option value=\"custom\">\u00d6zel...<\/option>\n      <\/select>\n    <\/div>\n\n    <div id=\"row-custom-density\" class=\"tube-calc-row calc-hidden\">\n      <label class=\"tube-calc-label\">\u00d6zel Yo\u011funluk (g\/cm\u00b3)<\/label>\n      <input type=\"number\" id=\"tc-density-manual\" class=\"tube-calc-input\" placeholder=\"\u00d6rn: 4.5\" step=\"any\">\n    <\/div>\n\n    <div class=\"tube-calc-row\">\n      <label class=\"tube-calc-label\" id=\"label-dim-1\">D\u0131\u015f \u00c7ap <span class=\"unit-display\">(mm)<\/span><\/label>\n      <input type=\"number\" id=\"tc-dim-1\" class=\"tube-calc-input\" min=\"0\" step=\"any\">\n    <\/div>\n\n    <div id=\"row-dim-2\" class=\"tube-calc-row calc-hidden\">\n      <label class=\"tube-calc-label\" id=\"label-dim-2\">D\u0131\u015f Y\u00fckseklik <span class=\"unit-display\">(mm)<\/span><\/label>\n      <input type=\"number\" id=\"tc-dim-2\" class=\"tube-calc-input\" min=\"0\" step=\"any\">\n    <\/div>\n    \n    <div class=\"tube-calc-row\" id=\"row-thickness\">\n      <label class=\"tube-calc-label\">Et Kal\u0131nl\u0131\u011f\u0131 <span id=\"label-wall-unit\" class=\"unit-display\">(mm)<\/span><\/label>\n      <input type=\"number\" id=\"tc-thickness\" class=\"tube-calc-input\" min=\"0\" step=\"any\">\n    <\/div>\n\n    <div class=\"tube-calc-row\">\n      <label class=\"tube-calc-label\">Uzunluk <span id=\"label-len-unit\" class=\"unit-display\">(metre)<\/span><\/label>\n      <input type=\"number\" id=\"tc-length\" class=\"tube-calc-input\" min=\"0\" step=\"any\">\n    <\/div>\n    \n    <div class=\"tube-calc-row calc-hidden\" id=\"row-quantity\">\n      <label class=\"tube-calc-label\">Miktar (Adet)<\/label>\n      <input type=\"number\" id=\"tc-quantity\" class=\"tube-calc-input\" min=\"1\" step=\"1\" value=\"1\">\n    <\/div>\n\n  <\/div>\n  <button class=\"tube-calc-btn\" onclick=\"calculateWeight()\">A\u011f\u0131rl\u0131\u011f\u0131 Hesapla<\/button>\n  <div id=\"tc-result\" class=\"tube-calc-result\"><\/div>\n<\/div>\n\n<script>\n  \/\/ Sayfa y\u00fcklendi\u011finde etiketleri g\u00fcnceller\n  document.addEventListener(\"DOMContentLoaded\", function() {\n      updateUI();\n  });\n\n  function updateUI() {\n    const shape = document.getElementById('tc-shape').value;\n    const unit = document.getElementById('tc-unit').value;\n    const material = document.getElementById('tc-material').value;\n    \n    \/\/ 1. Giri\u015f Etiketlerini ve G\u00f6r\u00fcn\u00fcrl\u00fc\u011f\u00fcn\u00fc Y\u00f6netme\n    const dim1Label = document.getElementById('label-dim-1');\n    const dim2Row = document.getElementById('row-dim-2');\n    const thicknessRow = document.getElementById('row-thickness');\n    const quantityRow = document.getElementById('row-quantity');\n\n    const dimUnitText = unit === 'metric' ? '<span class=\"unit-display\">(mm)<\/span>' : '<span class=\"unit-display\">(in\u00e7)<\/span>';\n\n    \/\/ Kal\u0131nl\u0131k ve Miktar Varsay\u0131lan G\u00f6r\u00fcn\u00fcrl\u00fc\u011f\u00fc\n    thicknessRow.style.display = 'block'; \n    quantityRow.style.display = 'none';\n    let lenUnitText = unit === 'metric' ? '(metre)' : '(fit)'; \/\/ Varsay\u0131lan uzunluk (Boru\/Profil)\n\n    if (shape === 'round') {\n      dim1Label.innerHTML = 'D\u0131\u015f \u00c7ap ' + dimUnitText;\n      dim2Row.style.display = 'none';\n    } else if (shape === 'rect') {\n      dim1Label.innerHTML = 'D\u0131\u015f Geni\u015flik ' + dimUnitText;\n      dim2Row.style.display = 'block';\n    } else if (shape === 'wire') {\n      dim1Label.innerHTML = '\u00c7ap ' + dimUnitText;\n      dim2Row.style.display = 'none'; \n      thicknessRow.style.display = 'none'; \/\/ Et kal\u0131nl\u0131\u011f\u0131n\u0131 gizle\n      quantityRow.style.display = 'block'; \/\/ Miktar\u0131 g\u00f6ster\n      \n      \/\/ TEL\/\u00c7UBUK \u0130\u00c7\u0130N \u00d6ZEL UZUNLUK B\u0130R\u0130M\u0130: mm \/ in\u00e7\n      lenUnitText = unit === 'metric' ? '(mm)' : '(in\u00e7)';\n    }\n\n    \/\/ 2. \u00d6zel Yo\u011funlu\u011fu Y\u00f6netme\n    const densityRow = document.getElementById('row-custom-density');\n    if (material === 'custom') {\n      densityRow.style.display = 'block';\n    } else {\n      densityRow.style.display = 'none';\n    }\n\n    \/\/ 3. Birim Etiketlerini G\u00fcncelleme\n    document.getElementById('label-wall-unit').innerText = unit === 'metric' ? '(mm)' : '(in\u00e7)';\n    document.getElementById('label-len-unit').innerText = lenUnitText;\n  }\n\n  function calculateWeight() {\n    \/\/ --- G\u0130R\u0130\u015e DE\u011eERLER\u0130N\u0130 ALMA ---\n    const shape = document.getElementById('tc-shape').value;\n    const unit = document.getElementById('tc-unit').value;\n    const materialSelect = document.getElementById('tc-material').value;\n    \n    let density = 0;\n\n    \/\/ Yo\u011funlu\u011fu Belirleme\n    if (materialSelect === 'custom') {\n      density = parseFloat(document.getElementById('tc-density-manual').value);\n      if (isNaN(density) || density <= 0) {\n        showError(\"L\u00fctfen ge\u00e7erli bir \u00f6zel yo\u011funluk girin.\");\n        return;\n      }\n    } else {\n      density = parseFloat(materialSelect);\n    }\n\n    \/\/ Boyutlar\u0131 Alma\n    let d1 = parseFloat(document.getElementById('tc-dim-1').value); \n    let d2 = parseFloat(document.getElementById('tc-dim-2').value); \n    let wall = parseFloat(document.getElementById('tc-thickness').value);\n    let length = parseFloat(document.getElementById('tc-length').value);\n    let quantity = 1; \n    const resultBox = document.getElementById('tc-result');\n\n    \/\/ --- M\u0130KTAR KONTROL\u00dc ---\n    if (shape === 'wire') {\n        quantity = parseFloat(document.getElementById('tc-quantity').value);\n        if (isNaN(quantity) || quantity <= 0 || !Number.isInteger(quantity)) {\n            showError(\"L\u00fctfen ge\u00e7erli bir miktar (pozitif tam say\u0131) girin.\");\n            return;\n        }\n    }\n\n    \/\/ --- BOYUT DO\u011eRULAMA (Hollow\/Solid) ---\n    if (isNaN(d1) || isNaN(length) || d1 <= 0 || length <= 0) {\n       showError(\"L\u00fctfen ge\u00e7erli pozitif boyut ve uzunluk de\u011ferleri girin.\");\n       return;\n    }\n    \n    if (shape === 'rect') {\n       if (isNaN(d2) || d2 <= 0 || isNaN(wall) || wall <= 0) {\n         showError(\"L\u00fctfen ge\u00e7erli bir y\u00fckseklik ve et kal\u0131nl\u0131\u011f\u0131 girin.\");\n         return;\n       }\n       if (wall >= d1\/2 || wall >= d2\/2) {\n         showError(\"Hata: Et kal\u0131nl\u0131\u011f\u0131, se\u00e7ilen boyutlar i\u00e7in \u00e7ok kal\u0131n.\");\n         return;\n       }\n    } else if (shape === 'round') {\n       if (isNaN(wall) || wall <= 0) {\n         showError(\"L\u00fctfen ge\u00e7erli bir et kal\u0131nl\u0131\u011f\u0131 girin.\");\n         return;\n       }\n       if (wall >= d1\/2) {\n         showError(\"Hata: Et kal\u0131nl\u0131\u011f\u0131 yar\u0131\u00e7ap\u0131 a\u015famaz.\");\n         return;\n       }\n    }\n\n    \/\/ --- CM C\u0130NS\u0130NDEN NORMAL\u0130ZASYON ---\n    let d1_cm, d2_cm, wall_cm, len_cm;\n\n    if (unit === 'metric') {\n      d1_cm = d1 \/ 10; \/\/ mm -> cm\n      d2_cm = d2 \/ 10; \/\/ mm -> cm\n      wall_cm = wall \/ 10; \/\/ mm -> cm\n      \n      if (shape === 'wire') {\n          \/\/ TEL\/\u00c7UBUK UZUNLUK: mm'den cm'ye ( \/ 10)\n          len_cm = length \/ 10;\n      } else {\n          \/\/ BORU\/PROF\u0130L UZUNLUK: metreden cm'ye (* 100)\n          len_cm = length * 100;\n      }\n    } else {\n      d1_cm = d1 * 2.54; \/\/ in\u00e7 -> cm\n      d2_cm = d2 * 2.54; \/\/ in\u00e7 -> cm\n      wall_cm = wall * 2.54; \/\/ in\u00e7 -> cm\n      \n      if (shape === 'wire') {\n          \/\/ TEL\/\u00c7UBUK UZUNLUK: in\u00e7'ten cm'ye (* 2.54)\n          len_cm = length * 2.54;\n      } else {\n          \/\/ BORU\/PROF\u0130L UZUNLUK: fit'ten cm'ye (* 30.48)\n          len_cm = length * 30.48;\n      }\n    }\n\n    \/\/ --- HAC\u0130M HESAPLAMASI (cm\u00b3) ---\n    let volumeCm3 = 0;\n    \n    if (shape === 'wire') {\n        \/\/ TEL\/\u00c7UBUK (Dolu Yuvarlak): V = \u03c0 * r\u00b2 * L\n        const rCm = d1_cm \/ 2;\n        const area = Math.PI * Math.pow(rCm, 2);\n        volumeCm3 = area * len_cm;\n    } else if (shape === 'round') {\n      \/\/ YUVARLAK BORU (\u0130\u00e7i Bo\u015f): V = \u03c0 * (R_d\u0131\u015f\u00b2 - R_i\u00e7\u00b2) * L\n      const rOut = d1_cm \/ 2;\n      const rIn = rOut - wall_cm;\n      const area = Math.PI * (Math.pow(rOut, 2) - Math.pow(rIn, 2));\n      volumeCm3 = area * len_cm;\n    } else { \/\/ shape === 'rect'\n      \/\/ D\u0130KD\u00d6RTGEN PROF\u0130L (\u0130\u00e7i Bo\u015f): V = (D\u0131\u015f Alan - \u0130\u00e7 Alan) * L\n      const outerArea = d1_cm * d2_cm;\n      const innerArea = (d1_cm - 2*wall_cm) * (d2_cm - 2*wall_cm);\n      const area = outerArea - innerArea;\n      volumeCm3 = area * len_cm;\n    }\n\n    \/\/ --- SON A\u011eIRLIK ---\n    const totalVolumeCm3 = volumeCm3 * quantity;\n    const weightKg = (totalVolumeCm3 * density) \/ 1000;\n    const weightLbs = weightKg * 2.20462;\n\n    \/\/ --- SONU\u00c7 \u00c7IKTISI ---\n    resultBox.style.display = 'block';\n    resultBox.className = 'tube-calc-result';\n    \n    if (unit === 'metric') {\n      resultBox.innerHTML = \"Toplam Tahmini A\u011f\u0131rl\u0131k: \" + weightKg.toFixed(3) + \" kg\";\n    } else {\n      resultBox.innerHTML = \"Toplam Tahmini A\u011f\u0131rl\u0131k: \" + weightLbs.toFixed(3) + \" libre <span style='font-size:0.8em; color:#cc5200'>(\" + weightKg.toFixed(3) + \" kg)<\/span>\";\n    }\n  }\n\n  function showError(msg) {\n    const box = document.getElementById('tc-result');\n    box.style.display = 'block';\n    box.className = 'tube-calc-result calc-error';\n    box.innerHTML = msg;\n  }\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>\u015eekil Yuvarlak BoruDikd\u00f6rtgen ProfilTel\/\u00c7ubuk (Yuvarlak) Birimler Metrik (mm \/ m)\u0130ngiliz (in\u00e7 \/ fit) Malzeme \u00c7elikPaslanmaz \u00c7elikAl\u00fcminyumBak\u0131r\u00d6zel&#8230; \u00d6zel Yo\u011funluk (g\/cm\u00b3) D\u0131\u015f \u00c7ap (mm) D\u0131\u015f Y\u00fckseklik (mm) Et Kal\u0131nl\u0131\u011f\u0131 (mm) Uzunluk (metre) Miktar (Adet) A\u011f\u0131rl\u0131\u011f\u0131 Hesapla<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-988629","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/biel.com.tr\/en\/wp-json\/wp\/v2\/pages\/988629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/biel.com.tr\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/biel.com.tr\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/biel.com.tr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/biel.com.tr\/en\/wp-json\/wp\/v2\/comments?post=988629"}],"version-history":[{"count":4,"href":"https:\/\/biel.com.tr\/en\/wp-json\/wp\/v2\/pages\/988629\/revisions"}],"predecessor-version":[{"id":988633,"href":"https:\/\/biel.com.tr\/en\/wp-json\/wp\/v2\/pages\/988629\/revisions\/988633"}],"wp:attachment":[{"href":"https:\/\/biel.com.tr\/en\/wp-json\/wp\/v2\/media?parent=988629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}