Loading…
Loading…
方法名称: rectangular_throated_flume_method_max_flowrate
方法ID: 0x41F8
方法标签: Calculate Max Flowrate
方法描述: Calculates Maximum Flowrate (Qmax) value.
- {
- float approachbasewidthconverted;
- float throatbasewidthconverted;
- float throatheightconverted;
- float throatlengthconverted;
- float effectivewidth;
- float effectivehead;
- float areaapprochchannel;
- float dischargecalc;
- float headconvertedrectangularthroat;
- float flowratecalculated;
- 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)
- {
- headconvertedrectangularthroat = span_Obj_value_0 * 0.3048;
- approachbasewidthconverted = rt_base_width * 0.3048;
- throatbasewidthconverted = rt_base_width_throat * 0.3048;
- throatheightconverted = rt_throat_height * 0.3048;
- throatlengthconverted = rt_throat_length * 0.3048;
- }
- else
- if (Distance_Obj_unit == 45)
- {
- headconvertedrectangularthroat = span_Obj_value_0 * 1;
- approachbasewidthconverted = rt_base_width * 1;
- throatbasewidthconverted = rt_base_width_throat * 1;
- throatheightconverted = rt_throat_height * 1;
- throatlengthconverted = rt_throat_length * 1;
- }
- else
- if (Distance_Obj_unit == 47)
- {
- headconvertedrectangularthroat = span_Obj_value_0 * 0.0254;
- approachbasewidthconverted = rt_base_width * 0.0254;
- throatbasewidthconverted = rt_base_width_throat * 0.0254;
- throatheightconverted = rt_throat_height * 0.0254;
- throatlengthconverted = rt_throat_length * 0.0254;
- }
- else
- if (Distance_Obj_unit == 48)
- {
- headconvertedrectangularthroat = span_Obj_value_0 * 0.01;
- approachbasewidthconverted = rt_base_width * 0.01;
- throatbasewidthconverted = rt_base_width_throat * 0.01;
- throatheightconverted = rt_throat_height * 0.01;
- throatlengthconverted = rt_throat_length * 0.01;
- }
- else
请登录以获得完整内容