Loading…

方法名称: parshall_flume_method_max_flowrate

方法ID: 0x41FC

方法标签: Calculate Max Flowrate

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


  • {
  • float flowratecalculated;
  • float headconvertedparshall;
  • 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)
  • {
  • headconvertedparshall = span_Obj_value_0 * 1;
  • }
  • else
  • if (Distance_Obj_unit == 45)
  • {
  • headconvertedparshall = span_Obj_value_0 * 3.28083;
  • }
  • else
  • if (Distance_Obj_unit == 47)
  • {
  • headconvertedparshall = span_Obj_value_0 * 0.08333333;
  • }
  • else
  • if (Distance_Obj_unit == 48)
  • {
  • headconvertedparshall = span_Obj_value_0 * 0.0328083;
  • }
  • else
  • if (Distance_Obj_unit == 49)
  • {
  • headconvertedparshall = span_Obj_value_0 * 0.00328083;
  • }
  • if (throat_width_ft == 1 || throat_width_mm == 1 || throat_width_cm == 1 || throat_width_in == 1 || throat_width_meter == 1)
  • {
  • flowratecalculated = 0.338 * pow(headconvertedparshall,1.55);
  • }
  • if (throat_width_ft == 2 || throat_width_mm == 2 || throat_width_cm == 2 || throat_width_in == 2 || throat_width_meter == 2)
  • {
  • flowratecalculated = 0.676 * pow(headconvertedparshall,1.55);
  • }
  • if (throat_width_ft == 3 || throat_width_mm == 3 || throat_width_cm == 3 || throat_width_in == 3 || throat_width_meter == 3)
  • {
  • flowratecalculated = 0.992 * pow(headconvertedparshall,1.55);
  • }


请登录以获得完整内容