Loading…

方法名称: triangular_notch_thin_plate_weir_method_max_flowrate

方法ID: 0x41F6

方法标签: Calculate Max Flowrate (Qmax)

方法描述: Calculates Maximum Flowrate (Qmax) value


  • {
  • float flowratecalculated;
  • float radian;
  • float headcalculation;
  • float spanconverted;
  • char disp_string1[135];
  • int slen1;
  • slen1 = 135;
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_all_resp_code(0);
  • _set_xmtr_all_resp_code(0);
  • _get_dictionary_string(19726337,disp_string1,slen1);
  • ACKNOWLEDGE(disp_string1);
  • _add_abort_method(4118);
  • if (Distance_Obj_unit == 44)
  • {
  • spanconverted = span_Obj_value_0 * 0.3048;
  • }
  • else
  • if (Distance_Obj_unit == 45)
  • {
  • spanconverted = span_Obj_value_0 * 1;
  • }
  • else
  • if (Distance_Obj_unit == 47)
  • {
  • spanconverted = span_Obj_value_0 * 0.0254;
  • }
  • else
  • if (Distance_Obj_unit == 48)
  • {
  • spanconverted = span_Obj_value_0 * 0.01;
  • }
  • else
  • if (Distance_Obj_unit == 49)
  • {
  • spanconverted = span_Obj_value_0 * 0.001;
  • }
  • radian = notch_angle_any_user_value * 0.01745329;
  • if (notch_angle_any_user_value >= 20.0 && notch_angle_any_user_value <= 22.50)
  • {
  • headcalculation = spanconverted + 0.00282;
  • flowratecalculated = 0.593 * 0.533 * tan(radian / 2) * 4.4286 * pow(headcalculation,2.5);
  • }
  • else
  • if (notch_angle_any_user_value > 22.50 && notch_angle_any_user_value <= 27.50)
  • {
  • headcalculation = spanconverted + 0.0025;
  • flowratecalculated = 0.589 * 0.533 * tan(radian / 2) * 4.4286 * pow(headcalculation,2.5);
  • }


请登录以获得完整内容