Loading…
Loading…
方法名称: rectangular_thin_plate_weir_method_max_flowrate
方法ID: 0x41F4
方法标签: Calculate Max Flowrate
方法描述: Calculates Max Flowrate (Qmax) value.
- {
- float angle1;
- float angle2;
- float Kb;
- float be;
- float he;
- float hP;
- float cd;
- float flowratecalculated;
- float spanconvertedrectangular;
- float notchwidthconverted;
- float crestheightconverted;
- float channelwidthconverted;
- float ratiocalculation;
- 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)
- {
- spanconvertedrectangular = span_Obj_value_0 * 0.3048;
- notchwidthconverted = notchwidth * 0.3048;
- crestheightconverted = crestheight * 0.3048;
- channelwidthconverted = channelwidth * 0.3048;
- }
- else
- if (Distance_Obj_unit == 45)
- {
- spanconvertedrectangular = span_Obj_value_0 * 1;
- notchwidthconverted = notchwidth * 1;
- crestheightconverted = crestheight * 1;
- channelwidthconverted = channelwidth * 1;
- }
- else
- if (Distance_Obj_unit == 47)
- {
- spanconvertedrectangular = span_Obj_value_0 * 0.0254;
- notchwidthconverted = notchwidth * 0.0254;
- crestheightconverted = crestheight * 0.0254;
- channelwidthconverted = channelwidth * 0.0254;
- }
- else
- if (Distance_Obj_unit == 48)
- {
- spanconvertedrectangular = span_Obj_value_0 * 0.01;
- notchwidthconverted = notchwidth * 0.01;
- crestheightconverted = crestheight * 0.01;
- channelwidthconverted = channelwidth * 0.01;
- }
- else
- if (Distance_Obj_unit == 49)
- {
- spanconvertedrectangular = span_Obj_value_0 * 0.001;
- notchwidthconverted = notchwidth * 0.001;
请登录以获得完整内容