# # Definition of the pipeline at snøhvit # Made by: Even Solbraa, 2001 # height = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0] length = [0.0, 0.1, 0.2, 0.3, 0.5, 0.7] outerTemperature = [278.0, 278.0, 278.0, 278.0, 278.0, 278.0] pipeDiameters = [1.207588, 1.207588, 1.207588, 1.207588, 1.207588, 1.207588] pipeWallRoughness = [1e-5, 1e-5, 1e-5, 1e-5, 1e-5, 1e-5] def createPipe(thermoSystem): pipe = TwoPhasePipeFlowSystem() pipe.setThermoSystem(thermoSystem) pipe.setSystemLength(0.7) pipe.setNumberOfLegs(5) setPipeDiameters(pipeDiameters) pipe.setNumberOfNodesInLeg(40) pipe.setLegHeights(height) pipe.setLegPositions(length) pipe.setLegOuterTemperatures(outerTemperature) pipe.setPipeWallRoughness(pipeWallRoughness) return pipe