首页 > 其他分享 >200004 计算混凝土方量已知长宽高

200004 计算混凝土方量已知长宽高

时间:2022-12-12 00:33:13浏览次数:56  
标签:长宽 200004 理论 损耗量 400000.00 混凝土 用量 计算

点击查看代码
<?php
header('Content-Type: text/html; charset=utf-8');
define ('ROOT', $_SERVER['DOCUMENT_ROOT']);
include ROOT.'/assets/php/head.php';

$tit= '计算混凝土方量已知长宽高';
//长:200,宽:100,高:20
$val='200 100 20';
$img='';

//调用方法
mill($val,$img,$tit);
//mill 是磨粉机的方法
function mill($val,$img,$tit){
    //初始化
    include ROOT.'/assets/php/init.php';
    imgt($img,$tit);

    //设置小数点保留位数 
    bcscale (2);
    //$pi = round(pi(),2);

     //以空格分割成数值
    $vals = expl($val);
    $a = evev($vals[0]);
    $b = evev($vals[1]);
    $h = evev($vals[2]);

    //已知条件
    $know = array();
    array_push($know, $val);
    $v0 = eveq($vals[0]);
    array_push($know, "长:$v0{$unit['m']}");
    $v1 = eveq($vals[1]);
    array_push($know, "宽:$v1{$unit['m']}");
    $v2 = eveq($vals[2]);
    array_push($know, "高:$v2{$unit['m']}");

    //计算步骤
    $step = array();
    array_push($step, "计算理论用量:");
    array_push($step, "{$math['eq']} $a{$math['mul']}$b{$math['mul']}$h");
    $ab = bcmul($a, $b);
    array_push($step, "{$math['eq']} $ab{$math['mul']}$h");
    $V1 = bcmul($ab, $h);
    array_push($step, "{$math['eq']} $V1");

    array_push($step, "计算损耗量:");
    array_push($step, "{$math['eq']} $V1{$math['mul']}2{$math['p100']}");
    $V2 = bcmul($V1,0.02);
    array_push($step, "{$math['eq']} $V2");

    array_push($step, "计算混凝土用量:");
    array_push($step, "{$math['eq']} $V1{$math['add']}$V2");
    $V = bcadd($V1, $V2);
    array_push($step, "{$math['eq']} $V");


    //算出结果
    $ends = array();
    array_push($ends, "理论用量:$V1{$unit['m3']}");
    array_push($ends, "损耗量:$V2{$unit['m3']}");
    array_push($ends, "混凝土用量:$V{$unit['m3']}");

    //公式表示
    $home = array();
    array_push($home, "理论用量:V理论{$math['eq']}abh");
    array_push($home, "损耗量:V损耗{$math['eq']}V理论{$math['mul']}损耗率");
    array_push($home, "混凝土用量:V{$math['eq']}V理论{$math['add']}V损耗");

    //公式说明
    $info = array();
    array_push($info, "理论用量是计算体积{$unit['m3']}{$math['eq']} 长{$unit['m']} {$math['mul']} 宽{$unit['m']} {$math['mul']} 高{$unit['m']}。");
    array_push($info, "损耗量是计算损耗体积{$unit['m3']}{$math['eq']} 理论体积{$unit['m3']} {$math['mul']} 损耗率{$math['lpar']}一般是2{$math['p100']}{$math['rpar']}。");
    array_push($info, "混凝土用量{$unit['m3']}{$math['eq']} 理论体积{$unit['m3']} {$math['add']} 损耗体积{$unit['m3']}");

    know($know);
    ends($ends);
    home($home);
    step($step);
    info($info);
}
?>
<?php include ROOT.'/assets/php/foot.php';
//写下记录
$note = array();
note($note);
?>

☁参考上图[22-12-12 chaoyi]

☀计算混凝土方量已知长宽高
200 100 20  
长:200m  
宽:100m  
高:20m  

♠算出结果  
理论用量:400000.00m³  
损耗量:8000.00m³  
混凝土用量:408000.00m³  

♥公式表示  
理论用量:V理论=abh  
损耗量:V损耗=V理论×损耗率  
混凝土用量:V=V理论+V损耗  

♣计算步骤  
计算理论用量:  
= 200×100×20  
= 20000.00×20  
= 400000.00  
计算损耗量:  
= 400000.00×2%  
= 8000.00  
计算混凝土用量:  
= 400000.00+8000.00  
= 408000.00  

♦公式说明  
理论用量是计算体积m³= 长m × 宽m × 高m。  
损耗量是计算损耗体积m³= 理论体积m³ × 损耗率(一般是2%)。  
混凝土用量m³= 理论体积m³ + 损耗体积m³  

标签:长宽,200004,理论,损耗量,400000.00,混凝土,用量,计算
From: https://www.cnblogs.com/onestopweb/p/16975056.html

相关文章