| | |
| | | var flowSpeed = ParameterOperator.GetParameterValueAsString(pipe, "流速");
|
| | | var pressureLoss = ParameterOperator.GetParameterValueAsString(pipe, "压力损失");
|
| | | var specificFriction = ParameterOperator.GetParameterValueAsString(pipe, "比摩阻");
|
| | | result.Id = elemModel.Id;
|
| | | result.LinkIds = ElementExtense2.GetLinkedElementIds(elemModel.Id);
|
| | | result.Diameter = diameter;
|
| | | result.Length = length;
|
| | | result.Flow = flow;
|
| | | result.FlowSpeed = flowSpeed;
|
| | | result.PressureLoss = pressureLoss;
|
| | | result.SpecificFriction = specificFriction;
|
| | | result.编号 = elemModel.编号;
|
| | | result.连接构件 = ElementExtense2.GetLinkedElementIds(elemModel.编号);
|
| | | result.直径 = diameter;
|
| | | result.长度 = length;
|
| | | result.流量 = flow;
|
| | | result.流速 = flowSpeed;
|
| | | result.压力损失 = pressureLoss;
|
| | | result.比摩阻 = specificFriction;
|
| | | }
|
| | |
|
| | | return result;
|
| | |
| | | result.Add(new Tuple<string, string>($"长度", (decimal.Parse(length.ToString()) / 1000).ToString()));
|
| | |
|
| | | // 流量
|
| | | var flow = ParameterOperator.GetParameterValueAsDouble(pipe, "流量");
|
| | | var flow = ParameterOperator.GetParameterValueAsString(pipe, "流量");
|
| | | result.Add(new Tuple<string, string>($"流量", flow.ToString()));
|
| | |
|
| | | // 流速
|
| | | var flowSpeed = ParameterOperator.GetParameterValueAsDouble(pipe, "流速");
|
| | | var flowSpeed = ParameterOperator.GetParameterValueAsString(pipe, "流速");
|
| | | result.Add(new Tuple<string, string>($"流速", flowSpeed.ToString()));
|
| | |
|
| | | // 压力损失
|
| | | var pressureLoss = ParameterOperator.GetParameterValueAsDouble(pipe, "压力损失");
|
| | | var pressureLoss = ParameterOperator.GetParameterValueAsString(pipe, "压力损失");
|
| | | result.Add(new Tuple<string, string>($"压力损失", pressureLoss.ToString()));
|
| | |
|
| | | // 比摩阻
|
| | | var specificFriction = ParameterOperator.GetParameterValueAsDouble(pipe, "比摩阻");
|
| | | var specificFriction = ParameterOperator.GetParameterValueAsString(pipe, "比摩阻");
|
| | | result.Add(new Tuple<string, string>($"比摩阻", specificFriction.ToString()));
|
| | | return result;
|
| | | }
|