首页 > 其他分享 >200008 计算柱的土方量和钢筋量已知集中标注

200008 计算柱的土方量和钢筋量已知集中标注

时间:2022-12-16 22:26:20浏览次数:44  
标签:土方 200008 add push mul array eq math 标注

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

$tit= '计算柱的土方量和钢筋量已知集中标注';
//V体积 长Va:3600,宽Vb:400,高Vh:500
$Vabh = '3500 400 500';
//J角筋 根数Jn:4,直径Jd:22
$Jnd = '4 22';
//B宽边筋 根数Bn:2,直径Bd:20
$Bnd = '2 20';
//H高边筋 根数Hn:3,直径Hd:20
$Hnd = '3 20';
//O箍筋 直径Od:10,非加密区Of:200,宽肢数Ob:4,高肢数Oh:4
$Odfbh = '10 200 4 5';

//调用方法
mill($tit,$img,$Vabh,$Jnd,$Bnd,$Hnd,$Odfbh);

//mill 是磨粉机的方法
function mill($tit,$img,$Vabh,$Jnd,$Bnd,$Hnd,$Odfbh){
    //初始化
    include ROOT.'/assets/php/init.php';
    imgt($img,$tit);

    //设置默认值 
    bcscale (3);
    //$pi = round(pi(),2);
    $sg = '0.006165';
    $c = '20';
    $Jw = '35';
    $Bw = '35';
    $Hw = '35';
    $Ow = '13.57';
    $Jj1 = '583';
    $Jj2 = '1353';
    $Bj1 = '1283';
    $Bj2 = '583';
    $Hj1 = '583';
    $Hj2 = '1283';
    
    //以空格分割成数值
    $Varr = expl($Vabh);
    $Va = evev($Varr[0]);
    $Vb = evev($Varr[1]);
    $Vh = evev($Varr[2]);
    $Jarr = expl($Jnd);
    $Jn = evev($Jarr[0]);
    $Jd = evev($Jarr[1]);
    $Barr = expl($Bnd);
    $Bn = evev($Barr[0]);
    $Bd = evev($Barr[1]);
    $Harr = expl($Hnd);
    $Hn = evev($Harr[0]);
    $Hd = evev($Harr[1]);
    $Oarr = expl($Odfbh);
    $Od = evev($Oarr[0]);
    $Of = evev($Oarr[1]);
    $Ob = evev($Oarr[2]);
    $Oh = evev($Oarr[3]);

    //已知条件
    $know = array();
    array_push($know, "钢筋比重 sg:$sg");
    array_push($know, "保护层厚度  c:$c{$unit['mm']}");
    array_push($know, "角筋弯折 Jw:$Jw");
    array_push($know, "宽边筋弯折 Bw:$Bw");
    array_push($know, "高边筋弯折 Hw:$Hw");
    array_push($know, "箍筋弯折 Ow:$Ow");
    array_push($know, "角筋1露长 Jj1:$Jj1");
    array_push($know, "角筋2露长 Jj2:$Jj2");
    array_push($know, "宽边筋1露长 Bj1:$Bj1");
    array_push($know, "宽边筋2露长 Bj2:$Bj2");
    array_push($know, "高边筋1露长 Hj1:$Hj1");
    array_push($know, "高边筋2露长 Hj2:$Hj2");

    array_push($know, $Vabh,$Jnd,$Bnd,$Hnd,$Odfbh);

    array_push($know, "柱的长度 Va:$Va{$unit['mm']}");
    array_push($know, "柱的宽度 Vb:$Vb{$unit['mm']}");
    array_push($know, "柱的高度 Vh:$Vh{$unit['mm']}");
    array_push($know, "角筋根数 Jn:$Jn");
    array_push($know, "角筋直径 Jd:$Jd{$unit['mm']}");
    array_push($know, "宽边筋根数 Bn:$Bn");
    array_push($know, "宽边筋直径 Bd:$Bd{$unit['mm']}");
    array_push($know, "高边筋根数 Hn:$Hn");
    array_push($know, "高边筋直径 Hd:$Hd{$unit['mm']}");
    array_push($know, "箍筋直径 Od:$Od{$unit['mm']}");
    array_push($know, "箍筋间隔 Of:$Of{$unit['mm']}");
    array_push($know, "箍筋宽肢数 Ob:$Ob");
    array_push($know, "箍筋高肢数 Oh:$Oh");

    //计算步骤
    $step = array();
    array_push($step, "柱的体积:V");
    array_push($step, "{$math['eq']} $Va{$math['mul']}$Vb{$math['mul']}$Vh");
    $VaVb = bcmul($Va, $Vb);
    array_push($step, "{$math['eq']} $VaVb{$math['mul']}$Vh");
    $V = bcmul($VaVb, $Vh);
    array_push($step, "{$math['eq']} $V{$unit['mm3']}");
    $Vm3 = bcdiv($V, 1000000000);
    array_push($step, "{$math['eq']} $Vm3{$unit['m3']}");

    array_push($step, "角筋1长度:Ja1");
    array_push($step, "{$math['eq']} $Va{$math['sub']}$Jj1{$math['add']}max($Va/6,500)");
    $maxVa6500 = $Va/6>500?$Va/6:500;
    array_push($step, "{$math['eq']} $Va{$math['sub']}$Jj1{$math['add']}$maxVa6500");
    $VaJj1 = bcsub($Va, $Jj1);
    array_push($step, "{$math['eq']} $VaJj1{$math['add']}$maxVa6500");
    $Ja1 = bcadd($VaJj1 , $maxVa6500);
    array_push($step, "{$math['eq']} $Ja1{$unit['mm']}");


    array_push($step, "角筋2长度:Ja2");
    array_push($step, "{$math['eq']} $Va{$math['sub']}$Jj2{$math['add']}max($Va/6,500){$math['add']}max({$Jw}d,500)");
    $maxVa6500 = $Va/6>500?$Va/6:500;
    $maxJwd6500 = $Jw*$Jd>500?$Jw*$Jd:500;
    array_push($step, "{$math['eq']} $Va{$math['sub']}$Jj2{$math['add']}$maxVa6500{$math['add']}$maxJwd6500");
    $VaJj2 = bcsub($Va, $Jj2);
    array_push($step, "{$math['eq']} $VaJj2{$math['add']}$maxVa6500{$math['add']}$maxJwd6500");
    $VaJj2maxVa6500 = bcadd($VaJj2, $maxVa6500);
    array_push($step, "{$math['eq']} $VaJj2maxVa6500{$math['add']}$maxJwd6500");
    $Ja2 = bcadd($VaJj2maxVa6500, $maxJwd6500);
    array_push($step, "{$math['eq']} $Ja2{$unit['mm']}");

    array_push($step, "宽边筋1长度:Ba1");
    array_push($step, "{$math['eq']} $Va{$math['sub']}$Bj1{$math['add']}max($Va/6,500){$math['add']}max({$Jw}d,500)");
    $maxVa6500 = $Va/6>500?$Va/6:500;
    $maxBwd6500 = $Bw*$Bd>500?$Bw*$Bd:500;
    array_push($step, "{$math['eq']} $Va{$math['sub']}$Bj1{$math['add']}$maxVa6500{$math['add']}$maxBwd6500");
    $VaBj1 = bcsub($Va, $Bj1);
    array_push($step, "{$math['eq']} $VaBj1{$math['add']}$maxVa6500{$math['add']}$maxBwd6500");
    $VaBj1maxVa6500 = bcadd($VaBj1 , $maxVa6500);
    array_push($step, "{$math['eq']} $VaBj1maxVa6500{$math['add']}$maxBwd6500");
    $Ba1 = bcadd($VaBj1maxVa6500 , $maxBwd6500);
    array_push($step, "{$math['eq']} $Ba1{$unit['mm']}");


    array_push($step, "宽边筋2长度:Ba2");
    array_push($step, "{$math['eq']} $Va{$math['sub']}$Bj2{$math['add']}max($Va/6,500)");
    $maxVa6500 = $Va/6>500?$Va/6:500;
    array_push($step, "{$math['eq']} $Va{$math['sub']}$Bj2{$math['add']}$maxVa6500");
    $VaBj2 = bcsub($Va, $Bj2);
    array_push($step, "{$math['eq']} $VaBj2{$math['add']}$maxVa6500");
    $Ba2 = bcadd($VaBj2 , $maxVa6500);
    array_push($step, "{$math['eq']} $Ba2{$unit['mm']}");

    array_push($step, "高边筋1长度:Ha1");
    array_push($step, "{$math['eq']} $Va{$math['sub']}$Hj1{$math['add']}max($Va/6,500)");
    $maxVa6500 = $Va/6>500?$Va/6:500;
    array_push($step, "{$math['eq']} $Va{$math['sub']}$Hj1{$math['add']}$maxVa6500");
    $VaHj1 = bcsub($Va, $Hj1);
    array_push($step, "{$math['eq']} $VaHj1{$math['add']}$maxVa6500");
    $Ha1 = bcadd($VaHj1 , $maxVa6500);
    array_push($step, "{$math['eq']} $Ha1{$unit['mm']}");

    array_push($step, "高边筋2长度:Ha2");
    array_push($step, "{$math['eq']} $Va{$math['sub']}$Hj2{$math['add']}max($Va/6,500){$math['add']}max({$Hw}d,500)");
    $maxVa6500 = $Va/6>500?$Va/6:500;
    $maxHwd6500 = $Hw*$Hd>500?$Hw*$Hd:500;
    array_push($step, "{$math['eq']} $Va{$math['sub']}$Hj2{$math['add']}$maxVa6500{$math['add']}$maxHwd6500");
    $VaHj2 = bcsub($Va, $Hj2);
    array_push($step, "{$math['eq']} $VaHj2{$math['add']}$maxVa6500{$math['add']}$maxHwd6500");
    $VaHj2maxVa6500 = bcadd($VaHj2, $maxVa6500);
    array_push($step, "{$math['eq']} $VaHj2maxVa6500{$math['add']}$maxHwd6500");
    $Ha2 = bcadd($VaHj2maxVa6500, $maxHwd6500);
    array_push($step, "{$math['eq']} $Ha2{$unit['mm']}");

    array_push($step, "箍筋1长度:Oa1");
    array_push($step, "{$math['eq']} 2{$math['mul']}{$math['lpar']}$Vh{$math['sub']}$c{$math['mul']}2{$math['add']}$Vb{$math['sub']}$c{$math['mul']}2{$math['rpar']}{$math['add']}2{$math['mul']}{$math['lpar']}{$Ow}d{$math['rpar']}");
    $c2 = bcmul($c, 2);
    array_push($step, "{$math['eq']} 2{$math['mul']}{$math['lpar']}$Vh{$math['sub']}$c2{$math['add']}$Vb{$math['sub']}$c2{$math['rpar']}{$math['add']}2{$math['mul']}{$math['lpar']}{$Ow}{$math['mul']}$Od{$math['rpar']}");
    $Vhc2 = bcsub($Vh, $c2);
    $Vbc2 = bcsub($Vb, $c2);
    $OwOd = bcmul($Ow, $Od);
    array_push($step, "{$math['eq']} 2{$math['mul']}{$math['lpar']}$Vhc2{$math['add']}$Vbc2{$math['rpar']}{$math['add']}2{$math['mul']}$OwOd");
    $Vhc2Vbc2 = bcadd($Vhc2, $Vbc2);
    array_push($step, "{$math['eq']} 2{$math['mul']}$Vhc2Vbc2{$math['add']}2{$math['mul']}$OwOd");
    $Vhc2Vbc22 = bcmul($Vhc2Vbc2, 2);
    $OwOd2 = bcmul($OwOd, 2);
    array_push($step, "{$math['eq']} $Vhc2Vbc22{$math['add']}$OwOd2");
    $Oa1 = bcadd($Vhc2Vbc22, $OwOd2);
    array_push($step, "{$math['eq']} $Oa1{$unit['mm']}");

    array_push($step, "箍筋2长度:Oa2");
    //设内箍的宽 148
    array_push($step, "设内箍的宽 148");
    array_push($step, "{$math['eq']} 2{$math['mul']}{$math['lpar']}$Vh{$math['sub']}$c{$math['mul']}2{$math['add']}148{$math['rpar']}{$math['add']}2{$math['mul']}{$math['lpar']}{$Ow}d{$math['rpar']}");
    $c2 = bcmul($c, 2);
    array_push($step, "{$math['eq']} 2{$math['mul']}{$math['lpar']}$Vh{$math['sub']}$c2{$math['add']}148{$math['rpar']}{$math['add']}2{$math['mul']}{$math['lpar']}{$Ow}{$math['mul']}$Od{$math['rpar']}");
    $Vhc2 = bcsub($Vh, $c2);
    $Vbc2 = 148;
    $OwOd = bcmul($Ow, $Od);
    array_push($step, "{$math['eq']} 2{$math['mul']}{$math['lpar']}$Vhc2{$math['add']}$Vbc2{$math['rpar']}{$math['add']}2{$math['mul']}$OwOd");
    $Vhc2Vbc2 = bcadd($Vhc2, $Vbc2);
    array_push($step, "{$math['eq']} 2{$math['mul']}$Vhc2Vbc2{$math['add']}2{$math['mul']}$OwOd");
    $Vhc2Vbc22 = bcmul($Vhc2Vbc2, 2);
    $OwOd2 = bcmul($OwOd, 2);
    array_push($step, "{$math['eq']} $Vhc2Vbc22{$math['add']}$OwOd2");
    $Oa2 = bcadd($Vhc2Vbc22, $OwOd2);
    array_push($step, "{$math['eq']} $Oa2{$unit['mm']}");

    array_push($step, "箍筋3长度:Oa3");
    ////设内箍的高 147
    array_push($step, "设内箍的高 147");
    array_push($step, "{$math['eq']} 2{$math['mul']}{$math['lpar']}147{$math['add']}$Vb{$math['sub']}$c{$math['mul']}2{$math['rpar']}{$math['add']}2{$math['mul']}{$math['lpar']}{$Ow}d{$math['rpar']}");
    $c2 = bcmul($c, 2);
    array_push($step, "{$math['eq']} 2{$math['mul']}{$math['lpar']}147{$math['add']}$Vb{$math['sub']}$c2{$math['rpar']}{$math['add']}2{$math['mul']}{$math['lpar']}{$Ow}{$math['mul']}$Od{$math['rpar']}");
    $Vhc2 = 147;
    $Vbc2 = bcsub($Vb, $c2);
    $OwOd = bcmul($Ow, $Od);
    array_push($step, "{$math['eq']} 2{$math['mul']}{$math['lpar']}$Vhc2{$math['add']}$Vbc2{$math['rpar']}{$math['add']}2{$math['mul']}$OwOd");
    $Vhc2Vbc2 = bcadd($Vhc2, $Vbc2);
    array_push($step, "{$math['eq']} 2{$math['mul']}$Vhc2Vbc2{$math['add']}2{$math['mul']}$OwOd");
    $Vhc2Vbc22 = bcmul($Vhc2Vbc2, 2);
    $OwOd2 = bcmul($OwOd, 2);
    array_push($step, "{$math['eq']} $Vhc2Vbc22{$math['add']}$OwOd2");
    $Oa3 = bcadd($Vhc2Vbc22, $OwOd2);
    array_push($step, "{$math['eq']} $Oa3{$unit['mm']}");

    array_push($step, "箍筋4长度:Oa4");
    array_push($step, "{$math['eq']} $Vb{$math['sub']}$c{$math['mul']}2{$math['add']}2{$math['mul']}{$math['lpar']}{$Ow}d{$math['rpar']}");
    array_push($step, "{$math['eq']} $Vb{$math['sub']}$c{$math['mul']}2{$math['add']}2{$math['mul']}{$math['lpar']}{$Ow}{$math['mul']}$Od{$math['rpar']}");
    $OwOd = bcmul($Ow, $Od);
    array_push($step, "{$math['eq']} $Vb{$math['sub']}$c{$math['mul']}2{$math['add']}2{$math['mul']}$OwOd");
    $c2 = bcmul($c, 2);
    $OwOd2 = bcmul($OwOd, 2);
    array_push($step, "{$math['eq']} $Vb{$math['sub']}$c2{$math['add']}$OwOd2");
    $Vbc2 = bcsub($Vb, $c2);
    array_push($step, "{$math['eq']} $Vbc2{$math['add']}$OwOd");
    $Oa4 = bcadd($Vbc2, $OwOd2);
    array_push($step, "{$math['eq']} $Oa4{$unit['mm']}"); 

    array_push($step, "角筋重量:Wj");
    array_push($step, "{$math['eq']} $sg{$math['mul']}$Jd{$math['sup2']}{$math['mul']}{$math['lpar']}$Ja1{$math['add']}$Ja2{$math['rpar']}{$math['mul']}{$math['lpar']}$Jn{$math['div']}2{$math['rpar']}");
    $JdJd = bcmul($Jd, $Jd);
    array_push($step, "{$math['eq']} $sg{$math['mul']}$JdJd{$math['mul']}{$math['lpar']}$Ja1{$math['add']}$Ja2{$math['rpar']}{$math['mul']}{$math['lpar']}$Jn{$math['div']}2{$math['rpar']}");
    $Ja1Ja2 = bcadd($Ja1, $Ja2);
    $Jn2 = bcdiv($Jn, 2);
    array_push($step, "{$math['eq']} $sg{$math['mul']}$JdJd{$math['mul']}$Ja1Ja2{$math['mul']}$Jn2");
    $JdJdJa1Ja2 = bcmul($JdJd, $Ja1Ja2);
    array_push($step, "{$math['eq']} $sg{$math['mul']}$JdJdJa1Ja2{$math['mul']}$Jn2");
    $sgJdJdJa1Ja2 = bcmul($sg, $JdJdJa1Ja2);
    array_push($step, "{$math['eq']} $sgJdJdJa1Ja2{$math['mul']}$Jn2");
    $Wj = bcmul($sgJdJdJa1Ja2, $Jn2);
    array_push($step, "{$math['eq']} $Wj{$unit['g']}");
    $Wjkg = bcdiv($Wj,1000);
    array_push($step, "{$math['eq']} $Wjkg{$unit['kg']}");

    array_push($step, "宽边筋重量:Wb");
    array_push($step, "{$math['eq']} $sg{$math['mul']}$Bd{$math['sup2']}{$math['mul']}{$math['lpar']}$Ba1{$math['add']}$Ba2{$math['rpar']}{$math['mul']}$Bn");
    $BdBd = bcmul($Bd, $Bd);
    array_push($step, "{$math['eq']} $sg{$math['mul']}$BdBd{$math['mul']}{$math['lpar']}$Ba1{$math['add']}$Ba2{$math['rpar']}{$math['mul']}$Bn");
    $Ba1Ba2 = bcadd($Ba1, $Ba2);
    array_push($step, "{$math['eq']} $sg{$math['mul']}$BdBd{$math['mul']}$Ba1Ba2{$math['mul']}$Bn");
    $BdBdBa1Ba2 = bcmul($BdBd, $Ba1Ba2);
    array_push($step, "{$math['eq']} $sg{$math['mul']}$BdBdBa1Ba2{$math['mul']}$Bn");
    $sgBdBdBa1Ba2 = bcmul($sg, $BdBdBa1Ba2);
    array_push($step, "{$math['eq']} $sgBdBdBa1Ba2{$math['mul']}$Bn");
    $Wb = bcmul($sgBdBdBa1Ba2, $Bn);
    array_push($step, "{$math['eq']} $Wb{$unit['g']}");
    $Wbkg = bcdiv($Wb,1000);
    array_push($step, "{$math['eq']} $Wbkg{$unit['kg']}");

    array_push($step, "高边筋重量:Wh");
    array_push($step, "{$math['eq']} $sg{$math['mul']}$Hd{$math['sup2']}{$math['mul']}{$math['lpar']}$Ha1{$math['add']}$Ha2{$math['rpar']}{$math['mul']}$Hn");
    $HdHd = bcmul($Hd, $Hd);
    array_push($step, "{$math['eq']} $sg{$math['mul']}$HdHd{$math['mul']}{$math['lpar']}$Ha1{$math['add']}$Ha2{$math['rpar']}{$math['mul']}$Hn");
    $Ha1Ha2 = bcadd($Ha1, $Ha2);
    array_push($step, "{$math['eq']} $sg{$math['mul']}$HdHd{$math['mul']}$Ha1Ha2{$math['mul']}$Hn");
    $HdHdHa1Ha2 = bcmul($HdHd, $Ha1Ha2);
    array_push($step, "{$math['eq']} $sg{$math['mul']}$HdHdHa1Ha2{$math['mul']}$Hn");
    $sgHdHdHa1Ha2 = bcmul($sg, $HdHdHa1Ha2);
    array_push($step, "{$math['eq']} $sgHdHdHa1Ha2{$math['mul']}$Hn");
    $Wh = bcmul($sgHdHdHa1Ha2, $Hn);
    array_push($step, "{$math['eq']} $Wh{$unit['g']}");
    $Whkg = bcdiv($Wh,1000);
    array_push($step, "{$math['eq']} $Whkg{$unit['kg']}");

    array_push($step, "箍筋重量:Wo");
    array_push($step, "{$math['eq']} $sg{$math['mul']}$Od{$math['sup2']}{$math['mul']}{$math['lpar']}$Oa1{$math['add']}$Oa2{$math['add']}$Oa3{$math['add']}$Oa4{$math['rpar']}{$math['mul']}{$math['lpar']}$Va{$math['div']}$Of{$math['add']}1{$math['rpar']}");
    $Oa = $Oa1+$Oa2+$Oa3+$Oa4;
    array_push($step, "{$math['eq']} $sg{$math['mul']}$Od{$math['sup2']}{$math['mul']}$Oa{$math['mul']}{$math['lpar']}$Va{$math['div']}$Of{$math['add']}1{$math['rpar']}");
    $VaOf = bcdiv($Va, $Of);
    $VaOf1 = bcadd($VaOf, 1);
    array_push($step, "{$math['eq']} $sg{$math['mul']}$Od{$math['sup2']}{$math['mul']}$Oa{$math['mul']}$VaOf1");
    $OdOd = bcmul($Od, $Od);
    $VaOf1 = round($VaOf1,0);
    array_push($step, "{$math['eq']} $sg{$math['mul']}$OdOd{$math['mul']}$Oa{$math['mul']}$VaOf1");
    $OdOdOa = bcmul($OdOd, $Oa);
    array_push($step, "{$math['eq']} $sg{$math['mul']}$OdOdOa{$math['mul']}$VaOf1");
    $sgOdOdOa = bcmul($sg, $OdOdOa);
    array_push($step, "{$math['eq']} $sgOdOdOa{$math['mul']}$VaOf1");
    $Wo = bcmul($sgOdOdOa,$VaOf1);
    array_push($step, "{$math['eq']} $Wo{$unit['g']}");
    $Wokg = bcdiv($Wo,1000);
    array_push($step, "{$math['eq']} $Wokg{$unit['kg']}");

    array_push($step, "总钢筋量:W");
    array_push($step, "{$math['eq']} $Wjkg{$math['add']}$Wbkg{$math['add']}$Whkg{$math['add']}$Wokg");
    $WjkgWbkg = bcadd($Wjkg, $Wbkg);
    array_push($step, "{$math['eq']} $WjkgWbkg{$math['add']}$Whkg{$math['add']}$Wokg");
    $WjkgWbkgWhkg = bcadd($WjkgWbkg, $Whkg);
    array_push($step, "{$math['eq']} $WjkgWbkgWhkg{$math['add']}$Wokg");
    $W = bcadd($WjkgWbkgWhkg, $Wokg);
    array_push($step, "{$math['eq']} $W{$unit['kg']}");

    //算出结果
    $ends = array();
    array_push($ends, "柱的体积:$Vm3{$unit['m3']}");
    array_push($ends, "角筋1长度:$Ja1{$unit['mm']}");
    array_push($ends, "角筋2长度:$Ja2{$unit['mm']}");
    array_push($ends, "宽边筋1长度:$Ba1{$unit['mm']}");
    array_push($ends, "宽边筋2长度:$Ba2{$unit['mm']}");
    array_push($ends, "高边筋1长度:$Ha1{$unit['mm']}");
    array_push($ends, "高边筋2长度:$Ha2{$unit['mm']}");
    array_push($ends, "箍筋1长度:$Oa1{$unit['mm']}");
    array_push($ends, "箍筋2长度:$Oa2{$unit['mm']}");
    array_push($ends, "箍筋3长度:$Oa3{$unit['mm']}");
    array_push($ends, "箍筋4长度:$Oa4{$unit['mm']}");
    array_push($ends, "角筋重量:$Wjkg{$unit['kg']}");
    array_push($ends, "宽边筋重量:$Wbkg{$unit['kg']}");
    array_push($ends, "高边筋重量:$Whkg{$unit['kg']}");
    array_push($ends, "箍筋重量:$Wokg{$unit['kg']}");
    array_push($ends, "总钢筋量:$W{$unit['kg']}");

    //公式表示
    $home = array();
    array_push($home, "柱的体积:V{$math['eq']}Va{$math['mul']}Vb{$math['mul']}Vh");
    array_push($home, "角筋1长度:Ja1{$math['eq']}Va{$math['sub']}Jj1{$math['add']}max(Va/6,500)");
    array_push($home, "角筋2长度:Ja2{$math['eq']}Va{$math['sub']}Jj2{$math['add']}max(Va/6,500){$math['add']}max({$Jw}d,500)");
    array_push($home, "宽边筋1长度:Ba1{$math['eq']}$Va{$math['sub']}Bj1{$math['add']}max(Va/6,500){$math['add']}max({$Jw}d,500)");
    array_push($home, "宽边筋2长度:Ba2{$math['eq']}$Va{$math['sub']}Bj2{$math['add']}max(Va/6,500)");
    array_push($home, "高边筋1长度:Ha1{$math['eq']}Va{$math['sub']}Hj1{$math['add']}max(Va/6,500)");
    array_push($home, "高边筋2长度:Ha2{$math['eq']}Va{$math['sub']}Hj2{$math['add']}max(Va/6,500){$math['add']}max({$Hw}d,500)");

    array_push($home, "箍筋1长度:Oa1{$math['eq']}2{$math['mul']}{$math['lpar']}Vh{$math['sub']}c{$math['mul']}2{$math['add']}Vb{$math['sub']}c{$math['mul']}2{$math['rpar']}{$math['add']}2{$math['mul']}{$math['lpar']}{$Ow}d{$math['rpar']}");
    array_push($home, "箍筋2长度:Oa2{$math['eq']}2{$math['mul']}{$math['lpar']}Vh{$math['sub']}c{$math['mul']}2{$math['add']}148{$math['rpar']}{$math['add']}2{$math['mul']}{$math['lpar']}{$Ow}d{$math['rpar']}");
    array_push($home, "箍筋3长度:Oa3{$math['eq']}2{$math['mul']}{$math['lpar']}147{$math['add']}Vb{$math['sub']}c{$math['mul']}2{$math['rpar']}{$math['add']}2{$math['mul']}{$math['lpar']}{$Ow}d{$math['rpar']}");
    array_push($home, "箍筋4长度:Oa4{$math['eq']}Vb{$math['sub']}c{$math['mul']}2{$math['add']}2{$math['mul']}{$math['lpar']}{$Ow}d{$math['rpar']}");
    array_push($home, "角筋重量:Wj{$math['eq']}$sg{$math['mul']}Jd{$math['sup2']}{$math['mul']}{$math['lpar']}Ja1{$math['add']}Ja2{$math['rpar']}{$math['mul']}{$math['lpar']}Jn{$math['div']}2{$math['rpar']}");
    array_push($home, "宽边筋重量:Wb{$math['eq']}$sg{$math['mul']}Bd{$math['sup2']}{$math['mul']}{$math['lpar']}Ba1{$math['add']}Ba2{$math['rpar']}{$math['mul']}Bn");
    array_push($home, "高边筋重量:Wh{$math['eq']}$sg{$math['mul']}Hd{$math['sup2']}{$math['mul']}{$math['lpar']}Ha1{$math['add']}Ha2{$math['rpar']}{$math['mul']}Hn");
    array_push($home, "箍筋重量:Wo{$math['eq']}$sg{$math['mul']}Od{$math['sup2']}{$math['mul']}{$math['lpar']}Oa1{$math['add']}Oa2{$math['add']}Oa3{$math['add']}Oa4{$math['rpar']}{$math['mul']}{$math['lpar']}Va{$math['div']}Of{$math['add']}1{$math['rpar']}");
    array_push($home, "总钢筋量:W{$math['eq']}Wj{$math['add']}Wb{$math['add']}Wh{$math['add']}Wo");

    //解释说明
    $info = array();
array_push($info, "柱的体积 {$math['eq']} 柱的长度 {$math['mul']} 柱的宽度 {$math['mul']} 柱的高度 ");
array_push($info, "角筋1长度 {$math['eq']} 柱的长度 {$math['sub']} 角筋1露长 {$math['add']} max( 柱的长度/6, 500)");
array_push($info, "角筋2长度 {$math['eq']} 柱的长度 {$math['sub']} 角筋2露长 {$math['add']} max( 柱的长度/6, 500){$math['add']} max(35d,500)");
array_push($info, "宽边筋1长度 {$math['eq']} 柱的长度 {$math['sub']} 宽边筋1露长 {$math['add']} max( 柱的长度/6, 500){$math['add']} max(35d,500)");
array_push($info, "宽边筋2长度 {$math['eq']} 柱的长度 {$math['sub']} 宽边筋2露长 {$math['add']} max( 柱的长度/6, 500)");
array_push($info, "高边筋1长度 {$math['eq']} 柱的长度 {$math['sub']} 高边筋1露长 {$math['add']} max( 柱的长度/6, 500)");
array_push($info, "高边筋2长度 {$math['eq']} 柱的长度 {$math['sub']} 高边筋2露长 {$math['add']} max( 柱的长度/6, 500){$math['add']} max(35d,500)");

array_push($info, "箍筋1长度 {$math['eq']} 2 {$math['mul']}{$math['lpar']} 柱的高度 {$math['sub']} 保护层厚度 {$math['mul']} 2 {$math['add']} 柱的宽度 {$math['sub']} 保护层厚度 {$math['mul']} 2 {$math['rpar']}{$math['add']} 2 {$math['mul']}{$math['lpar']}{$Ow}d{$math['rpar']}");
array_push($info, "箍筋2长度 {$math['eq']} 2 {$math['mul']}{$math['lpar']} 柱的高度 {$math['sub']} 保护层厚度 {$math['mul']} 2 {$math['add']} 148{$math['rpar']}{$math['add']} 2 {$math['mul']}{$math['lpar']}{$Ow}d{$math['rpar']}");
array_push($info, "箍筋3长度 {$math['eq']} 2 {$math['mul']}{$math['lpar']}147 {$math['add']} 柱的宽度 {$math['sub']} 保护层厚度 {$math['mul']} 2 {$math['rpar']}{$math['add']} 2 {$math['mul']}{$math['lpar']}{$Ow}d{$math['rpar']}");
array_push($info, "箍筋4长度 {$math['eq']} 柱的宽度 {$math['sub']} 保护层厚度 {$math['mul']} 2 {$math['add']} 2 {$math['mul']}{$math['lpar']}{$Ow}d{$math['rpar']}");
array_push($info, "角筋重量 {$math['eq']} 钢筋比重 {$math['mul']} 角筋直径 {$math['sup2']}{$math['mul']}{$math['lpar']} 角筋1长度 {$math['add']} 角筋2长度 {$math['rpar']}{$math['mul']}{$math['lpar']} 角筋根数 {$math['div']} 2 {$math['rpar']}");
array_push($info, "宽边筋重量 {$math['eq']} 钢筋比重 {$math['mul']} 宽边筋直径 {$math['sup2']}{$math['mul']}{$math['lpar']} 宽边筋1长度 {$math['add']} 宽边筋2长度 {$math['rpar']}{$math['mul']} 宽边筋根数 ");
array_push($info, "高边筋重量 {$math['eq']} 钢筋比重 {$math['mul']} 高边筋直径 {$math['sup2']}{$math['mul']}{$math['lpar']} 高边筋1长度 {$math['add']} 高边筋2长度 {$math['rpar']}{$math['mul']} 高边筋根数 ");
array_push($info, "箍筋重量 {$math['eq']} 钢筋比重 {$math['mul']} 箍筋直径 {$math['sup2']}{$math['mul']}{$math['lpar']} 箍筋1长度 {$math['add']} 箍筋2长度 {$math['add']} 箍筋3长度 {$math['add']} 箍筋4长度 {$math['rpar']}{$math['mul']}{$math['lpar']} 柱的长度 {$math['div']} 箍筋间隔 {$math['add']}1{$math['rpar']}");
array_push($info, "总钢筋量 {$math['eq']} 角筋重量 {$math['add']} 宽边筋重量 {$math['add']} 高边筋重量 {$math['add']} 箍筋重量");

    know($know);
    ends($ends);
    home($home);
    step($step);
    info($info);
}
?>
<?php include ROOT.'/assets/php/foot.php';
//写下笔记
$note = array();
array_push($note,array('间隔','疑点','加密区和非加密区如何计算'));
array_push($note,array('肢数','疑点','外箍和内箍如何计算'));
//note($note);
?>

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

☀计算柱的土方量和钢筋量已知集中标注
钢筋比重 sg:0.006165  
保护层厚度 c:20㎜  
角筋弯折 Jw:35  
宽边筋弯折 Bw:35  
高边筋弯折 Hw:35  
箍筋弯折 Ow:13.57  
角筋1露长 Jj1:583  
角筋2露长 Jj2:1353  
宽边筋1露长 Bj1:1283  
宽边筋2露长 Bj2:583  
高边筋1露长 Hj1:583  
高边筋2露长 Hj2:1283  
3500 400 500  
4 22  
2 20  
3 20  
10 200 4 5  
柱的长度 Va:3500㎜  
柱的宽度 Vb:400㎜  
柱的高度 Vh:500㎜  
角筋根数 Jn:4  
角筋直径 Jd:22㎜  
宽边筋根数 Bn:2  
宽边筋直径 Bd:20㎜  
高边筋根数 Hn:3  
高边筋直径 Hd:20㎜  
箍筋直径 Od:10㎜  
箍筋间隔 Of:200㎜  
箍筋宽肢数 Ob:4  
箍筋高肢数 Oh:5  

♠算出结果  
柱的体积:0.700m³  
角筋1长度:3500.333㎜  
角筋2长度:3500.333㎜  
宽边筋1长度:3500.333㎜  
宽边筋2长度:3500.333㎜  
高边筋1长度:3500.333㎜  
高边筋2长度:3500.333㎜  
箍筋1长度:1911.400㎜  
箍筋2长度:1487.400㎜  
箍筋3长度:1285.400㎜  
箍筋4长度:631.400㎜  
角筋重量:41.778㎏  
宽边筋重量:34.527㎏  
高边筋重量:51.790㎏  
箍筋重量:62.264㎏  
总钢筋量:190.359㎏  

♥公式表示  
柱的体积:V=Va×Vb×Vh  
角筋1长度:Ja1=Va−Jj1+max(Va/6,500)  
角筋2长度:Ja2=Va−Jj2+max(Va/6,500)+max(35d,500)  
宽边筋1长度:Ba1=3500−Bj1+max(Va/6,500)+max(35d,500)  
宽边筋2长度:Ba2=3500−Bj2+max(Va/6,500)  
高边筋1长度:Ha1=Va−Hj1+max(Va/6,500)  
高边筋2长度:Ha2=Va−Hj2+max(Va/6,500)+max(35d,500)  
箍筋1长度:Oa1=2×(Vh−c×2+Vb−c×2)+2×(13.57d)  
箍筋2长度:Oa2=2×(Vh−c×2+148)+2×(13.57d)  
箍筋3长度:Oa3=2×(147+Vb−c×2)+2×(13.57d)  
箍筋4长度:Oa4=Vb−c×2+2×(13.57d)  
角筋重量:Wj=0.006165×Jd²×(Ja1+Ja2)×(Jn÷2)  
宽边筋重量:Wb=0.006165×Bd²×(Ba1+Ba2)×Bn  
高边筋重量:Wh=0.006165×Hd²×(Ha1+Ha2)×Hn  
箍筋重量:Wo=0.006165×Od²×(Oa1+Oa2+Oa3+Oa4)×(Va÷Of+1)  
总钢筋量:W=Wj+Wb+Wh+Wo  

♣计算步骤  
柱的体积:V  
= 3500×400×500  
= 1400000.000×500  
= 700000000.000㎜³  
= 0.700m³  
角筋1长度:Ja1  
= 3500−583+max(3500/6,500)  
= 3500−583+583.33333333333  
= 2917.000+583.33333333333  
= 3500.333㎜  
角筋2长度:Ja2  
= 3500−1353+max(3500/6,500)+max(35d,500)  
= 3500−1353+583.33333333333+770  
= 2147.000+583.33333333333+770  
= 2730.333+770  
= 3500.333㎜  
宽边筋1长度:Ba1  
= 3500−1283+max(3500/6,500)+max(35d,500)  
= 3500−1283+583.33333333333+700  
= 2217.000+583.33333333333+700  
= 2800.333+700  
= 3500.333㎜  
宽边筋2长度:Ba2  
= 3500−583+max(3500/6,500)  
= 3500−583+583.33333333333  
= 2917.000+583.33333333333  
= 3500.333㎜  
高边筋1长度:Ha1  
= 3500−583+max(3500/6,500)  
= 3500−583+583.33333333333  
= 2917.000+583.33333333333  
= 3500.333㎜  
高边筋2长度:Ha2  
= 3500−1283+max(3500/6,500)+max(35d,500)  
= 3500−1283+583.33333333333+700  
= 2217.000+583.33333333333+700  
= 2800.333+700  
= 3500.333㎜  
箍筋1长度:Oa1  
= 2×(500−20×2+400−20×2)+2×(13.57d)  
= 2×(500−40.000+400−40.000)+2×(13.57×10)  
= 2×(460.000+360.000)+2×135.700  
= 2×820.000+2×135.700  
= 1640.000+271.400  
= 1911.400㎜  
箍筋2长度:Oa2  
设内箍的宽 148  
= 2×(500−20×2+148)+2×(13.57d)  
= 2×(500−40.000+148)+2×(13.57×10)  
= 2×(460.000+148)+2×135.700  
= 2×608.000+2×135.700  
= 1216.000+271.400  
= 1487.400㎜  
箍筋3长度:Oa3  
设内箍的高 147  
= 2×(147+400−20×2)+2×(13.57d)  
= 2×(147+400−40.000)+2×(13.57×10)  
= 2×(147+360.000)+2×135.700  
= 2×507.000+2×135.700  
= 1014.000+271.400  
= 1285.400㎜  
箍筋4长度:Oa4  
= 400−20×2+2×(13.57d)  
= 400−20×2+2×(13.57×10)  
= 400−20×2+2×135.700  
= 400−40.000+271.400  
= 360.000+135.700  
= 631.400㎜  
角筋重量:Wj  
= 0.006165×22²×(3500.333+3500.333)×(4÷2)  
= 0.006165×484.000×(3500.333+3500.333)×(4÷2)  
= 0.006165×484.000×7000.666×2.000  
= 0.006165×3388322.344×2.000  
= 20889.007×2.000  
= 41778.014g  
= 41.778㎏  
宽边筋重量:Wb  
= 0.006165×20²×(3500.333+3500.333)×2  
= 0.006165×400.000×(3500.333+3500.333)×2  
= 0.006165×400.000×7000.666×2  
= 0.006165×2800266.400×2  
= 17263.642×2  
= 34527.284g  
= 34.527㎏  
高边筋重量:Wh  
= 0.006165×20²×(3500.333+3500.333)×3  
= 0.006165×400.000×(3500.333+3500.333)×3  
= 0.006165×400.000×7000.666×3  
= 0.006165×2800266.400×3  
= 17263.642×3  
= 51790.926g  
= 51.790㎏  
箍筋重量:Wo  
= 0.006165×10²×(1911.400+1487.400+1285.400+631.400)×(3500÷200+1)  
= 0.006165×10²×5315.6×(3500÷200+1)  
= 0.006165×10²×5315.6×18.500  
= 0.006165×100.000×5315.6×19  
= 0.006165×531560.000×19  
= 3277.067×19  
= 62264.273g  
= 62.264㎏  
总钢筋量:W  
= 41.778+34.527+51.790+62.264  
= 76.305+51.790+62.264  
= 128.095+62.264  
= 190.359㎏  

♦公式说明  
柱的体积 = 柱的长度 × 柱的宽度 × 柱的高度   
角筋1长度 = 柱的长度 − 角筋1露长 + max( 柱的长度/6, 500)  
角筋2长度 = 柱的长度 − 角筋2露长 + max( 柱的长度/6, 500)+ max(35d,500)  
宽边筋1长度 = 柱的长度 − 宽边筋1露长 + max( 柱的长度/6, 500)+ max(35d,500)  
宽边筋2长度 = 柱的长度 − 宽边筋2露长 + max( 柱的长度/6, 500)  
高边筋1长度 = 柱的长度 − 高边筋1露长 + max( 柱的长度/6, 500)  
高边筋2长度 = 柱的长度 − 高边筋2露长 + max( 柱的长度/6, 500)+ max(35d,500)  
箍筋1长度 = 2 ×( 柱的高度 − 保护层厚度 × 2 + 柱的宽度 − 保护层厚度 × 2 )+ 2 ×(13.57d)  
箍筋2长度 = 2 ×( 柱的高度 − 保护层厚度 × 2 + 148)+ 2 ×(13.57d)  
箍筋3长度 = 2 ×(147 + 柱的宽度 − 保护层厚度 × 2 )+ 2 ×(13.57d)  
箍筋4长度 = 柱的宽度 − 保护层厚度 × 2 + 2 ×(13.57d)  
角筋重量 = 钢筋比重 × 角筋直径 ²×( 角筋1长度 + 角筋2长度 )×( 角筋根数 ÷ 2 )  
宽边筋重量 = 钢筋比重 × 宽边筋直径 ²×( 宽边筋1长度 + 宽边筋2长度 )× 宽边筋根数   
高边筋重量 = 钢筋比重 × 高边筋直径 ²×( 高边筋1长度 + 高边筋2长度 )× 高边筋根数   
箍筋重量 = 钢筋比重 × 箍筋直径 ²×( 箍筋1长度 + 箍筋2长度 + 箍筋3长度 + 箍筋4长度 )×( 柱的长度 ÷ 箍筋间隔 +1)  
总钢筋量 = 角筋重量 + 宽边筋重量 + 高边筋重量 + 箍筋重量  

标签:土方,200008,add,push,mul,array,eq,math,标注
From: https://www.cnblogs.com/onestopweb/p/16988387.html

相关文章