0% found this document useful (0 votes)
4 views

PipeFlowModuleUsersGuide

Uploaded by

gishfaq007
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

PipeFlowModuleUsersGuide

Uploaded by

gishfaq007
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 116

Pipe Flow Module

User’s Guide
Pipe Flow Module User’s Guide
© 1998–2022 COMSOL
Protected by patents listed on www.comsol.com/patents, or see Help>About COMSOL Multiphysics on the
File menu in the COMSOL Desktop for a less detailed lists of U.S. Patents that may apply. Patents pending.
This Documentation and the Programs described herein are furnished under the COMSOL Software License
Agreement (www.comsol.com/sla) and may be used or copied only under the terms of the license
agreement.
COMSOL, the COMSOL logo, COMSOL Multiphysics, COMSOL Desktop, COMSOL Compiler,
COMSOL Server, and LiveLink are either registered trademarks or trademarks of COMSOL AB. All other
trademarks are the property of their respective owners, and COMSOL AB and its subsidiaries and products
are not affiliated with, endorsed by, sponsored by, or supported by those trademark owners. For a list of such
trademark owners, see www.comsol.com/trademarks.
Version: COMSOL 6.1

Contact Information
Visit the Contact COMSOL page at www.comsol.com/contact to submit general inquiries
or search for an address and phone number. You can also visit the Worldwide Sales Offices
page at www.comsol.com/contact/offices for address and contact information.

If you need to contact Support, an online request form is located on the COMSOL Access
page at www.comsol.com/support/case. Other useful links include:

• Support Center: www.comsol.com/support


• Product Download: www.comsol.com/product-download
• Product Updates: www.comsol.com/support/updates
• COMSOL Blog: www.comsol.com/blogs
• Discussion Forum: www.comsol.com/forum
• Events: www.comsol.com/events
• COMSOL Video Gallery: www.comsol.com/videos
• Support Knowledge Base: www.comsol.com/support/knowledgebase

Part number: CM022801


C o n t e n t s

Chapter 1: Introduction

About the Pipe Flow Module 8


What Can the Pipe Flow Module Do? . . . . . . . . . . . . . . . 8
The Pipe Flow Module Physics Interface Guide . . . . . . . . . . . 9
Common Physics Interface and Feature Settings and Nodes . . . . . . 11
The Liquids and Gases Materials Database . . . . . . . . . . . . . 12
Where Do I Access the Documentation and Application Libraries? . . . . 12

Overview of the User’s Guide 16

Chapter 2: Fluid Flow Interfaces

Mechanisms for Modeling Fluid Flow 20


Coupling to Other Physics Interfaces . . . . . . . . . . . . . . . 20

The Pipe Flow Interface 21


Edge, Boundary, Point, and Pair Nodes for the Pipe Flow Interface . . . . 22
Fluid Properties . . . . . . . . . . . . . . . . . . . . . . . 23
Volume Force . . . . . . . . . . . . . . . . . . . . . . . . 25
Pipe Properties . . . . . . . . . . . . . . . . . . . . . . . 25
Phase Fractions . . . . . . . . . . . . . . . . . . . . . . . 27
Initial Values . . . . . . . . . . . . . . . . . . . . . . . . 27
Inlet. . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Outlet . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
No Flow . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Lossless Fitting . . . . . . . . . . . . . . . . . . . . . . . 30

CONTENTS |3
Pressure . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Bend . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Valve . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Contraction/Expansion . . . . . . . . . . . . . . . . . . . . 32
Pump . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
T-Junction . . . . . . . . . . . . . . . . . . . . . . . . . 34
Y-Junction . . . . . . . . . . . . . . . . . . . . . . . . . 36
n-Way Junction . . . . . . . . . . . . . . . . . . . . . . . 38
Internal Pressure Lock. . . . . . . . . . . . . . . . . . . . . 39
Pipe Flow Physics Feature Symbols . . . . . . . . . . . . . . . . 39

The Nonisothermal Pipe Flow Interface 40


Edge, Boundary, Point, and Pair Nodes for the Nonisothermal Pipe Flow
Interface. . . . . . . . . . . . . . . . . . . . . . . . . 41
Fluid . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Heat Transfer . . . . . . . . . . . . . . . . . . . . . . . . 43

The Water Hammer Interface 44


Edge, Boundary, Point, and Pair Nodes for the Water Hammer Interface . 46
Fluid Properties . . . . . . . . . . . . . . . . . . . . . . . 46
Pipe Properties . . . . . . . . . . . . . . . . . . . . . . . 47
Local Friction Loss . . . . . . . . . . . . . . . . . . . . . . 47
Closed. . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Velocity . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Pressure . . . . . . . . . . . . . . . . . . . . . . . . . . 48

Theory for the Pipe Flow Interface 49


Flow Equations . . . . . . . . . . . . . . . . . . . . . . . 49
Additional Flow Resistances. . . . . . . . . . . . . . . . . . . 58
References for the Pipe Flow Interface . . . . . . . . . . . . . . 62

CONTENTS |4
Theory for the Water Hammer Interface 65
Flow Equations . . . . . . . . . . . . . . . . . . . . . . . 65
Reference for the Water Hammer Interface . . . . . . . . . . . . 67

Chapter 3: Heat Transfer Interfaces

The Mechanisms for Heat Transfer 70

The Heat Transfer in Pipes Interface 71


Edge, Boundary, Point, and Pair Nodes for the Heat Transfer in
Pipes Interface . . . . . . . . . . . . . . . . . . . . . . 72
Heat Transfer . . . . . . . . . . . . . . . . . . . . . . . . 72
Heat Source . . . . . . . . . . . . . . . . . . . . . . . . 73
Wall Heat Transfer . . . . . . . . . . . . . . . . . . . . . . 74
Internal Film Resistance . . . . . . . . . . . . . . . . . . . . 75
External Film Resistance . . . . . . . . . . . . . . . . . . . . 75
Wall Layer . . . . . . . . . . . . . . . . . . . . . . . . . 77
Wall Heat Transfer, Inner . . . . . . . . . . . . . . . . . . . 78
Initial Values . . . . . . . . . . . . . . . . . . . . . . . . 78
Temperature . . . . . . . . . . . . . . . . . . . . . . . . 78
Heat Outflow . . . . . . . . . . . . . . . . . . . . . . . . 79

Theory for the Heat Transfer in Pipes Interface 80


The Heat Transfer Equation. . . . . . . . . . . . . . . . . . . 80
Reference for the Heat Transfer in Pipes Interface . . . . . . . . . . 87

Chapter 4: Chemical Species Transport Interfaces

The Transport of Diluted Species in Pipes Interface 90


Edge, Boundary, Point, and Pair Nodes for the Transport of Diluted
Species in Pipes Interface . . . . . . . . . . . . . . . . . . 91
Convection and Diffusion . . . . . . . . . . . . . . . . . . . 92
Initial Values . . . . . . . . . . . . . . . . . . . . . . . . 92
Reactions. . . . . . . . . . . . . . . . . . . . . . . . . . 93
Wall Mass Transfer . . . . . . . . . . . . . . . . . . . . . . 93

CONTENTS |5
Concentration . . . . . . . . . . . . . . . . . . . . . . . . 93
Mass Outflow . . . . . . . . . . . . . . . . . . . . . . . . 93

The Reacting Pipe Flow Interface 94


Edge, Boundary, Point, and Pair Nodes for the Reacting Pipe Flow
Interface. . . . . . . . . . . . . . . . . . . . . . . . . 95
Pipe Properties . . . . . . . . . . . . . . . . . . . . . . . 96
Initial Values . . . . . . . . . . . . . . . . . . . . . . . . 97
Fluid . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Fluid Properties . . . . . . . . . . . . . . . . . . . . . . . 98
Convection and Diffusion . . . . . . . . . . . . . . . . . . . 98

Theory for the Transport of Diluted Species in Pipes


Interface 100

Chapter 5: Acoustics Interfaces

Chapter 6: Pipe Mechanics

Chapter 7: Multiphysics Couplings

Coupling Features 108


Pipe Connection . . . . . . . . . . . . . . . . . . . . . . 108
Pipe Wall Heat Transfer . . . . . . . . . . . . . . . . . . . 109
Acoustic-Pipe Acoustic Connection . . . . . . . . . . . . . . . 110
Fluid-Pipe Interaction . . . . . . . . . . . . . . . . . . . . 110
Structure-Pipe Connection . . . . . . . . . . . . . . . . . . 110

6 | CONTENTS
1

Introduction

This guide describes the Pipe Flow Module, an optional add-on package for
COMSOL Multiphysics® designed to model and simulate incompressible and
weakly compressible flow, heat, and mass transfer in pipes and channels with the
Pipe Flow features. Compressible hydraulic transients and acoustics waves can also
be modeled using the Water Hammer features and Pipe Acoustics features,
respectively. To analyze the stresses and deformation in the pipes, the Pipe
Mechanics interface is available. The Pipe Flow Module can address problems
involving flow velocity, pressure, temperature, stresses, deformation and sound
waves in cooling systems, ventilation systems, pipe systems in the chemical
processing industry, and lines in the oil and gas industry.

This chapter introduces you to the capabilities of this module. A summary of the
physics interfaces and where you can find documentation and model examples is
also included. The last section is a brief overview with links to each chapter in this
guide.

7
About the Pipe Flow Module
What Can the Pipe Flow Module Do?
The Pipe Flow Module is intended for the modeling and simulation of flow of fluids
in the pipes and channel systems, as well as compressible hydraulic transients and
acoustics waves. Typical simulations yield the velocity, pressure variation, and
temperature in systems of pipes and channels. Hydraulic transients resulting from a
valve that is closed rapidly in a pipe network is referred to as water hammer, which can
be modeled too. This module has extra functionality for computing displacements,
rotations, stresses, and strains in the pipes. The module can be used to design and
optimize complex cooling systems in turbines, ventilation systems in buildings, pipe
systems in chemical processes, and lines in the oil and gas industry.

In common for pipes and channels that can be modeled using the Pipe Flow Module
is that the pipe length is large enough so that the flow inside can be considered fully
developed. Piping components such as bends, valves, T-junctions, contractions/
expansions, and pumps are also available in the module.

The Pipe Flow Module includes these physics interfaces:

• The Pipe Flow interface computes the pressure and velocity field in isothermal pipe
systems.
• The Heat Transfer in Pipes interface computes the energy balance in pipe systems
but receives the flow field as a value or as a known solved field. Wall heat transfer to
the surroundings is included.
• The Transport of Diluted Species in Pipes interface solves a mass balance equation
for pipes in order to compute the concentration distribution of a solute in a dilute
solution, considering diffusion, dispersion, convection, and chemical reactions.
• The Nonisothermal Pipe Flow interface is a multiphysics interface that solves the
flow, pressure, and temperature simultaneously and fully coupled.
• The Reacting Pipe Flow interface is a multiphysics interface that solves the flow,
pressure, temperature, and reacting species transport simultaneously and fully
coupled.
• The Water Hammer interface solves rapid hydraulic transients in pipe systems,
taking the elastic properties of both the fluid and pipe wall into account.

8 | CHAPTER 1: INTRODUCTION
• The Pipe Acoustics, Frequency Domain interface models sound waves in flexible
pipe systems, with the assumption of harmonic vibrations.
• The Pipe Acoustics, Transient interface models sound waves in flexible pipe systems
with arbitrary transient variations in pressure.

• The Pipe Mechanics interface analyzes the stresses and deformations in pipes.
• The Fluid-Pipe Interaction, Fixed Geometry interface can be used to model
problems where the forces from the fluid in a piping system act as structural loads.
The physics interfaces in the module define the conservation of momentum, energy,
and mass of a fluid inside a pipe or channel system. The flow, pressure, temperature,
and concentration fields across the pipe cross sections are modeled as cross-section
averaged quantities, which only vary along the length of the pipes and channels. The
pressure losses along the length of a pipe or in a pipe component are described using
friction factor expressions. A broad range of built-in expressions for Darcy friction
factors cover the entire flow regime from laminar to turbulent flow, Newtonian and
non-Newtonian fluids, different cross-sectional geometries, and a wide range of
relative surface roughness values. In addition to the continuous frictional pressure
drop along pipe stretches, pressure drops due to momentum changes in components
such as bends, contractions, expansions, T-junctions and valves are computed through
an extensive library of industry standard loss coefficients. Pumps are also available as
components.

Building a COMSOL Multiphysics Model in the COMSOL Multiphysics


Reference Manual

The Pipe Flow Module Physics Interface Guide


The Pipe Flow Module extends the functionality of the physics interfaces of the base
package for COMSOL Multiphysics. The details of the physics interfaces and study
types for the Pipe Flow Module are listed in the table. The functionality of the

ABOUT THE PIPE FLOW MODULE | 9


COMSOL Multiphysics base package is given in the COMSOL Multiphysics
Reference Manual.

In the COMSOL Multiphysics Reference Manual:

• Studies and Solvers


• The Physics Interfaces
• For a list of all the core physics interfaces included with a COMSOL
Multiphysics license, see Physics Interface Guide.

PHYSICS INTERFACE ICON TAG SPACE AVAILABLE STUDY TYPE


DIMENSION

Acoustics

Pipe Acoustics

Pipe Acoustics, pafd 3D, 2D eigenfrequency; frequency


Frequency Domain domain
Pipe Acoustics, patd 3D, 2D time dependent
Transient
Chemical Species Transport

Reacting Pipe Flow rpfl 3D, 2D stationary; time dependent

Transport of Diluted dsp 3D, 2D stationary; time dependent


Species in Pipes
Fluid Flow

Single-Phase Flow

Pipe Flow pfl 3D, 2D stationary; time dependent

Water Hammer whtd 3D, 2D time dependent

10 | CHAPTER 1: INTRODUCTION
PHYSICS INTERFACE ICON TAG SPACE AVAILABLE STUDY TYPE
DIMENSION

Nonisothermal Flow

Nonisothermal Pipe nipfl 3D, 2D stationary; time dependent


Flow
Fluid-Pipe Interaction, — 3D, 2D stationary; time dependent
Fixed Geometry
Heat Transfer

Heat Transfer in Pipes htp 3D, 2D stationary; time dependent

Structural Mechanics

Pipe Mechanics pipem 3D, 2D stationary; eigenfrequency;


time dependent, modal;
time dependent, modal
reduced-order model;
frequency domain;
frequency domain, modal;
frequency domain, modal
reduced-order model; time
dependent; response
spectrum; random
vibration (PSD)

Common Physics Interface and Feature Settings and Nodes


There are several common settings and sections available for the physics interfaces and
feature nodes. Some of these sections also have similar settings or are implemented in
the same way no matter the physics interface or feature being used. There are also some
physics feature nodes that display in COMSOL Multiphysics.

ABOUT THE PIPE FLOW MODULE | 11


In each module’s documentation, only unique or extra information is included;
standard information and procedures are centralized in the COMSOL Multiphysics
Reference Manual.

In the COMSOL Multiphysics Reference Manual see Table 2-4 for


links to common sections and Table 2-5 to common feature nodes.
You can also search for information: press F1 to open the Help
window or Ctrl+F1 to open the Documentation window.

The Liquids and Gases Materials Database


The Pipe Flow Module includes an additional Liquids and Gases material database with
temperature-dependent fluid dynamic and thermal properties.

For detailed information about materials and the Liquids and Gases
Materials Library, see Materials in the COMSOL Multiphysics Reference
Manual.

Where Do I Access the Documentation and Application Libraries?


A number of online resources have more information about COMSOL, including
licensing and technical information. The electronic documentation, topic-based (or
context-based) help, and the Application Libraries are all accessed through the
COMSOL Desktop.

If you are reading the documentation as a PDF file on your computer,


the blue links do not work to open an application or content
referenced in a different guide. However, if you are using the Help
system in COMSOL Multiphysics, these links work to open other
modules, application examples, and documentation sets.

THE DOCUMENTATION AND ONLINE HELP


The COMSOL Multiphysics Reference Manual describes the core physics interfaces
and functionality included with the COMSOL Multiphysics license. This book also has
instructions on how to use COMSOL Multiphysics and how to access the electronic
Documentation and Help content.

12 | CHAPTER 1: INTRODUCTION
Opening Topic-Based Help
The Help window is useful as it is connected to the features in the COMSOL Desktop.
To learn more about a node in the Model Builder, or a window on the Desktop, click
to highlight a node or window, then press F1 to open the Help window, which then
displays information about that feature (or click a node in the Model Builder followed
by the Help button ( ). This is called topic-based (or context) help.

To open the Help window:

• In the Model Builder, Application Builder, or Physics Builder, click a node


or window and then press F1.
• On any toolbar (for example, Home, Definitions, or Geometry), hover the
mouse over a button (for example, Add Physics or Build All) and then
press F1.
• From the File menu, click Help ( ).
• In the upper-right corner of the COMSOL Desktop, click the Help ( )
button.

To open the Help window:

• In the Model Builder or Physics Builder, click a node or window and then
press F1.
• On the main toolbar, click the Help ( ) button.
• From the main menu, select Help>Help.

Opening the Documentation Window

To open the Documentation window:

• Press Ctrl+F1.
• From the File menu, select Help>Documentation ( ).

ABOUT THE PIPE FLOW MODULE | 13


To open the Documentation window:

• Press Ctrl+F1.
• On the main toolbar, click the Documentation ( ) button.
• From the main menu, select Help>Documentation.

THE APPLICATION LIBRARIES WINDOW


Each model or application includes documentation with the theoretical background
and step-by-step instructions to create a model or application. The models and
applications are available in COMSOL Multiphysics as MPH-files that you can open
for further investigation. You can use the step-by-step instructions and the actual
models as templates for your own modeling. In most models, SI units are used to
describe the relevant properties, parameters, and dimensions, but other unit systems
are available.

Once the Application Libraries window is opened, you can search by name or browse
under a module folder name. Click to view a summary of the model or application and
its properties, including options to open it or its associated PDF document.

The Application Libraries Window in the COMSOL Multiphysics


Reference Manual.

Opening the Application Libraries Window


To open the Application Libraries window ( ):

From the File menu, select Application Libraries.

To include the latest versions of model examples, from the File>Help


menu, select ( ) Update COMSOL Application Library.

Select Application Libraries from the main File or Windows menus.

To include the latest versions of model examples, from the Help menu,
select ( ) Update COMSOL Application Library.

14 | CHAPTER 1: INTRODUCTION
CONTACTING COMSOL BY EMAIL
For general product information, contact COMSOL at [email protected].

COMSOL ACCESS AND TECHNICAL SUPPORT


To receive technical support from COMSOL for the COMSOL products, please
contact your local COMSOL representative or send your questions to
[email protected]. An automatic notification and a case number will be sent to you
by email. You can also access technical support, software updates, license information,
and other resources by registering for a COMSOL Access account.

COMSOL ONLINE RESOURCES

COMSOL website www.comsol.com


Contact COMSOL www.comsol.com/contact
COMSOL Access www.comsol.com/access
Support Center www.comsol.com/support
Product Download www.comsol.com/product-download
Product Updates www.comsol.com/support/updates
COMSOL Blog www.comsol.com/blogs
Discussion Forum www.comsol.com/forum
Events www.comsol.com/events
COMSOL Application Gallery www.comsol.com/models
COMSOL Video Gallery www.comsol.com/video
Support Knowledge Base www.comsol.com/support/knowledgebase

ABOUT THE PIPE FLOW MODULE | 15


Overview of the User’s Guide
The Pipe Flow Module User’s Guide gets you started with modeling using COMSOL
Multiphysics. The information in this guide is specific to this module. Instructions how
to use COMSOL in general are included with the COMSOL Multiphysics Reference
Manual.

As detailed in the section Where Do I Access the Documentation and


Application Libraries? this information can also be searched from the
COMSOL Multiphysics software Help menu.

TABLE OF CONTENTS AND INDEX


To help you navigate through this guide, see the Contents and Index.

THE FLUID FLOW BRANCH


The Fluid Flow Interfaces chapter describes the Pipe Flow interface and the
Nonisothermal Pipe Flow interface including the underlying theory for these physics
interfaces.

THE HEAT TRANSFER BRANCH


The Heat Transfer Interfaces chapter describes the Heat Transfer in Pipes interface and
the underlying theory for the physics interface.

THE CHEMICAL SPECIES TRANSPORT BRANCH


The Chemical Species Transport Interfaces chapter describes the Transport of Diluted
Species in Pipes and the Reacting Pipe Flow interfaces and the underlying theory.

THE ACOUSTICS BRANCH


The Acoustics Interfaces chapter describes the Pipe Acoustics, Transient interface and
its theory.

THE STRUCTURAL MECHANICS BRANCH


The Pipe Mechanics chapter describes the Pipe Mechanics interface.

16 | CHAPTER 1: INTRODUCTION
THE MULTIPHYSICS COUPLINGS
The Multiphysics Couplings chapter describes the multiphysics couplings available
with the Pipe Flow Module. These are the built-in conditions that couple physics
together.

OVERVIEW OF THE USER’S GUIDE | 17


18 | CHAPTER 1: INTRODUCTION
2

Fluid Flow Interfaces

This chapter has information about the physics interfaces in the Pipe Flow Module
found under the Fluid Flow branch ( ).

• Mechanisms for Modeling Fluid Flow


• The Pipe Flow Interface
• The Nonisothermal Pipe Flow Interface
• The Water Hammer Interface
• Theory for the Pipe Flow Interface
• Theory for the Water Hammer Interface

See The Single-Phase Flow, Laminar Flow Interface in the COMSOL Multiphysics
Reference Manual for other Fluid Flow interface and feature node settings.

19
Mechanisms for Modeling Fluid Flow
The Fluid Flow branch ( )has a number of subbranches to describe momentum
transport. The main focus of this physics area is to model fluids transported in pipe
networks in 2D and 3D space, calculating velocity, flow rate, and pressure drops. Pipe
flow including heat and mass transfer can also be modeled.

The Pipe Flow Interface ( ), found under the Single-Phase Flow branch ( ) when
adding a physics interface, is used to model incompressible and weakly compressible
fluid flow in piping systems. The equations that are solved are 1D equations that live
on 2D boundary segments or 3D edge segments.

The Nonisothermal Pipe Flow Interface ( ), found under the Nonisothermal Flow
branch ( ) when adding a physics interface, solves a temperature equation together
with the equations for compressible flow.

The Water Hammer Interface ( ), found under the Fluid Flow>Single-Phase Flow
branch ( ) when adding a physics interface, has the equations and boundary
conditions for modeling rapid pressure transients in a pipe systems.

Coupling to Other Physics Interfaces


It is often be relevant to couple flow and transport in pipes or pipe networks to physical
processes occurring outside the pipe network itself. For instance, liquid can be injected
into the surrounding by means of perforated pipes. The Pipe Flow interface can
calculate flow rates and pressure drops in a 1D representation in the injection system.
The equations can then be coupled to a Fluid Flow interface describing fluid flow in
2D or 3D geometries. Another important coupling that is prepared in the Pipe Flow
module is the Wall Heat Transfer multiphysics coupling that couples the temperature
in a pipe to the temperature in a 3D surrounding.

More advanced descriptions 2D and 3D continuum fluid flow, such as turbulent and
multiphase flow, can be found in the CFD Module. More extensive descriptions of heat
transfer, such as in turbulent flow or involving radiation, can be found in the Heat
Transfer Module. Furthermore, some applications involving the flow of liquids and
gases in porous media are better handled by the Chemical Reaction Engineering
Module.

20 | CHAPTER 2: FLUID FLOW INTERFACES


The Pipe Flow Interface
The Pipe Flow (pfl) interface ( ), found under the Single-Phase Flow branch ( )
when adding a physics interface, is used to compute the velocity and pressure fields in
pipes and channels of different shapes. It approximates the pipe flow profiles flow by
1D assumptions in curve segments, or lines. These lines can be drawn in 2D or 3D and
represent simplifications of hollow tubes. The interface is available in 3D on edges, and
in 2D on boundaries.

When this physics interface is added, these default nodes are also added to the Model
Builder — Fluid Properties, Pipe Properties, Pressure, Lossless Fitting and Initial Values.
Then, from the Physics toolbar, add other nodes that implement, for example,
boundary conditions and volume forces. You can also right-click Pipe Flow to select
physics features from the context menu.

SETTINGS
The Label is the default physics interface name.

The Name is used primarily as a scope prefix for variables defined by the physics
interface. Refer to such physics interface variables in expressions using the pattern
<name>.<variable_name>. In order to distinguish between variables belonging to
different physics interfaces, the name string must be unique. Only letters, numbers, and
underscores (_) are permitted in the Name field. The first character must be a letter.

The default Name (for the first physics interface in the model) is pfl.

PHYSICS SYMBOLS
Select the Enable physics symbols check box to enable the display of physics symbols.
See Pipe Flow Physics Feature Symbols for information about available physics
symbols.

Under Show or hide all physics symbols, click the Select All button, which displays all
symbols in that physics interface by selecting all Show physics symbols check boxes in
the Settings windows for the physics features that include symbols. Similarly, the Clear
All button clears all Show physics symbols check boxes in the individual physics features.

FLUID MODEL
Select a Fluid model — Newtonian (the default), Power Law, Bingham, or Herschel-Bulkley.

THE PIPE FLOW INTERFACE | 21


For Newtonian select Single phase (the default), Gas-Liquid, friction factor multiplier, or
Gas-Liquid, effective Reynolds number.

When Gas-Liquid, friction factor multiplier or Gas-Liquid, effective Reynolds number are
selected, the Phase Fractions node is automatically added as a default node. Selecting
these options also enables the choice of Liquid material and Gas material for the Fluid
Properties node.

For more information about the fluid models, see the section Theory for the Pipe Flow
Interface.

DEPENDENT VARIABLES
This section defines the dependent variables (fields). If required, edit the name, but
dependent variables must be unique within a model:

• Pressure p (SI unit: Pa)


• Tangential velocity u (SI unit: m/s)

DISCRETIZATION
The default discretization for Pipe Flow interface is Linear — that is, piecewise linear
interpolation for tangential velocity and pressure.

FURTHER READING

• For an explanation of the tangential velocity, see Theory for the Pipe
Flow Interface.
• Edge, Boundary, Point, and Pair Nodes for the Pipe Flow Interface
• Theory for the Pipe Flow Interface

• Discharging Tank: Application Library path Pipe_Flow_Module/


Tutorials/discharging_tank
• Convective Flow in a Heat Exchanger Plate: Application Library path
Pipe_Flow_Module/Tutorials/heat_exchanger_plate

Edge, Boundary, Point, and Pair Nodes for the Pipe Flow Interface
The Pipe Flow Interface has these boundary, edge, point, and pair nodes, listed in
alphabetical order, available from the Physics ribbon toolbar (Windows users), Physics

22 | CHAPTER 2: FLUID FLOW INTERFACES


context menu (Mac or Linux users), or right-click to access the context menu (all
users).

In general, to add a node, go to the Physics toolbar, no matter what


operating system you are using. Subnodes are available by clicking the
parent node and selecting it from the Attributes menu.

• Bend • The Nonisothermal Pipe Flow


• Contraction/Expansion Interface

• Fluid Properties • Pipe Properties

• Initial Values • Pressure

• Inlet • Pump

• Internal Pressure Lock • T-Junction

• No Flow • Valve

• n-Way Junction • Volume Force

• Outlet • Y-Junction

• Phase Fractions • Lossless Fitting

In the COMSOL Multiphysics Reference Manual see Table 2-4 for links
to common sections and Table 2-5 to common feature nodes. You can
also search for information: press F1 to open the Help window or Ctrl+F1
to open the Documentation window.

Fluid Properties
The Fluid Properties node is always present and adds the momentum and mass balance
equations solved by the physics interface. If volume forces are needed in the model,
they should be added by a Volume Force node. The node also provides settings for
defining the material properties of the fluid. If a Liquid-Gas option is selected in the
Pipe Flow node settings, properties for both liquid and gas can be entered here.

FLUID PROPERTIES
This subsection displays when Newtonian>Single phase is selected as the Fluid model for
the Pipe Flow interface.

THE PIPE FLOW INTERFACE | 23


The default Density ρ (SI unit: kg/m3) uses the value From material. For User defined
enter a different value or expression.

The default Dynamic viscosity μ (SI unit: Pa·s) uses the value From material and
describes the relationship between the shear rate and shear stresses in a fluid.
Intuitively, water and air have a low viscosity, and substances often described as thick
(such as oil) have a higher viscosity.

LIQUID PROPERTIES
This section displays when Newtonian is selected as the Fluid model for the Pipe Flow
interface and then Gas-Liquid, friction factor multiplier or Gas-Liquid, effective Reynolds
number are also chosen.

Select the Liquid material — Edge material (3D components) or Boundary material (2D
components). If you have more than one material added to the model, you can toggle
this setting between the different designated materials.

The default Density ρL (SI unit: kg/m3) uses the value From material. You can change
this to User defined to enter a different value or expression.

The default Dynamic viscosity μL (SI unit: Pa·s) uses the value From material and
describes the relationship between the shear rate and shear stresses in a fluid.
Intuitively, water and air have a low viscosity, and substances often described as thick
(such as oil) have a higher viscosity.

GAS PROPERTIES
This section displays when Newtonian is selected as the Fluid model for the Pipe Flow
interface and then Gas-Liquid, friction factor multiplier or Gas-Liquid, effective Reynolds
number are also chosen.

Select the Gas material — Edge material (3D components) or Boundary material (2D
components). If you have more than one material added to the model, you can toggle
this setting between the different designated materials.

The default Density ρG (SI unit: kg/m3) uses the value From material. For User defined
enter a different value or expression.

The default Dynamic viscosity μG (SI unit: Pa·s) uses the value From material and
describes the relationship between the shear rate and shear stresses in a fluid.

24 | CHAPTER 2: FLUID FLOW INTERFACES


MIXTURE VISCOSITY MODEL
This section displays only when Newtonian is selected as the Fluid model for the Pipe
Flow interface and the Gas-Liquid, effective Reynolds number is also chosen.

The default is the Extended Einstein which is considered the most accurate method for
a large range of gas fractions. The list of options include

• Extended Einstein (default)


• Linear average
• Reciprocal average
• Liquid viscosity
• User defined

For details, please refer to the theory section Newtonian Fluids.

Volume Force
The Volume Force node specifies the volume force F on the right-hand side of the flow
equation. Use it, for example, to incorporate the effects of gravity in a model.

If several volume force nodes are added to the same domain, then the sum of all
contributions are added to the momentum equations.

VOLUME FORCE
Enter the components of the Volume force F (SI unit: N/m3).

Pipe Properties
The Pipe Properties node is used to define the pipe shape, flow resistance, and surface
roughness.

THE PIPE FLOW INTERFACE | 25


PIPE SHAPE
Select a pipe shape from the list — Not set (the default), Circular, Square, Rectangular,
Concentric circular annular, or User defined.

• For Circular enter a value or expression for the Inner diameter di (SI unit: m). The
default is 10 cm.
• For Square enter a value or expression for the Inner width wi (SI unit: m). The
default is 5 cm.
• For Rectangular enter a value or expression for the Inner width wi (SI unit: m. The
default is 5 cm) and Inner height hi (SI unit: m. The default is 10 cm).
• For Concentric circular annular enter a value or expression for the Inner diameter,
outer pipe di,outer (SI unit: m. The default is 10 cm) and Outer diameter, inner pipe
do, inner(SI unit: m. The default is 0 cm).
• For User defined enter a value or expression for the Cross-sectional area Ac (SI unit:
m2). The default is 0.01 m2. Enter the Wetted perimeter Z (SI unit: m). The default
is 0.4 m.

FLOW RESISTANCE
Select a Friction model.

Newtonian Fluids
Select Churchill (the default), Stokes, Wood, Haaland, Colebrook, Von Karman,
Swamee-Jain, or User defined.

• For Churchill, Wood, Haaland, Von Karman, or Swamee-Jain go to the Surface


Roughness section to select from a list of predefined values. Alternatively, enter
values or expressions.
• For User defined enter a value or expression for the Darcy friction factor fD
(dimensionless).

Non-Newtonian Fluids
For Non-Newtonian fluids in tubes of circular cross section the following friction
models are available:

For Power-law fluids, the Irvine, Stokes, and User defined options are available.

For Bingham fluids, the Darby, and User defined options are available.

For Herschel–Bulkley fluids, the Swamee-Aggarwal, and User defined options are
available.

26 | CHAPTER 2: FLUID FLOW INTERFACES


For Non-Newtonian fluids in tubes of non-circular cross section, enter a value or
expression for the Darcy friction factor fD(dimensionless).

For more information about the friction models, see Expressions for the Darcy Friction
Factor.

SURFACE ROUGHNESS
This section is available if Churchill, Wood, Haaland, Von Karman, or Swamee-Jain is
selected as the Friction model.

Select a Surface roughness from the list — Smooth (0 mm), Drawn tubing (0.0015 mm)
(the default), Glass (0.0015 mm), Thermoplastics (0.0015 mm), Commercial steel (0.046
mm), Wrought iron (0.046 mm), Steel welded seamless (0.061 mm), Asphalted cast iron
(0.12 mm), Galvanized iron (0.15 mm), Cast iron (0.26 mm), Wood stave (0.5 mm), Copper
and brass (0.61 mm), Concrete (1.5 mm), Riveted steel (4.5 mm), or User defined.

For User defined enter a value or expression for the Roughness (SI unit: m).

Phase Fractions
This node is available when Newtonian is selected as the Fluid model for the Pipe Flow
interface and then Gas-Liquid, friction factor multiplier or Gas-Liquid, effective Reynolds
number are also chosen.

Use the Phase Fractions node to define the gas fraction as area averaged void fraction
or a quality mass fraction.

GAS FRACTION
Select a Gas fraction specification — Area averaged void fraction (volume fraction) or
Quality (mass fraction).

• For Area averaged void fraction (volume fraction) enter an Area averaged void fraction
φG (dimensionless). The default is 0.
• For Quality (mass fraction) enter a Quality ωG (dimensionless). The default is 0.

Initial Values
The Initial Values node adds initial values for the pressure and tangential velocity that
can serve as an initial condition for a transient simulation or as an initial guess for a
nonlinear solver.

THE PIPE FLOW INTERFACE | 27


INITIAL VALUES
Enter values or expressions for the initial value of the Pressure p (SI unit: Pa) and the
Tangential Velocity u (SI unit: m/s).

Inlet
Use the Inlet node to set the velocity, volumetric flow rate, or mass flow rate inlet
conditions that describe the fluid flow condition at an inlet.

In most cases the inlet boundary conditions appear, some of them slightly
modified, in the Outlet type as well. This means that there is nothing in
the mathematical formulations to prevent a fluid from leaving the domain
through boundaries where the Inlet type is specified.

INLET SPECIFICATION
Select a Specification for the inlet — Mass flow rate (the default), Velocity, Volumetric
flow rate. Additionally, Pump and Reservoir options are available for the Pipe Flow
interface.

• For Mass flow rate, enter a value or expression for the Mass flow rate qm,0 (SI unit:
kg/s). The default is 0 kg/s.
• For Velocity, enter a value or expression for the Velocity u0 (SI unit: m/s). The
default is 0 m/s.
• For Volumetric flow rate, enter a value or expression for the Volumetric flow rate qv,0
(SI unit: m3/s). The default is 0 m3/s.
• For Standard flow, SCCM, enter a value for standard cubic centimeters per minute.
The standard pressure and standard temperature as well as mean molar mass are
required as inputs as well. A standard cubic centimeter of gas is the amount of
molecules occupying a cubic centimeter at a specified standard temperature and
pressure, calculated by the ideal gas law. When used in the oil and gas industry, the
standard is often 15 degrees C and 100 kPa, but there are many other slightly
different standard conditions used in other circumstances. The inlet velocity
calculation is done according to

28 | CHAPTER 2: FLUID FLOW INTERFACES


–6
10 p 0 M
u = ----------------------------- ⋅ Q SCCM
60T 0 AρR u

• For Pump, enter a value for the External pressure pext (SI unit: Pa) and define the
relationship between the head and the volumetric flow rate— Pump curve data, or
User defined.

Pump Curve Data


When Pump curve data is selected as the Pump curve, a table appears, in which the
values of the Flow rate and the Head can be either specified or imported from a text file
by clicking the Load from file button ( ) under the table. The interpolation between
points given in the table is defined using the Interpolation function type list in the Pump
Curve Interpolation section. Units can be specified for the Flow rate and the Head in the
Units section.

User Defined
With the User defined option, an expression for the Pump curve can be specified. The
flow rate across the point where this boundary condition is applied is defined by
phys_id.V0 where phys_id is the name (by default for pipe flow, phys_id is pfl).
In order to avoid unexpected behavior, the function used for the pump curve returns
the maximum of the user-defined function and 0.

• For Reservoir, enter values for reservoir density and pressure. Select a Entrance type
— Projecting (K = 1) (the default), Sharp edged (K = 0.5), Rounded (K = 0.05), or User-
defined loss coefficient.

Outlet
Use the Outlet node to set the velocity, volumetric flow rate, or mass flow rate point
conditions that describe the fluid flow condition at an outlet.

See Inlet for all settings.

THE PIPE FLOW INTERFACE | 29


All of the formulations for the Outlet type are also available, possibly
slightly modified, in other boundary types as well. This means that there
is nothing in the mathematical formulations to prevent a fluid from
entering the domain through boundaries where the Outlet boundary type
is specified.

No Flow
Use the No Flow node to define plugged exits or inlets (no flow).

Lossless Fitting
The Lossless Fitting node models junctions without losses. It is a default feature,
imposed at all junction points, that will be overridden by subsequent Bend, Valve,
Contraction/Expansion, Pump, T-junction, Y-junction, and n-way junction nodes
applied at overlapping points.

Pressure
Use the Pressure node to define the boundary pressure at points. The pressure
condition can only be applied to a point which is connected to exactly one edge (inlet
or outlet of a system).

BOUNDARY PRESSURE
Enter a value or expression for the Pressure p0 (SI unit: Pa). The default is 101325 Pa.

CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options.

30 | CHAPTER 2: FLUID FLOW INTERFACES


Bend
Use the Bend node to introduce additional pressure losses due to irreversible turbulent
friction in a point associated with a bend in the pipe system.

The Bend can only be applied to a point which is connected to exactly two
edges.

BEND SPECIFICATION
Select a Bend — 90 degrees standard elbow (K = 0.9) (the default), 45 degrees standard
elbow (K = 0.5), or User-defined loss coefficient. For User-defined loss coefficient enter a
Loss coefficient Kf (dimensionless).

CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options.

Valve
Use the Valve node to introduce additional pressure losses due to irreversible turbulent
friction in a point associated with the position of a valve in the pipe system. Select a
predefined valve type or provide a user-defined loss coefficient.

The Valve can only be applied to a point which is connected to exactly two
edges.

VALVE SPECIFICATION
Select a Valve — Globe valve (K = 10) (the default), Angle valve (K = 4.4), Gate valve (K
= 0.2), Ball valve (K = 4.5), Butterfly valve (K = 0.6), Swing check (K = 2.5), or

THE PIPE FLOW INTERFACE | 31


User-defined loss coefficient. For User-defined loss coefficient enter a Loss coefficient Kf
(dimensionless).

CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options.

Contraction/Expansion
Use the Contraction/Expansion node to introduce additional pressure losses due to
irreversible turbulent friction in a point associated with the position of a contraction or
expansion in the pipe system.

The Contraction/Expansion can only be applied to a point which is


connected to exactly two pipe segments.

CONTRACTION SPECIFICATION
Select an option from the Friction list — Sudden (the default), Gradual, or User-defined
loss coefficient.

• For Gradual, enter an Angle of convergence α (SI unit: radians). The default is
0 radians.
• For User-defined loss coefficient, enter a Loss coefficient Kf (dimensionless). The
default is 0.

CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options.

32 | CHAPTER 2: FLUID FLOW INTERFACES


Pump
Use the Pump node to introduce a pressure jump in a point associated with the position
of a pump in the pipe system. Alternatively, specify a fixed mass flow rate for the pump.

The Pump can only be applied to a point which is connected to exactly


two edges.

PUMP SPECIFICATION
Select a Pump direction (available options are based on space dimension) — Positive X
direction (the default), Negative X direction, Positive Y direction, Negative Y direction,
Positive Z direction, or Negative Z direction. The pressure is increases in the direction
specified in the Pump direction.

Select an option from the Type list — Fixed flow rate (the default), Downstream
pressure, Pressure increase, and Pump curve.

• For Fixed flow rate, enter a value or expression for the Mass flow rate mpump (SI unit:
kg/s). The default is 0 kg/s.
• For Downstream pressure, enter a value or expression for the Pressure pdown (SI unit:
Pa). The default is 101 325 Pa.
• For Pressure increase, enter a value or expression for the Pressure increase Δp (SI
unit: Pa). The default is 0 Pa.
• Pump curve specifies an relationship between the head and the volumetric flow rate
— Pump curve data, or User defined.

Pump Curve Data


When Pump curve data is selected as the Pump curve, a table appears, where values of
the Flow rate and the Head can be specified or imported from a text file by clicking the
Load from file button ( ) under the table. The interpolation between points given in
the table is defined using the Interpolation function type list in the Pump Curve
Interpolation section. Units can be specified for the Flow rate and the Head in the Units
section.

THE PIPE FLOW INTERFACE | 33


User Defined
With the User defined option, an expression for the Pump curve can be specified. The
flow rate across the point where this boundary condition is applied is defined by
phys_id.V0 where phys_id is the name (by default for pipe flow, phys_id is pfl).
In order to avoid unexpected behavior, the function used for the pump curve returns
the maximum of the user-defined function and 0.

T-Junction
Use the T-Junction node to specify additional energy losses due to irreversible turbulent
friction in a T-junction, which can act as a split or a merger.

SELECTION SETTINGS

Figure 2-1: A T-junction with local pressure indications.

The T-junction is intended for a point that is connected to exactly two


collinear main branches and one perpendicular side branch. If this
condition is not met, a warning message will be issued when solving. The
flow can go in either direction through each of the main branches and the
side branch. See Figure 2-1.

The automatic search for T-junction points is possible. If you want to use this option,
clear the Manual control of selections check box, the selections will be replaced by the
automatic ones. If you want to modify the selection, select Manual control of selections
again.

FRICTION SPECIFICATION
Several options to specify pressure drop across the junction branches are available.

• The Loss coefficients option allows you to enter a value or expression for the Loss
coefficient main branch Kmain for the energy loss between main branch and junction
(the default is 0.1) and the Loss coefficient side branch Kside for the energy loss

34 | CHAPTER 2: FLUID FLOW INTERFACES


between the side branch and junction (the default is 1.2). Both are dimensionless
numbers. See Figure 2-1.
• The Loss coefficient with respect to common branch option is available for the Pipe
Flow interface. The loss coefficients are calculated automatically. The pressure loss
between the branches is expressed in terms of the flow variables in the common
branch. For joining flows, the common branch is the collector branch. For
separating flow, the common branch is the supplier branch.
• The Loss coefficients, extended model option is available for the Pipe Flow interface.
This option allows you to specify the loss coefficient in more details and account for
the flow directions. Enter values or expressions for the six dimensionless loss
coefficients. See Figure 2-2-Figure 2-3.

Figure 2-2: T-junction, converging flow.

Figure 2-3: T-junction, diverging flow.

• For details about pressure loss calculation, see T-junctions in Theory


for the Pipe Flow Interface.

• Use the Pressure drops option to specify a value or expression for the pressure drop
explicitly for each branch respectively:

Δp 1, s = p main, 1 – p side

Δp 2, s = p main, 2 – p side

Main 1 is the main pipe segment that has the lower index of the two in the selection
list (for example, see the list in Pipe Properties).

THE PIPE FLOW INTERFACE | 35


ADVANCED SETTINGS
The angle tolerance is used to specify the tolerance to a geometry not being a perfect
T. Increase the tolerance if you get an error message but accept the geometry even if
does not fulfill the requirements for an Y-shape.

CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options.

Y-Junction
Use this feature to specify additional losses due to irreversible turbulent friction in a
Y-junction, which can act as a split or a merger. The pressure drop is calculated
according to

1 2
Δp = --- K f ρu ,
2

where Kf is a loss factor. Alternately, specify the pressure drop as a user-defined


expression.

Figure 2-4: A Y-junction with local pressure indications.

The Y-junction can only be applied to a point that is connected to exactly


two side branches and one main branch. The angle between each of the
side branches and main must be equal, and must not be 120 degrees. See
Figure 2-4. If these conditions are not met, use an n-way junction. The
flow can go in either direction through each of the main branches and the
side branch.

The automatic search for Y-junction points is possible. If you want to use this option,
clear the Manual control of selections check box, the selections will be replaced by the

36 | CHAPTER 2: FLUID FLOW INTERFACES


automatic ones. If you want to modify the selection, select Manual control of selections
again.

FRICTION SPECIFICATION
The Loss coefficients options allows you to enter a value or expression for the Loss
coefficient main branch Kside for the energy loss between side and junction and the Loss
coefficient side branch Kmain for the energy loss between the main branch and junction
(the default is 1.2). Both are dimensionless numbers. See Figure 2-4. The respective
pressure losses are calculated as

1 2 1 2
p side, 1 + --- ρ side, 1 u side, 1 – p junction = --- K f, side ρ side, 1 u side, 1
2 2

1 2 1 2
p side, 2 + --- ρ side, 2 u side, 2 – p junction = --- K f, side ρ side, 2 u side, 2
2 2

1 2 1 2
p main + --- ρ main u main – p junction = --- K f, main ρ main u main .
2 2

For Nonisothermal Pipe Flow and Reacting Pipe Flow interface interfaces, the
respective pressure drops are calculated as

1 2
p side, 1 – p junction = --- K f, side ρu side, 1
2

1 2
p side, 2 – p junction = --- K f, side u side, 2
2

1 2
p main – p junction = --- K f, main ρu main .
2

The advantage of using loss coefficients is that they are readily available in engineering
tables and textbooks.

Use the Pressure drops option to specify a value or expression for the pressure drop
explicitly for each branch respectively:

Δp 1, m = p main – p side, 1

Δp 2, m = p main – p side, 2

Side 1 is the main pipe segment that has the lower index of the two in the selection list
(for example, see the list in Pipe Properties).

THE PIPE FLOW INTERFACE | 37


ADVANCED SETTINGS
The angle tolerance is used to specify the tolerance to a geometry not being a perfect
Y. Increase the tolerance if you get an error message but accept the geometry even if
does not fulfill the requirements for an Y-shape.

CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options.

n-Way Junction
Use the n-Way Junction feature to specify additional pressure losses due to irreversible
turbulent friction in an n-way junction that does not fall into the categories Y- or
T-junctions. The number of pipe connections to a point can be any number, and the
angles between the connection pipes arbitrary.

Figure 2-5: An n-Way Junction with local pressure indications.

FRICTION SPECIFICATION
The Loss coefficients options allows you to enter a value or expression for the Loss
coefficient main branch Kbranch for the energy loss between branch and junction.

The pressure loss is calculated as

1 2 1 2
p branch, i + --- ρ branch, i u branch, i – p junction = --- K branch ρ branch, i u branch, i
2 2

For Nonisothermal Pipe Flow and Reacting Pipe Flow interfaces, the pressure drop is
calculated as

1 2
p branch, i – p junction = --- K branch ρu branch, i .
2

38 | CHAPTER 2: FLUID FLOW INTERFACES


Internal Pressure Lock
Use the Internal Pressure Lock node to specify the pressure at a point. The Internal
Pressure Lock condition can only be applied to a point which connects exactly two
edges.

Pipe Flow Physics Feature Symbols


For pipe flow interface, the physics symbols are available for internal points boundary
conditions. To display the boundary condition symbols listed in Table 2-1, enable the
Show physics symbols in the Physics Symbols section in the Settings window for the
main Pipe Flow node. The check box is not selected by default.

These symbols are available with the applicable pipe flow feature nodes in the Pipe
Flow interface are reproduced in the table below:
TABLE 2-1: PIPE FLOW BOUNDARY CONDITION PHYSICS SYMBOLS

SYMBOL SYMBOL NAME DISPLAYED BY NODE

Bend Bend

Valve Valve

Pump Pump

Contraction/Expansion Contraction/Expansion

T-Junction T-Junction

Y-Junction Y-Junction

n-Way Junction n-Way Junction

THE PIPE FLOW INTERFACE | 39


The Nonisothermal Pipe Flow
Interface
The Nonisothermal Pipe Flow (nipfl) interface ( ), found under the Nonisothermal
Flow branch ( ) when adding a physics interface, is used to compute the
temperature, velocity, and pressure fields in pipes and channels of different shapes. It
approximates the pipe flow profile by 1D assumptions in curve segments, or lines.
These lines can be drawn in 2D or 3D and represent simplifications of hollow tubes.
The physics interface is available in 3D on edges and 2D on boundaries.

When this physics interface is added, these default nodes are also added to the Model
Builder — Fluid, Pipe Properties, Pressure, Temperature, and Initial Values. Then, from
the Physics toolbar, add other nodes that implement, for example, boundary
conditions and volume forces. You can also right-click Nonisothermal Pipe Flow to select
physics features from the context menu.

SETTINGS
The Label is the default physics interface name.

The Name is used primarily as a scope prefix for variables defined by the physics
interface. Refer to such physics interface variables in expressions using the pattern
<name>.<variable_name>. In order to distinguish between variables belonging to
different physics interfaces, the name string must be unique. Only letters, numbers, and
underscores (_) are permitted in the Name field. The first character must be a letter.

The default Name (for the first physics interface in the model) is nipfl.

FLUID MODEL
Select a Fluid model — Newtonian (the default), Power law, or Bingham.

DEPENDENT VARIABLES
This physics interface defines these dependent variables (fields). If required, edit the
name, but dependent variables must be unique within a model:

• Pressure p (SI unit: Pa)


• Tangential velocity u (SI unit: m/s)
• Temperature T (SI unit: K)

40 | CHAPTER 2: FLUID FLOW INTERFACES


FURTHER READING

• For an explanation of the tangential velocity, see Theory for the Pipe
Flow Interface.
• Edge, Boundary, Point, and Pair Nodes for the Nonisothermal Pipe
Flow Interface
• Theory for the Heat Transfer in Pipes Interface

Insulation of a Pipeline Section: Application Library path


Pipe_Flow_Module/Heat_Transfer/pipeline_insulation

Edge, Boundary, Point, and Pair Nodes for the Nonisothermal Pipe
Flow Interface
Because The Nonisothermal Pipe Flow Interface is a multiphysics interface it shares
many nodes with other physics interfaces. These boundary, edge, point, and pair nodes
are available as indicated (and listed in alphabetical order).

Described in this section:

• Fluid
• Heat Transfer
These nodes are described for the Reacting Pipe Flow interface:

• Fluid Properties
• Pipe Properties

These nodes are described for the Heat Transfer in Pipes interface:

• External Film Resistance


• Internal Film Resistance
• Wall Heat Transfer
• Wall Layer

These nodes are described for the Heat Transfer interface in the COMSOL
Multiphysics Reference Manual:

THE NONISOTHERMAL PIPE FLOW INTERFACE | 41


• Heat Source
• Outflow
• Temperature

These nodes are described for the Pipe Flow interface (listed in alphabetical order):

• Bend • The Nonisothermal Pipe Flow


• Contraction/Expansion Interface

• Inlet • Pressure

• No Flow • Pump

• n-Way Junction • T-Junction

• Outlet • Valve

• Phase Fractions • Volume Force


• Y-Junction

In the COMSOL Multiphysics Reference Manual see Table 2-4 for links
to common sections and Table 2-5 to common feature nodes. You can
also search for information: press F1 to open the Help window or Ctrl+F1
to open the Documentation window.

Fluid
Use the Fluid node to define the density, dynamic viscosity, and heat convection and
conduction properties.

PRESSURE WORK
The Pressure Work section has an Include pressure work check box where a pressure
work term can be activated. When checked a contribution to the right-hand side of the
Heat Transfer in Pipes equation is added.

This term can be important to activate if the pressure drop is expected to be


considerable and the fluid is compressible. The pressure-volume work is added to the
energy balance.

For more information, see the section Theory for the Heat Transfer in Pipes Interface.

42 | CHAPTER 2: FLUID FLOW INTERFACES


FLUID PROPERTIES
The default Density ρ and Dynamic viscosity is specified here.

HEAT CONVECTION AND CONDUCTION


The default Heat capacity at constant pressure Cp (SI unit: J/(kg·K)), Ratio of specific
heats γ (dimensionless), and Thermal conductivity k (SI unit: W/(m·K)) all use values
From material. For User defined enter different values or expressions.

Heat Transfer
Use the Heat Transfer node to define the density, yield stress, plastic viscosity, and heat
convection and conduction properties.

FLUID PROPERTIES
The default Density ρ (SI unit: kg/m3) is User defined and is 1·103 kg/m3.

Enter a value or expression for the Yield stress τs (SI unit: Pa) and Plastic viscosity μs
(SI unit: Pa·s). The defaults are 0 Pa and 0 Pa·s, respectively.

HEAT CONVECTION AND CONDUCTION


The default Heat capacity at constant pressure Cp (SI unit: J/(kg·K)), Ratio of specific
heats γ (dimensionless), and Thermal conductivity k (SI unit: W/(m·K)) all use values
From material. For User defined enter different values or expressions.

THE NONISOTHERMAL PIPE FLOW INTERFACE | 43


T he W a t e r H ammer In t erfac e
The Water Hammer (whtd) interface ( ), found under the Fluid Flow>Single-Phase
Flow branch ( ) when adding a physics interface, is used to compute the velocity and
pressure fields for propagation of a hydraulic transient, also known as a water hammer,
in elastic pipe systems. For example, the propagation of a water hammer in a piping
system of an oil refining plant.

The equations governing the propagation of hydraulic transients in pipes stem from
considering momentum, mass, and energy balances for a control volume of a piece of
pipe. In the formulation of the Water Hammer interface, the compressibility effects of
the fluid and pipe walls are linearized. The resulting equations are expressed in the
cross-sectional averaged variables and reduce the equations to a 1D component with
scalar field variables. The physics interface is available in 3D on edges and at points,
and in 2D on boundaries and points.

When this physics interface is added, these default nodes are also added to the Model
Builder — Fluid Properties, Pipe Properties, Closed, and Initial Values. Then, from the
Physics toolbar, add other nodes that implement, for example, boundary conditions.
You can also right-click Water Hammer to select physics features from the context
menu.

SETTINGS
The Label is the default physics interface name.

The Name is used primarily as a scope prefix for variables defined by the physics
interface. Refer to such physics interface variables in expressions using the pattern
<name>.<variable_name>. In order to distinguish between variables belonging to
different physics interfaces, the name string must be unique. Only letters, numbers, and
underscores (_) are permitted in the Name field. The first character must be a letter.

The default Name (for the first physics interface in the model) is whtd.

44 | CHAPTER 2: FLUID FLOW INTERFACES


DEPENDENT VARIABLES
This physics interface defines these dependent variables (fields). If required, edit the
name, but dependent variables must be unique within a model:

• Pressure p (SI unit: Pa)


• Tangential velocity u (SI unit: m/s)

In the COMSOL Multiphysics Reference Manual see Table 2-4 for links
to common sections and Table 2-5 to common feature nodes. You can
also search for information: press F1 to open the Help window or Ctrl+F1
to open the Documentation window.

• Edge, Boundary, Point, and Pair Nodes for the Water Hammer
Interface
• Theory for the Pipe Flow Interface

Water Hammer: Application Library path Pipe_Flow_Module/


Verification_Examples/water_hammer_verification

THE WATER HAMMER INTERFACE | 45


Edge, Boundary, Point, and Pair Nodes for the Water Hammer
Interface
The Water Hammer Interface has these edge, boundary, point, and pair nodes available
and listed in alphabetical order:

• Closed • Pipe Properties


• Fluid Properties • Pressure
• Local Friction Loss • Velocity

• The Initial Values and Volume Force nodes are described for the Pipe Flow
interface.

In the COMSOL Multiphysics Reference Manual see Table 2-4 for links
to common sections and Table 2-5 to common feature nodes. You can
also search for information: press F1 to open the Help window or Ctrl+F1
to open the Documentation window.

Fluid Properties
The Fluid Properties node adds the momentum equations solved by the physics
interface, except for volume forces which are added by the Volume Force node. The
node also provides an interface for defining the physical properties of the fluid.

PHYSICAL PROPERTIES
Select a Fluid model — Linear elastic (the default).

The default Density ρ (SI unit: kg/m3) uses the value From material. For User defined
enter a different value or expression.

The default Dynamic viscosity μ (SI unit: Pa·s) uses the value From material and
describes the relationship between the shear rate and the shear stresses in a fluid.
Intuitively, water and air have a low viscosity, and substances often described as thick
(such as oil) have a higher viscosity.

The default Speed of sound cs (SI unit: m/s) uses the value From material. For User
defined enter a different value or expression.

46 | CHAPTER 2: FLUID FLOW INTERFACES


Pipe Properties
The Pipe Properties node is used to define the pipe shape, pipe model, and flow
resistance.

PIPE SHAPE
The Pipe Shape settings are the same as for the Pipe Properties node described for the
Pipe Flow interface.

PIPE MODEL
Select a Pipe model — Zero axial stress (the default), Anchored at one end, Anchored at
both ends, or Incompressible cross section.

• For Zero axial stress, select a Young’s modulus E — Not set (the default) or User
defined. If User defined is selected, enter a value or expression.
• For Anchored at one end or Anchored at both ends, enter a value or expression for the
Young’s modulus E. Select a Poisson’s ratio v — Not set (the default) or User defined.
For User defined enter a value or expression.

When Zero axial stress, Anchored at one end, or Anchored at both ends is selected, also
select a Wall thickness Δw — Not set (the default) or User defined. For User defined enter
a value or expression.

FLOW RESISTANCE
The Flow Resistance settings are the same as for the Pipe Properties node described
for the Pipe Flow interface.

Local Friction Loss


Use the Local Friction Loss node to add a lumped friction loss that depends on the
velocity according to Equation 2-44.

FRICTION SPECIFICATION
Enter a Loss coefficient Kf (dimensionless). The default is 0.

CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options.

THE WATER HAMMER INTERFACE | 47


Closed
Use the Closed node to impose zero velocity.

Velocity
Use the Velocity node to prescribe a velocity.

VELOCITY
Enter a value or expression for uin (SI unit: m/s). The default is 0 m/s.

Pressure
Use the Pressure node to define the boundary pressure at points.

PRESSURE
Enter a value or expression for the Pressure p (SI unit: Pa).

CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options.

48 | CHAPTER 2: FLUID FLOW INTERFACES


Theory for the Pipe Flow Interface
The Pipe Flow Interface and The Nonisothermal Pipe Flow Interface theory is
described in this section:

• Flow Equations
• References for the Pipe Flow Interface

Flow Equations
The Pipe Flow Interface calculates the pressure and velocity of an incompressible or
weakly compressible fluid by solving the continuity and momentum equations
outlined below.

A one dimensional pipe can be present on a boundary in a 2D geometry, or on an edge


in a 3D geometry.

MOMENTUM AND CONTINUITY EQUATIONS


The momentum and continuity equations for flow in a pipe are given by (Ref. 17):

∂u ρ
ρ ------- + ρu ⋅ ∇u = – ∇p – f D ---------- u u + F (2-1)
∂t 2d h

and

∂Aρ
----------- + ∇ ⋅ ( Aρu ) = 0 (2-2)
∂t

The second term on the right-hand side in Equation 2-1 represents the pressure drop
due to viscous shear. Here, u is the cross-section averaged velocity (SI unit: m/s), ρ
the density (SI unit: kg/m3), p pressure (SI unit: Pa), fD (dimensionless) the Darcy
friction factor (see Expressions for the Darcy Friction Factor) and F is a volume force
term (SI unit: N/m3).

Furthermore, dh is the mean hydraulic diameter (SI unit: m), given by:

4A
d h = ------- (2-3)
Z

THEORY FOR THE PIPE FLOW INTERFACE | 49


where A is the pipe cross section area (SI unit: m2) available for flow, and Z is the
wetted perimeter (SI unit: m).

Figure 2-6: Unit tangent vector to the pipe axis.

Let

e t =  e t, x e t, y e t, z 

be the unit tangent vector to the pipe axis.

If the following assumptions apply:

• The velocity profile is fully developed with an entire pipe section.


• The cross section area is allowed to change between pipe segments and within pipe
segments.
• Empirical functions (friction charts) describe viscous pressure drop both for
turbulent and laminar flow regimes
• The curvature of the pipe segment gives rise to insignificant pressure loss in
comparison with wall friction.
• Shocks are neglected
• All velocity components normal to the pipe axis is assumed to be 0,

the momentum balance in Equation 2-1 can be rewritten as

∂u ρ
e t ⋅ ρ ------- + ρu ⋅ ∇u = – ∇p – f D ---------- u u + F (2-4)
∂t 2d h

and we can define the tangential velocity u as u = uet. The pipe flow physics interface
in COMSOL Multiphysics solves for the tangential velocity u. This is also the quantity
the user specifies in for example inflow boundary conditions and in the initial
conditions settings.

Curvature pressure drop effects can be added in points with the Bend feature.

Gravity can be included explicitly in the model, but when the variation in density is
negligible, and the model is not pressure driven (the inlet boundary condition is a
pressure setting), the only effect of including gravity is a change in the total pressure

50 | CHAPTER 2: FLUID FLOW INTERFACES


level. In those cases, it is therefore common modeling practice to set the gravity F to
0 and interpret the pressure variable as the reduced pressure p = p − ρg(z0 − z), where
z0 is the datum level of the free liquid surface. This reduces the model complexity and
yields the same results.

The Darcy friction factor in Equation 2-1 accounts for the continuous pressure drop
along a pipe segment due to viscous shear, and is expressed as a function of the
Reynolds number (Re) and the surface roughness divided by the hydraulic diameter
(e/dh).

f D = f D  Re, ------
e
(2-5)
 d h

where

ρud h
Re = -------------- (2-6)
μ

The physics interface automatically calculates fD from one of the predefined


expressions Equation 2-7 through Equation 2-13.

Expressions for the Darcy Friction Factor

Newtonian Fluids For single-phase fluids, the Churchill equation (Ref. 1) for the
Darcy friction factor can be used for the full range of Re (laminar, transition and
turbulent) and full range of e/d:

8 12 1 ⁄ 12
f D = 8  ------ + ( A + B )
– 1.5
(2-7)
 Re

where

7 0.9 16
A = – 2.457 ln   ------ + 0.27 ( e ⁄ d ) (2-8)
  Re 

16
B =  ----------------
37530
(2-9)
Re

In the laminar regime (Re < 2000), fD is independent of the surface roughness and is
given by the Stokes formula:

64
f D = ------ (2-10)
Re

THEORY FOR THE PIPE FLOW INTERFACE | 51


The Wood equation (Ref. 2) gives the friction factor for 4000 < Re < 1·107 and
1·10-5 < e/d < 0.04, according to

0.225 0.44 a
f D = 0.094 ( e ⁄ d ) + 0.53 ( e ⁄ d ) + 88 ( e ⁄ d ) ⋅ Re (2-11)

with

0.134
a = – 1.62 ( e ⁄ d ) (2-12)

The Haaland equation (Ref. 3) for the Darcy friction factor is commonly used for oil
pipelines and wells. It can recover both small and large relative roughness limits for a
wide range of Reynolds numbers (4·103 < Re < 1·108)

⁄ d- 1.11  6.9


1- = – 1.8log   e---------
----- 10   3.7  +  --------  (2-13)
fD Re

It can be rewritten as

2
( 1 ⁄ 1.8 )
f D = -------------------------------------------------------------------
- (2-14)
 log  e--------- ⁄ d- 1.11  6.9 
2
+ --------
 10  3.7   Re  

For very low relative roughness e/d, the Haaland equation simplifies to Colebrook’s
explicit formula (Ref. 4)

------ = – 1.8 log 10  --------


1 6.9
(2-15)
fD Re

For very large relative roughness e/d, the Haaland equation simplifies to the von
Karman formula (Ref. 5)

⁄ d 1.11
1- = – 1.8log   e--------- e⁄d
----- 10   3.7- = – 2log 10  ---------- (2-16)
fD   3.7 

An alternative to Haaland equation is the Swamee-Jain equation (Ref. 6)

0.25
f D = --------------------------------------------------------------------2- (2-17)
 log   --------- e ⁄ d- -----------------
5.74 - 
+
 10   3.7  ( Re ) 0.9 

The equation is valid for relative roughness 1·10-6 < e/d < 1·10-2 and for Reynolds
number in the range 5·103 < Re < 1·108.

52 | CHAPTER 2: FLUID FLOW INTERFACES


All the above equations are selectable from a list of friction factor expressions. As
noted, only the Churchill equation covers both the laminar and turbulent flows, as well
as the transitional region in between these flow regimes. The equations by Wood,
Haaland, Colebrook, von Karman, or Swamee-Jain, intended for the turbulent regime,
are combined with the Stokes equation for laminar flow to cover all flow conditions.
When Re<1000, COMSOL Multiphysics selects Stokes equation if it predicts a friction
factor greater than equations for the turbulent regimes. This produces more accurate
results that using the turbulent frictions factors in the laminar regime, but it does not
necessarily produce accurate estimates of the friction factor in the transition region.
Therefore, it is always advisable to check the Reynolds number for a give pipe flow
solution and change the friction model and recalculate, if necessary.

The Newtonian fluid type also has two Gas-Liquid options, which employs a simple
two-phase approach presented by Balasubramaniam and others (Ref. 26). This is a
one-fluid approach that treats the fluid as one phase (one mass and momentum balance
is solved), but it corrects the pressure drop correlation with empirical factors for
liquid-gas mixtures. As such, the model also makes the following assumptions:

• The velocity of the gas and liquid phases are the same, meaning that no liquid
holdup is accounted for.
• No phase separation occurs due to gravity or other effects.
• No phase transition (condensation or vaporization) is assumed.
• The gas phase-fraction is assumed to be small so that the mixture is virtually
incompressible.

The first selectable method is the gas-liquid, friction factor multiplier, which
modifies the single-phase Newtonian Darcy friction factor defined in Equation 2-7 and
on, such that

2
fD = Φ 2P ⋅ f D, L (2-18)

where fD,L is the Newtonian single phase friction factor computed as described earlier
in this section. fD is then used as usual in the pressure drop correlation in Equation 2-4.
2
The two-phase friction factor Φ 2P is calculated as (Ref. 26)

2 ρL ( ρL – ρG ) ( μL – μG ) –1 ⁄ 4
Φ 2P = ------ 1 + ω G ------------------------ 1 + ω G ------------------------ (2-19)
ρ ρG μG

THEORY FOR THE PIPE FLOW INTERFACE | 53


where ρL, μL, ρG, and μG are the density and viscosity of the liquid, and gas,
respectively, and where ωG is the quality (the gas phase mass fraction). The total
density in Equation 2-19 is calculated as

ρ = φ G ρ G + ( 1 – φ G )ρ L (2-20)

or

1
ρ = ------------------------------------- (2-21)
ωG ( 1 – ωG )
------- + ----------------------
ρG ρL

where φ G is the user provided volumetric void fraction. The user has a choice to either
enter gas phase mass fraction ωG or volumetric void fraction φ G . The conversion
formula between the two is

ρ
φ G = ------- ω G (2-22)
ρG

The second selectable gas-liquid method is the gas-liquid, effective Reynolds number.
This method uses an effective adjusted viscosity to calculate the Reynolds number in
the pressure loss calculations. The default mixture viscosity model is the extended
Einstein, which probably is the most accurate within a large range of gas mass fractions
(Ref. 27):

– ( μ L + 2.5μ G ) ⁄ ( μ L + μ G )
μ = μL ( 1 – φG ) (2-23)

and the other options are

Linear average

μ = μL ( 1 – φG ) + μG φG (2-24)

Reciprocal average

( 1 – φG ) φG
--1- = --------------------
- + ------- (2-25)
μ μL μG

Liquid viscosity

μ = μL (2-26)

User defined.

54 | CHAPTER 2: FLUID FLOW INTERFACES


Non-Newtonian Power-law Fluids For Power-law fluids the apparent viscosity is
related to the shear rate as

· n–1
μ app = m p ( γ )

where mp and n are two empirical curve fitting parameters known as the fluid
consistency coefficient and the flow behavior index, respectively. Note that the
dimensions of the consistency coefficient, mp, depend on value of the value of n. The
power law relation can be written as

 γ·  n – 1
μ app = m  -------
·  (2-27)
 γ ref

· n–1
Here m = m p ( γ ref ) is the value of apparent viscosity at the reference share rate
· ·
γ ref . The reference shear rate γ ref has the default value 1 s-1. In the laminar regime the
friction factor for power law fluids can be calculated by the Stokes equation using the
modified Reynolds number proposed by Metzner and Reed (Ref. 7):

64
f D = -------------- (2-28)
Re MR

(2 – n) n
ρu dh
Re MR = ---------------------------------------------------n- (2-29)
m p  -----------------
(n – 1) 3n + 1
8
 4n 

For the turbulent regime Irvine (Ref. 8) proposed the following expression for the
friction factor:

 ----------------
1 
-
 3n + 1
D(n)
fD = 4  -------------- (2-30)
 Re MR

where

(n + 4) 2
4n - 3n
2 -  ----------------
D ( n ) = ---------------- (2-31)
7n  3n + 1
7

Ryan and Johnson (Ref. 9) formulated a criterion for the transition between laminar
and turbulent flow, where

THEORY FOR THE PIPE FLOW INTERFACE | 55


 ------------
2 + n
-
6464n  1 + n
Re MR,c = -----------------------2- ( 2 + n ) (2-32)
( 3n + 1 )

predicts the critical Reynolds number.

Non-Newtonian Bingham Plastic Model. The Bingham model describes viscoplastic


fluid with a yield stress:

·
τ = τ B + μ B γ for τ > τ B
(2-33)
·
γ=0 for τ < τ B

The yield stress, τB (SI unit: Pa), and the plastic viscosity, μB (SI unit: Pa·s), are found
by curve fitting to experimental data.

The Swamee-Aggarwal equation (Ref. 10) gives the friction factor for a Bingham
plastic fluid in the laminar regime according to:

He 1.143
10.67 + 0.1414  ----------
Re
-  ---------
64 B He-
f D, laminar = ---------- + ------------------------------------------------------------------- (2-34)
Re B   He  1.16
  Re B
----------
 1 + 0.149  Re B  Re B

where

ρud h
Re B = -------------- (2-35)
μB

and

2
ρd h τ B
He = ----------------
2
(2-36)
μB

is the Hedström number.

For turbulent flow Darby (Ref. 11) provided the equation:

a – 0.193
f D, turbulent = 4 ⋅ 10 0 Re B (2-37)

with

56 | CHAPTER 2: FLUID FLOW INTERFACES


–5
a 0 = -1.47 ( 1 + exp ( -2.9 ⋅ 10 He ) ) (2-38)

as well as an equation covering all flow regimes:

1
---
b b b
fD = ( f D, laminar + f D, turbulent ) (2-39)

where

40000
b = 1.7 + ---------------- (2-40)
Re B

Non-Newtonian Herschel–Bulkley Model. The Herschel–Bulkley non-newtonian


model is a generalization of Bingham plastic model

 γ·  n – 1 ·
τ = τ B + m  -------
·  γ for τ > τ B
 γ ref (2-41)
·
γ=0 for τ < τ B

The yield stress, τB (SI unit: Pa), and the consistency coefficient, m (SI unit: Pa·s), and
flow behavior index, n are found by curve fitting to experimental data.

The Swamee–Aggarwal equation (Ref. 12) gives the friction factor for a Herschel–
Bulkley fluid in the laminar regime according to:

0.958n
-------------------
2–n
64 64 1 He
f D, laminar = -------------- + -------------- -----------------------------------------------
2.46 0.5 Re
- -------------- (2-42)
Re MR Re MR  1.5  MR
--------
 36 + n 

where ReMR is the modified Reynolds number given by Equation 2-29 and

2 – n-
2 ------------
ρd h τ B n
He = ----------  -------- (2-43)
m p  m p

THEORY FOR THE PIPE FLOW INTERFACE | 57


is the Hedström number.

The non-Newtonian friction models outlined above do not include any


effects of wall roughness. Since the laminar sub-layers tend to be thicker
than non-Newtonian than for Newtonian fluids, the effect of pipe
roughness is likely to be smaller. Friction models including the surface
roughness can be used as user-defined specifications and can be found in
for example (Ref. 13).

The non-Newtonian friction models outlined above apply for pipes with circular cross
section. The generalized Reynolds number needs to be modified to account for other
cross sections.

Surface Roughness
Values of the absolute surface roughness found in the literature (Ref. 14 and Ref. 15)
are reproduced in the table below:
TABLE 2-2: SURFACE ROUGHNESS

TUBE MATERIAL SURFACE ROUGHNESS (MM)

Smooth 0
Drawn tubing 0.0015
Glass 0.0015
Thermoplastics 0.0015
Commercial steel and wrought iron 0.046
Steel, welded seamless 0.061
Asphalted cast iron 0.12
Galvanized iron 0.15
Cast-iron 0.26
Wood stave 0.18–0.9
Concrete 0.3–3
Riveted steel 0.9–9
Copper and brass 0.61

Additional Flow Resistances


Additional flow resistance due to irreversible turbulent effects in joints and junctions
can be added as point conditions between pipe segments — Bends, Valves,

58 | CHAPTER 2: FLUID FLOW INTERFACES


T-junctions, Y-junctions, n-way junctions, Contractions, and Expansions. These
resistances give rise to abrupt (lumped) energy losses due to turbulence in the points
where they are added. The lumped pressure drop is calculated as:

1 2
Δp = --- K f ρu (2-44)
2

For more information about each type, see the interface descriptions in The Pipe Flow
Interface section.

Loss coefficients, Ki, for turbulent flow are available in the literature (Ref. 15) and the
set predefined in the Pipe Flow interface is reproduced in the table below:
TABLE 2-3: LOSS COEFFICIENTS

FEATURE DESCRIPTION LOSS COEFFICIENT K

Bends 90° standard elbow 0.9


45° standard elbow 0.5
Valves Globe, fully open 10
Angle, fully open 4.4
Gate, fully open 0.2
Ball, fully open 4.5
Butterfly, fully open 0.6
Swing check, fully open 2.5
T-junction T-junction split/merger 0.1 and 2.1 for side and main. See
Figure 2-1 for a description of flow
branches in a T-junction.
Contractions Sudden 2
0.5 ( 1 – β )
Gradual, angle of
0.8 sin ( α ) ( 1 – β )
convergence α < 22°
Gradual, angle of
0.5 sin(α ) ( 1 – β )
convergence α > 22°
Expansions Sudden 2 2
(1 – β )
Gradual, angle of 2
convergence α < 22° 2.6 sin ( α ) ( 1 – β )

Gradual, angle of 2
convergence α > 22° (1 – β)

THEORY FOR THE PIPE FLOW INTERFACE | 59


Above, β is the ratio of small to large cross-sectional area. The point friction losses
listed above apply for Newtonian fluids. Point losses applying to non-Newtonian flow
can be added as user-defined expressions, for instance from (Ref. 16).

For the point pressure loss features Bends, Valves, T-junctions, Y-junctions, n-way
junctions, Contractions, and Expansions, the pressure loss can also be specified as a
pressure drop Δp directly.

T-junctions
Several options to specify pressure drop across the T-junction branches are available. If
the Loss coefficients option is selected, the energy loss between main branches and
junction and the energy loss between the side branch and junction are calculated as

1 2 1 2
p main, 1 + --- ρ main, 1 u main, 1 – p junction = --- K main ρ main, 1 u main, 1
2 2

1 2 1 2
p main, 2 + --- ρ main, 2 u main, 2 – p junction = --- K main ρ main, 2 u main, 2
2 2

1 2 1 2
p side + --- ρ side u side – p junction = --- K side ρ side u side .
2 2

Note that for the Nonisothermal Pipe Flow and Reacting Pipe Flow interfaces, the
respective pressure drops are calculated as

1 2
p main, 1 – p junction = --- K main ρu main, 1
2

1 2
p main, 2 – p junction = --- K main ρu main, 2
2

1 2
p side – p junction = --- K side ρu side .
2

The Loss coefficient with respect to common branch option, which is available for the
Pipe Flow interface, implements the loss coefficients according to Ref. 28. The
pressure loss for a T-junction is often expressed in terms of the flow in the common
branch. For joining flows, the common branch is the collector branch (Figure 2-2,
left)

1 2 1 2 1 j 2
p b + --- ρ u b = p common + --- ρ common u common + --- K b, common ρ common u common
2 b 2 2

60 | CHAPTER 2: FLUID FLOW INTERFACES


j
where K b, common is the loss coefficient between the branch b and the common
branch for joining flows.

For separating flow, the common branch is the supplier branch

1 2 1 2 1 s 2
p b + --- ρ u b = p common + --- ρ common u common – --- K b, common ρ common u common
2 b 2 2

For converging (joining) flow, where the collector branch is the side branch
(Figure 2-2, left)

j 2
K ms = 0.81 – 0.95 q bc + 1.34q bc

For converging flow, where the collector branch is the main branch (Figure 2-2, right)

j 2
K mm = 1 – 0.95q bc – 0.16 ( q bc – q bc ) – 0.46 ( 1 – q bc )

j 1.3 4 2 2
K sm = – 1 + 3.38q bc + ( ( 1 – 0.5d bc )dbc – 1.84q bc )q bc

For diverging (separating) flow, where the supplier branch is the side branch
(Figure 2-3, left)

s 2
K sm = 1 – 1.18 q bc – 0.68q bc

For diverging flow, where the supplier branch is the main branch (Figure 2-3, right)

s 2 8
K mm = 0.36 – 0.98q bc + 0.62q bc + 0.03q bc

s 3 4 2
K ms = 1 – 1.13q bc + ( 0.81 + ( 1.12d bc – 1.08dbc + 0.57 )dbc )q bc

The mass flow rate ratio q bc = q b ⁄ q common and the hydraulic diameters ratio
d bc = d h b ⁄ d h common are computed automatically. Only junction with sharp corners
are considered.

The Loss coefficients, extended model option, that is available for the Pipe Flow
interface, allows you to specify the loss coefficient in more details and account for the

THEORY FOR THE PIPE FLOW INTERFACE | 61


flow directions. Enter values or expressions for the six dimensionless loss coefficients.
See Figure 2-2-Figure 2-3.

Figure 2-7: T-junction, converging flow.

Figure 2-8: T-junction, diverging flow.

The losses for the outgoing branches are calculated as

1 1
 --2- Ki,in j,out ρi,in u i,in
0 2 2
p av,in – p j,out – --- ρ j,out u j,out =
2
i, in

The total pressure is assume to be equal for all incoming branches:

0 1 2
p av,in = p j,out + --- ρ j,out u j,out
2

Use the Pressure drops option to specify a value or expression for the pressure drop
explicitly for each branch respectively:

Δp 1, s = p main, 1 – p side

Δp 2, s = p main, 2 – p side

Main 1 is the main pipe segment that has the lower index of the two in the selection
list (for example, see the list in Pipe Properties).

References for the Pipe Flow Interface


1. S.W. Churchill, “Friction factor equation spans all fluid-flow regimes”, Chem. Eng.,
vol. 84. no. 24, pp. 91–92, 1997.

62 | CHAPTER 2: FLUID FLOW INTERFACES


2. D.J. Wood, “An explicit friction factor relationship”, Civil Engrs., ASCE 60, 1966.

3. S.E. Haaland, “Simple and explicit formulas for the friction factor in turbulent
flow,” J. Fluids Engineering (ASME), vol. 103, no. 5, pp. 89–90, 1983.

4. C.F. Colebrook, “Turbulent flow in pipes with particular reference to the transition
region between the smooth and rough pipe laws”, J. Inst. Civil Engineers, London,
vol. 11, pp. 133–156, 1939.

5. R.J. Houghtalen, N.H.C. Hwang, and A.O. Akan, Fundamentals of Hydraulic


Engineering Systems, 4th ed., Prentice Hall, p. 63, 2009.

6. P.K Swamee and A.K. Jain, “Explicit Equations for Pipe-flow Problems”, J.
Hydraulics Division (ASCE), vol. 102, no. 5, pp. 657–664, 1976.

7. A.B. Metzner and J.C. Reed, “Flow of non-Newtonian fluids — correlation of the
laminar, transition, and turbulent-flow regions”, AIChE Journal, vol. 1, no.4, pp.
434–440, 1955.

8. T.F. Irvine, Chem Eng Commun, vol. 65, p. 39, 1988.

9. N.W. Ryan and M.M. Johnson, “Transition from laminar to turbulent flow in
pipes”, AIChE Journal, vol. 5, no. 4, pp. 433–435, 1959.

10. P.K. Swamee and N. Aggarwal, “Explicit equations for laminar flow of Bingham
plastic fluids”, J Petroleum Science and Engineering, vol. 76, no. 3–4, pp. 178–184,
2011.

11. R. Darby, R. Mun, and D.V. Boger, “Predict Friction Loss in Slurry Pipes”, Chem
Eng, vol. 99, p. 116, 1992.

12. P.K. Swamee and N. Aggarwal, “Explicit equations for laminar flow of
Herschel-Bulkley fluids”, Canadian Journal of Chemical Engineering, vol. 89, no.
6, pp. 1426–1433, 2011.

13. R.P. Chhabra and J.F. Richardson, Non-Newtonian Flow in the Process
Industries: Fundamentals and Engineering Applications, Butterworth Heinemann,
p. 111, 2004.

14. J.M. Coulson and J.F. Richardson, Chemical Engineering, Volume. 1, 4th ed.,
Pergamon Press, p. 56, 1990.

15. Engineering and Design Liquid Process Piping, Department of the Army, U.S.
Army Corps of Engineers, Engineering Manual No.1110-1-4008, 1999.

THEORY FOR THE PIPE FLOW INTERFACE | 63


16. R.P. Chhabra and J.F. Richardson, Non-Newtonian Flow in the Process
Industries: Fundamentals and Engineering Applications, Butterworth Heinemann,
p. 111 and 140–149, 2004.

17. C.L. Barnard and others, “A Theory of Fluid Flow in Compliant Tubes”,
Biophysical Journal, vol. 6, no. 6, pp. 717–724, 1966.

18. F.P. Incropera and D.P. DeWitt, Fundamentals of Heat and Mass Transfer, 4th
ed., John Wiley & Sons, 1996.

19. V. Gnielinski, “New equations for heat and mass transfer in turbulent pipe and
channel flow”, Int. Chem. Eng., vol. 16, pp. 359–368, 1976.

20. S.W. Churchill and M. Bernstein, “A Correlating Equation for Forced Convection
From Gases and Liquids to a Circular Cylinder in Crossflow”, J. Heat Transfer, vol.
99, no.2, pp. 300–307, 1977.

21. S.W. Churchill and H.H.S. Chu, “Correlating Equations for Laminar and
Turbulent Free Convection from a Vertical Plate”, Int. J. Heat Mass Transfer,
vol. 18, no. 11, pp. 1323–1329, 1975.

22. G. Taylor, “Dispersion of Soluble Matter in Solvent Flowing Slowly through a


Tube”, Proc. Roy. Soc. A., vol. 219, pp. 186–203, 1953.

23. G. Taylor, “The Dispersion of Matter in Turbulent Flow Through a Pipe”, Proc.
Roy. Soc. A., vol. 223, pp. 446–468, 1954.

24. L.T. Fan and C.B. Wang, “Dispersion of Mater in Non-Newtonian Laminar Flow
Through a Circular Tube”, Proc. Roy. Soc. A., vol. 292, pp. 203–208, 1966.

25. M.V. Lurie, Modeling of Oil Product and Gas Pipeline Transportation,
WILEY-VCH Verlag GmbH & Co., KGaA, Weinheim, 2008.

26. R. Balasubramaniam et. al., Two Phase Flow Modeling: Summary of Flow Regimes
and Pressure Drop Correlations, NASA Report No. NASA/CR — 2006-214085,
National Center for Space Exploration Research, Cleveland, OH.

27. M. Ungarish, Hydrodynamics of Suspensions, Springer-Verlag, Berlin, p. 18. ISBN


3540547622 (Berlin), 0387547622 (New York), 1993.

28. D.C. Rennels and H.M. Hudson, Pipe flow, A Practical and Comprehensive
Guide, John Wiley & Sons, 2012.

64 | CHAPTER 2: FLUID FLOW INTERFACES


Theory for the Water Hammer
Interface
In this section:

• Flow Equations
• Reference for the Water Hammer Interface

Flow Equations
The Water Hammer interface implements both the continuity equation and the
momentum equations for a compressible fluid traveling inside pipes of variable cross
section.

THE CONTINUITY EQUATION


The mass conservation for a fluid inside a pipe is given by:

∂Aρ
----------- + ∇ ⋅ ( Aρu ) = 0 (2-45)
∂t

where A (SI unit: m2) is the cross-section area of the pipe, ρ (SI unit: kg/m3) is the
fluid density, and u (SI unit: m/s) is the tangential fluid velocity.

For adiabatic processes, the density and cross-section area are functions of the pressure,
so the continuity equation reads

∂A ( p )ρ ( p )-
--------------------------- + ∇ ⋅ ( A ( p )ρ ( p )u ) = 0 (2-46)
∂t

In a first-order approximation, this equals

1 ∂p
A 0 ρ 0  ------- + ------- ------ + ∇ ⋅ ( A 0 ρ 0 u ) = 0
1
(2-47)
 K ρ K A ∂t

where Kρ is the bulk modulus of the fluid (the inverse of its compressibility), and KA
is the effective bulk modulus of the cross section area. A0 and ρ0 are the reference area
and reference density at a given pressure p0.

The Water Hammer wave speed c (SI unit: m/s) is given by a combination of fluid and
structural material properties

THEORY FOR THE WATER HAMMER INTERFACE | 65


= ρ 0  ------- + -------
1- 1 1
---- (2-48)
c2  K ρ K A

The effective bulk modulus for the cross-sectional area KA (SI unit: Pa) is given by the
pipe’s material properties

w th
K A = E ---------
dh

where E is the Young’s modulus, dh is the hydraulic diameter, and wth is the pipe’s
wall thickness. This is the so-called Korteweg formula (Ref. 1)

The Korteweg formula can also be extended to pipes suffering from axial stresses. In
this case, a more general formula would include Poisson’s ratio, ν, of the pipe’s
material

E w th
K A = ---- --------- (2-49)
ζ dh

where ζ = 1 for pipe with zero axial stress (this is Korteweg’s original formula for a pipe
furbished with expansion joints), ζ = 1 − ν/2 for a pipe anchored at one end, and
ζ = 1 − ν2 for a pipe anchored at both ends.

THE MOMENTUM EQUATION


The momentum equation is written as:

∂u ρ
ρ ------- = – ∇p – f D ---------- u u + F (2-50)
∂t 2d h

here, fD is the Darcy friction factor, normally a function of the Reynolds number, the
surface roughness and the hydraulic diameter, as described in Expressions for the
Darcy Friction Factor.

This set of equations are normally acknowledged as the Water Hammer equations, and
are they mainly written in the literature as (consider gravity forces, so F = ρg)

1 ∂p
A ----2- ------ + ∇ ⋅ ( Aρu ) = 0 (2-51)
c ∂t

∂u ρ
ρ ------- = – ∇p – f D ---------- u u + ρg (2-52)
∂t 2d h

66 | CHAPTER 2: FLUID FLOW INTERFACES


BOUNDARY CONDITIONS
The available boundary conditions are Closed, Pressure, Velocity, and Additional Flow
Resistances.

Reference for the Water Hammer Interface


1. M. Ghidaoui and others, “A Review of Water Hammer Theory and Practice,” Appl.
Mech. Rev., vol. 58, pp. 49–76, 2005.

THEORY FOR THE WATER HAMMER INTERFACE | 67


68 | CHAPTER 2: FLUID FLOW INTERFACES
3

Heat Transfer Interfaces

This physics interface, which is found under the Heat Transfer branch ( ) when
adding a physics interface, has functionality for simulating heat transfer in pipe
networks, including wall heat transfer to the surroundings.

In this chapter:

• The Mechanisms for Heat Transfer


• The Heat Transfer in Pipes Interface
• Theory for the Heat Transfer in Pipes Interface

See The Heat Transfer Interfaces in the COMSOL Multiphysics Reference


Manual for other Heat Transfer interface and feature node settings.

69
The Mechanisms for Heat Transfer
The Heat Transfer in Pipes interface ( ), found under the Heat Transfer branch ( )
when adding a physics interface, solves a temperature equation for a fluid transported
in a pipe. The physics interface requires the fluid velocity as input, provided either by
the user or by coupling to the Pipe Flow interface. However, it is advisable to instead
use The Nonisothermal Pipe Flow Interface which is a multiphysics interface that
combines Pipe Flow and Heat Transfer in Pipes to model the velocity, pressure and
temperature fully coupled.

The Heat Transfer in Solids, Heat Transfer in Fluids (general convection and
conduction, nonisothermal flow, and conjugate heat transfer), and Joule
Heating interfaces all belong to the COMSOL Multiphysics base package.
See The Heat Transfer Interfaces in the COMSOL Multiphysics
Reference Manual for more information.

COUPLING TO OTHER PHYSICS INTERFACES


It is often relevant to couple heat transport in pipe networks to heat transfer in the
region surrounding the pipe network. Simulating the cooling of a mold is a good
example of such an application. The Heat Transfer in Pipes interface or the
Nonisothermal Pipe Flow interface can be used to model the removal of heat in the
cooling channels represented by 1D edges, and couple that heat loss to a 3D model of
the mold. The pipe heat model is automatically coupled to the 3D surroundings.

More extensive descriptions of heat transfer, such as 3D turbulent flow models or


problems involving surface-to-surface radiation, can be found in the Heat Transfer
Module. Furthermore, some cases that involve geothermal applications with
groundwater flow models for porous media are better handled by the Subsurface Flow
Module.

70 | CHAPTER 3: HEAT TRANSFER INTERFACES


The Heat Transfer in Pipes Interface
The Heat Transfer in Pipes (htp) interface ( ), found under the Heat Transfer
branch ( ) when adding a physics interface, is used to model heat transfer by
conduction and convection in pipes and channels of different shapes, where the fluid
velocity and pressure fields are known a priori. The interface uses 1D energy balance
to determine the temperature profiles on curve segments, or lines. These lines can be
drawn in 2D or 3D and represent simplifications of hollow tubes. Wall heat transfer,
including multilayer walls and cladding is included as an option.

The temperature equation corresponds to a 1D convection-diffusion equation that


may contain additional contributions like heat sources.

The Nonisothermal Pipe Flow Interface extends this physics interface by providing
equations to compute the velocity and pressure fields when they are unknown.

When this physics interface is added, these default nodes are also added to the Model
Builder — Heat Transfer, Pipe Properties, Temperature, and Initial Values. Then, from the
Physics toolbar, add other nodes that implement, for example, boundary conditions.
You can also right-click Heat Transfer in Pipes to select physics features from the context
menu.

SETTINGS
The Label is the default physics interface name.

The Name is used primarily as a scope prefix for variables defined by the physics
interface. Refer to such physics interface variables in expressions using the pattern
<name>.<variable_name>. In order to distinguish between variables belonging to
different physics interfaces, the name string must be unique. Only letters, numbers, and
underscores (_) are permitted in the Name field. The first character must be a letter.

The default Name (for the first physics interface in the model) is htp.

DEPENDENT VARIABLES
This physics interface defines the Temperature T (SI unit: K) dependent variable (field).
If required, edit the name, but dependent variables must be unique within a model.

THE HEAT TRANSFER IN PIPES INTERFACE | 71


DISCRETIZATION
The default discretization for temperature is quadratic.

• Edge, Boundary, Point, and Pair Nodes for the Heat Transfer in Pipes
Interface
• Theory for the Heat Transfer in Pipes Interface
• Handling Frames in Heat Transfer in the COMSOL Multiphysics
Reference Manual

Edge, Boundary, Point, and Pair Nodes for the Heat Transfer in Pipes
Interface
The Heat Transfer in Pipes Interface has these boundary, edge, point, and pair nodes
available from the Physics ribbon toolbar (Windows users), Physics context menu (Mac
or Linux users), or right-click to access the context menu (all users).

In general, to add a node, go to the Physics toolbar, no matter what


operating system you are using. Subnodes are available by clicking the
parent node and selecting it from the Attributes menu.

• Heat Outflow • Pipe Properties


• Heat Source • Temperature
• Heat Transfer • Wall Heat Transfer
• Initial Values

In the COMSOL Multiphysics Reference Manual see Table 2-4 for links
to common sections and Table 2-5 to common feature nodes. You can
also search for information: press F1 to open the Help window or Ctrl+F1
to open the Documentation window.

Heat Transfer
Use the Heat Transfer node to define the tangential velocity, density, dynamic viscosity,
and heat convection and conduction properties.

72 | CHAPTER 3: HEAT TRANSFER INTERFACES


FLUID PROPERTIES
The default Density ρ (SI unit: kg/m3) uses the value From material. For User defined
enter a different value or expression.

The default Dynamic viscosity μ (SI unit: Pa·s) uses the value From material and
describes the relationship between the shear rate and the shear stresses in a fluid.
Intuitively, water and air have a low viscosity, and substances often described as thick
(such as oil) have a higher viscosity.

HEAT CONVECTION AND CONDUCTION


Select an option from the Tangential velocity list — User defined, Tangential velocity
(nipfl/nipfl), or Tangential velocity (pfl/pfl). For User defined enter a value for the
Tangential velocity u (SI unit: m/s).

The default Density ρ (SI unit: kg/m3), Dynamic viscosity μ (SI unit: Pa·s), Heat capacity
at constant pressure Cp (SI unit: J/(kg·K)), Ratio of specific heats γ (dimensionless),
and Thermal conductivity k (SI unit: W/(m·K)) all use values From material. For User
defined enter different values or expressions.

Heat Source
The Heat Source describes heat generation within the domain. Express heating and
cooling with positive and negative values, respectively. Add one or more nodes as
needed — all heat sources within a domain contribute to the total heat source.

HEAT SOURCE
Click the General source, Linear source, or Heat rate button.

• For General source enter a value for the distributed heat source Q (SI unit: W/m3).
• For Heat rate enter a value for the heat rate P0(SI unit: W). In this case Q = P0/L
where L is the total length of the selected boundaries.
• For Linear source (Q = qs·T) enter the Linear heat source qs (SI unit: W/(m3·K)).

The advantage of writing the source in this form is that it can be stabilized
by the streamline diffusion. The theory covers qs that is independent of
the temperature, but some stability can be gained as long as qs is only
weakly dependent on the temperature.

THE HEAT TRANSFER IN PIPES INTERFACE | 73


Numerical Stabilization in the COMSOL Multiphysics Reference
Manual

Wall Heat Transfer


Use the Wall Heat Transfer node to set up heat exchange across the pipe wall. Define
the external temperature and the nature of the heat transfer. The Internal Film
Resistance, Wall Layer, and External Film Resistance subnodes are available from the
context menu (right-click the parent node) or from the Physics toolbar, Attributes
menu. These compute heat transfer coefficients based on the section Theory for the
Heat Transfer in Pipes Interface.

You must add at least an Internal Film Resistance subnode. This


corresponds to a drilled channel in a solid. If a pipe wall exists, (pipe
embedded in a solid), add also Wall Layer. If the pipe wall has more than
one layer, add more Wall Layer features. If the pipe exchanges heat to a
surrounding fluid by forced or natural convection, add also External Film
Resistance.

Internal film External film

Wall layers

Figure 3-1: Internal and external films and the associated film coefficients (blue), and
wall layers (dark and light gray).

HEAT TRANSFER MODEL


Enter a value for the External Temperature Text (SI unit: K). If an expression is used for
Text that is a locally defined variable on the edge, the check box Take average in
adjacent domain should be cleared.

Use the Pipe Wall Heat Transfer multiphysics coupling if the temperature in
surrounding 3D solid physics is calculated using Heat Transfer interface.

74 | CHAPTER 3: HEAT TRANSFER INTERFACES


Internal Film Resistance
The Internal Film Resistance subnode is available from the context menu (right-click the
Wall Heat Transfer parent node) or from the Physics toolbar’s Attributes menu. Use it
to define the film resistance.

Even if you do not expect a boundary layer to build up, the thermal film
theory works well for laminar flow profiles. In fact, there is an analytical
solution available to the Nusselt number for laminar flow in circular tubes
(Nu = 3.66).

FILM RESISTANCE
The default Internal film resistance model is Automatic and the Nusselt number is
computed as described in the section Theory for the Heat Transfer in Pipes Interface.
For User defined enter a value for the Nusselt number (dimensionless). The default is
3.66.

External Film Resistance


The External Film Resistance subnode is available from the context menu (right-click
the Wall Heat Transfer parent node) or from the Physics toolbar’s Attributes menu. Use
it to define the external film resistance features including the material, thermal
conductivity, density, external velocity, and pressure of the external fluid. You can select
between forced and natural convection.

SPECIFICATION
Select an External film heat transfer model — External forced convection (the default),
External natural convection, or User defined.

External Forced Convection and External Natural Convection


For External forced convection or External natural convection the Surrounding fluid uses
the Domain material by default.

Be careful to select the right material in the Settings window for External
Film Resistance. Many times this should be another material than the
Domain material which is the internal fluid.

THE HEAT TRANSFER IN PIPES INTERFACE | 75


The default Heat capacity at constant pressure Cp (SI unit: J/(kg·K)), Thermal
conductivity k (SI unit: W/(m·K)), Density ρ (SI unit: kg/m3), and Dynamic viscosity
μ (SI unit: Pa·s), all use values From material. For User defined enter different values or
expressions than the default, which is 0 for all options.

The External velocity uext (SI unit: m/s) is User defined by default. This is the velocity
of the cooling or heating fluid outside the pipe.

For External natural convection only, also enter a value or expression for the External
pressure pext (SI unit: Pa). The default is 1 atm.

The natural convection correlations (see External Film Resistance under


The Heat Transfer Equation in the section Theory for the Heat Transfer
in Pipes Interface) require a temperature dependent density, or else the
coefficient of thermal expansion β evaluates to 0 (Equation 3-26), which
might generate unexpected results or even unstable models. Also, make
sure that the density correlation ρ(T) is smooth throughout the
temperature interval used, or else β is discontinuous and can cause
numerical instability.

Figure 3-2: Before you use the Natural Convection option, it is good practice to select
Density in the used material, and click Plot in the Settings window. That way you can
inspect the behavior and make sure it is smooth within the temperature interval you plan
to use it.

User Defined
For User defined:

• Enter the Nusselt number (dimensionless). The default is 3.66.


• The Surrounding fluid uses the Domain material by default.

76 | CHAPTER 3: HEAT TRANSFER INTERFACES


• The Thermal conductivity k (SI unit: W/(m·K)) takes its value From material. For
User defined enter a different value or expression. The default is 0 W/(m·K).
• Enter a value or expression for the External pressure pext (SI unit: Pa). The default
is 1 atm).

Wall Layer
The Wall Layer subnode is available from the context menu (right-click the Wall Heat
Transfer parent node) or from the Physics toolbar’s Attributes menu. Use it to define
the thermal conductivity and wall thickness. You can add more layers.

SPECIFICATION
Select an option from the Thermal conductivity list k (SI unit: W/(m·K)) — Not set (the
default) or User defined to enter a different value or expression. The default is
0 W/(m·K).

Select an option from the Wall thickness list Δw (SI unit: m) — Not set (the default) or
User defined. For User defined enter a value or expression. The default is 0 m.

You must add at least an Internal Film Resistance subnode. This


corresponds to a drilled channel in a solid. If a pipe wall exists, (pipe
embedded in a solid), add also Wall Layer. If the pipe wall has more than
one layer, add more Wall Layer features.

Internal film External film

Wall layers

Figure 3-3: Internal and external films and the associated film coefficients (blue), and
wall layers (dark and light gray).

THE HEAT TRANSFER IN PIPES INTERFACE | 77


Wall Heat Transfer, Inner
Use the Wall Heat Transfer, Inner node to set up heat exchange across the pipe wall.
This feature is only applicable if Concentric circular annular is selected as Pipe Shape in
the Pipe Properties node. Define the core temperature Tcore and the nature of the heat
transfer. The Internal Film Resistance and Wall Layer subnodes are available from the
context menu (right-click the parent node) or from the Physics toolbar’s Attributes
menu. These compute heat transfer coefficients based on the section Theory for the
Heat Transfer in Pipes Interface.

You must add at least an Internal Film Resistance subnode. This


corresponds to a drilled channel in a solid. If a pipe wall exists, (pipe
embedded in a solid), add also Wall Layer. If the pipe wall has more than
one layer, add more Wall Layer features.

Internal film Core

Wall layers

Figure 3-4: Internal film (blue) and wall layer (light gray).

Initial Values
The Initial Values node adds an initial value for the temperature that can serve as an
initial condition for a transient simulation or as an initial guess for a nonlinear solver.

INITIAL VALUES
Enter values or expressions for the initial value of the Temperature T (SI unit: K).

Temperature
Use the Temperature node to specify the temperature at an inlet of the pipe system.

78 | CHAPTER 3: HEAT TRANSFER INTERFACES


TEMPERATURE
The equation for this condition is T = T0, where T0 is the prescribed temperature
(SI unit: K) on the boundary. Enter the value or expression for the Temperature Tin.
The default is 293.15 K.

CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog box.

Heat Outflow
The Heat Outflow node provides a suitable boundary condition for
convection-dominated heat transfer at outlet boundaries. In a model with convective
heat transfer, this condition states that the only heat transfer over a boundary is by
convection. The temperature gradient in the normal direction is zero, and there is no
radiation. This is usually a good approximation of the conditions at an outlet boundary
in a heat transfer model with fluid flow.

THE HEAT TRANSFER IN PIPES INTERFACE | 79


Theory for the Heat Transfer in Pipes
Interface
The Heat Transfer in Pipes Interface and The Reacting Pipe Flow Interface theory is
described in this section:

• The Heat Transfer Equation


• Reference for the Heat Transfer in Pipes Interface

The Heat Transfer Equation


This physics interface solves an energy balance equation for 1D pipes, taking the flow
velocity as input.

HEAT BALANCE EQUATION


The energy equation for an incompressible fluid flowing in a pipe is (Ref. 25):

∂T ρA 3
ρAC p ------- + ρAC p u ⋅ ∇T = ∇ ⋅ Ak ∇T + f D ---------- u + Q + Q wall + Q p (3-1)
∂t 2d h

where ρ is the fluid density (SI unit: kg/m3), A is the pipe cross section area
(SI unit: m2) available for flow, Cp (SI unit: J/(kg·K)) is the heat capacity at constant
pressure, T (SI unit: K) is the temperature. u is a velocity field. For information about
the tangential velocity in pipe flow, see Theory for the Pipe Flow Interface. Further, k
(SI unit: W/(m·K)) is the thermal conductivity. The second term on the right hand
side corresponds to friction heat dissipated due to viscous shear. Q (SI unit: W/m)
represents a general heat source and Qwall (SI unit: W/m) represents external heat
exchange through the pipe wall. Note that the Qwall term is detailed below.

An additional term Qp can be added to the right-hand side of the equation by enabling
the Pressure Work check box:

TA ∂ρ ∂p
Q p = – --------  -------  ------- + u ⋅ ∇p (3-2)
ρ  ∂T  ∂T 

This term is optional and can be used if the pressure drop is expected to be
considerable and the fluid is compressible. The contribution follows the same theory

80 | CHAPTER 3: HEAT TRANSFER INTERFACES


as the pressure work term described in the section The Nonisothermal Flow and
Conjugate Heat Transfer Equations in the Heat Transfer Module User’s Guide.

Wall Heat Transfer


The radial heat transfer from the surroundings into the pipe is given by

Q wall = ( hZ ) eff ( T ext – T ) (W/m) (3-3)

In Equation 3-3, (hZ)eff is an effective value of the heat transfer coefficient h


(SI unit: W/(m2·K)) times the wall perimeter Z (SI unit: m) of the pipe. Text
(SI unit: K) the external temperature outside of the pipe. See Figure 3-5. Qwall appears
as a source term in the pipe heat transfer equation, Equation 3-1.

The Wall Heat Transfer feature requires the external temperature and at least an
internal film resistance subnode added to it. The individual contributions of heat
transfer coefficients can be added by subnodes to the Wall Heat Transfer feature. The
subnodes are:

• Internal Film Resistance


• Wall Layer
• External Film Resistance

Text in Equation 3-3 can be a constant, parameter, or expression. Effective value of the
heat transfer coefficient (hZ)eff is automatically calculated through film resistances and
wall layers that are added as subnodes; see Equation 3-16.

If external temperature is computed by 3D Heat Transfer interface, add a Pipe Wall


Heat Transfer coupling. The temperature coupling between the pipe and the
surrounding domain is implemented as a line heat source in the 3D domain. The
source strength is proportional to the temperature difference (Equation 3-3) between
the pipe fluid and the surrounding domain.

THEORY FOR THE HEAT TRANSFER IN PIPES INTERFACE | 81


The overall heat transfer coefficient including internal film resistance, wall resistance
and external film resistance can be deduced as follows, with reference to Figure 3-5.

Layered pipe wall

r1 rN
Fluid domain

dr r0 Δwn

T T0 T1
T2
Tn
TN

Wall number: 1 2 n N
Text

r0 r

Figure 3-5: Temperature distribution across the pipe wall.

• rn (SI unit: m) is the outer radius of wall n


• w = r − r0 (SI unit: m) a wall coordinate, starting at the inner radius r0
• Δwn = rn − rn−1 (SI unit: m) the wall thickness of wall n
• Zn (SI unit: m) is the outer perimeter of wall n
• hint and hext are the film heat transfer coefficients on the inside and outside of the
tube, respectively (SI unit: W/(m2·K)).
• kn is the thermal conductivity (SI unit: W/(m·K)) of wall n

Shell balance In Figure 3-5, consider a short length section ΔL of pipe, perpendicular
to the figure plane. The heat leaving the internal fluid of that segment into the wall is

Q 0 = h int A Q ⋅ ( T – T 0 ) (W) (3-4)

Here, AQ = ΔL2πr0 (SI unit: m2) is the area available for heat flux into the wall. For
stationary conditions that same amount of heat must travel through any cylindrical
shell at radius r in wall 1 (or any wall).

82 | CHAPTER 3: HEAT TRANSFER INTERFACES


Q 1 = ΔL2πr ⋅  – k 1 --------
dT
(3-5)
dr

Rearrange and integrate from r0 to r1.

T1 r1
Q1
 dT = –   --------------------- ⋅ --- dr
1
(3-6)
ΔL2πk 1 r 
T0 r0

Perform the integration

Q1 r1
T 1 – T 0 = – --------------------- ⋅ ln  ----- (3-7)
ΔL2πk 1 r0

and rearrange

ΔL2πk 1
Q 1 = --------------------- ⋅ ( T 0 – T 1 ) . (3-8)
r1
ln  -----
 r 0

For the example of two wall layers, the heat flow is equal across any shell from the inner
bulk fluid to the surroundings, and we can set all Q n = Q .

Q = h int ΔL2πr 0 ⋅ ( T – T 0 )
ΔL2πk 1
Q = -------------------------- ⋅ ( T 0 – T 1 )
ln ( r 1 ⁄ r 0 )
(3-9)
ΔL2πk 2
Q = -------------------------- ⋅ ( T 1 – T 2 )
ln ( r 2 ⁄ r 1 )
Q = h ext ΔL2πr 2 ⋅ ( T 2 – T ext )

Substituting

Θ = ΔL2π , (3-10)

and making a linear combination of the equations Equation 3-9 gives

Q = ( hA Q ) eff ⋅ ( T – T ext ) (3-11)

where (hAQ)eff is an effective conductance:

THEORY FOR THE HEAT TRANSFER IN PIPES INTERFACE | 83


1
( hA Q ) eff = ----------------------------------------------------------------------------------------------------------------- (3-12)
1 ln ( r 1 ⁄ r 0 ) ln ( r 2 ⁄ r 1 ) 1 -
------------------- + -------------------------- + -------------------------- + -------------------
r 0 h int Θ k1 Θ k2 Θ r 2 h ext Θ

For the general case with N wall layers this reads

1
( hA Q ) eff = ---------------------------------------------------------------------------------------------- (3-13)
rn 
N  ln  --------- 
1   r n-1 
 1
-------------------
r 0 h int Θ
+ 
 ---------------------- + ---------------------
 k n Θ  r N h ext Θ
n = 1 

Now let

( hA Q ) eff
( hZ ) eff = ---------------------- , (3-14)
ΔL

where Z (SI unit: m) is an average perimeter (circumference), of the pipe, taken over
the thickness of the pipe walls. Combine Equation 3-10 and Equation 3-14 such a that

( hA Q ) eff = ( hZ ) eff Θ ⁄ ( 2π )

and insert in Equation 3-13:


( hZ ) eff = ------------------------------------------------------------------------------------ (3-15)
rn 
N  ln  --------- 
1 1   r n-1 

--------------- + ---------------- +
r 0 h int r N h ext   ----------------------
 kn 
n = 1 

For a circular pipe cross sections, this effective hZ in can now be used in Equation 3-3.
Note the reversed sign since Qwall is the heat added to the pipe from the surroundings.
The assumption in the deduction above is

• equal temperature around the circumference of the pipe.


• the heat transfer through the wall is quasi static. The latter means that the wall is
assumed to immediately assume the equilibrium temperature distribution
corresponding to T and Text. If this assumption would not be made, an auxiliary
PDE across the wall coordinate would be required.

For square and rectangular pipe shapes the average conductance can be approximated
by the simpler sum of resistances across a plane wall, which can be found in for example
(Ref. 14):

84 | CHAPTER 3: HEAT TRANSFER INTERFACES


1
( hZ ) eff = -------------------------------------------------------------------------------------------------------
N
- (3-16)
1 1 - w

---------------- + ----------------- n
+ -----------------------------------------------
Z 0 h int Z N h ext k n ( ( Z n + Z n-1 ) ⁄ 2 )
n=1

The film resistances can be calculated from

k
h = Nu ------ (3-17)
dh

where k is the thermal conductivity of the material, and Nu is the Nusselt number. dh
is the hydraulic diameter, defined as

d h = 4A ⁄ Z . (3-18)

• The inner and outer film coefficients is evaluated at (T + T0)/2 and (TN + Text)/2,
respectively.
• The thermal conductivity kn can be temperature dependent and is evaluated at
(Tn + Tn−1)/2.
• To compute dh in Equation 3-18 the local perimeter is calculated as Z = f(w) and
the cross section area as A = f(w). Automatic calculations for circular tubes are done
by the physics interface as Z = 2πr and A = πr2. For rectangular tubes it is
Z = 2(width + height) and A = width · height. For user-defined pipe shapes, the user
can enter arbitrary expressions.

The local temperatures in each radial position of the pipe wall (see Figure 3-5) are
computed considering the fact that Equation 3-3 also can be applied for each
individual wall layer:

Q wall = ( hZ ) eff ( T n+1 – T n ) (3-19)

Combining Equation 3-3, Equation 3-19 and Equation 3-15 or Equation 3-16
(depending on pipe shape) for each wall layer explicitly gives each Tn.

Internal Film Resistance For internal laminar forced convection in fully developed
pipe flow, the Nusselt number is a constant that depends on the pipe cross-section.
Values are listed in the table below (Ref. 1). The Pipe Flow interface interpolates to
find values for width/height ratios not listed. Default settings for film coefficient

THEORY FOR THE HEAT TRANSFER IN PIPES INTERFACE | 85


calculations are “Automatic”, which means that laminar and turbulent correlations are
applied according to the Re number.
TABLE 3-1: NUSSELT NUMBERS FOR INTERNAL LAMINAR PIPE FLOW

CROSS SECTION WIDTH/HEIGHT NU

circular - 3.66
square 1 2.98
rectangular 1.43 3.08
rectangular 2 3.39
rectangular 3 3.96
rectangular 4 4.44
rectangular 8 5.60
parallel plates infinity 7.54

For user-defined cross sections, Nu is suggested to 3.66 as a default.

For internal turbulent forced convection (3000 < Re < 6·106, 0.5 < Pr < 2000), the
Gnielinski equation (Ref. 19) applies:

( f D ⁄ 8 ) ( Re – 1000 )Pr
Nu int = ------------------------------------------------------------------------------
1⁄2 2⁄3
(3-20)
1 + 12.7 ( f D ⁄ 8 ) ( Pr – 1)

Where Pr is the Prandtl number:

Cp μ
Pr = ----------- (3-21)
k

The film resistance due in the internal flow can be calculated using material properties
defined in the Heat Transfer feature and the calculated friction factor. Material
properties are evaluated at the mean internal film temperature (T + T0)/2 (see
Expressions for the Darcy Friction Factor).

The using the hydraulic diameter makes the equations applicable to non-circular pipe
cross sections.

External Film Resistance The material properties used should be those of the external
fluid. Do not set the material to Domain Material if you have a different fluid on the
inside and outside. Typically, the temperature and pressure are required to evaluate the
material functions. The external fluid velocity is required for the Forced Convection
option and is a user-defined input.

86 | CHAPTER 3: HEAT TRANSFER INTERFACES


For External forced convection around a pipe, valid for all Re and for Pr > 0.2, the
Churchill and Bernstein (Ref. 20) correlation is used:

1⁄2 1⁄3
0.62Re Pr 5⁄8 4⁄5
Nu ext = 0.3 + ------------------------------------------------------- [ 1 + ( Re ⁄ 282000 ) ] . (3-22)
2⁄3 1⁄4
[ 1 + ( 0.4 ⁄ Pr ) ]

For External natural convection around a pipe, the Churchill and Chu (Ref. 21)
correlation is used which is recommend for Ra < 1012:

1⁄6 2
 0.387Ra 
Nu ext =  0.60 + -------------------------------------------------------------------
8 ⁄ 27 
(3-23)
 9 ⁄ 16 
[ 1 + ( 0.559 ⁄ Pr ) ]

where the Rayleigh number is given by:

Ra = PrGr (3-24)

and the Grashof number is:

3
gβ T N – T ext d
Gr = ----------------------------------------
- (3-25)
μ
2
---
 ρ

Above d is the outside diameter of the pipe and, β is the fluid’s coefficient of
volumetric thermal expansion:

1 ∂ρ
β = – ---  ------- (3-26)
ρ ∂T p

Material properties are evaluated at (TN + Text)/2.

STABILIZATION OF THE HEAT TRANSFER EQUATION


The transport equation in the Heat Transfer in Pipes interface is numerically stabilized.

Numerical Stabilization in the COMSOL Multiphysics Reference


Manual

Reference for the Heat Transfer in Pipes Interface


1. F.P. Incropera and D.P. DeWitt, Fundamentals of Heat and Mass Transfer, 4th
ed., John Wiley & Sons, 1996.

THEORY FOR THE HEAT TRANSFER IN PIPES INTERFACE | 87


88 | CHAPTER 3: HEAT TRANSFER INTERFACES
4

Chemical Species Transport Interfaces

This chapter has information about the physics interfaces found under the
Chemical Species Transport branch ( ).

In this chapter:

• The Transport of Diluted Species in Pipes Interface


• The Reacting Pipe Flow Interface
• Theory for the Transport of Diluted Species in Pipes Interface

See The Transport of Diluted Species Interface in the COMSOL Multiphysics


Reference Manual for other Chemical Species Transport interface and feature
node settings.

89
The Transport of Diluted Species in
Pipes Interface
The Transport of Diluted Species in pipes (dsp) interface ( ), found under the Chemical
Species Transport branch ( ) when adding a physics interface, is used to model a mass
balance equation for pipes in order to compute the concentration distribution of a
solute in a dilute solution, taking into account diffusion, dispersion, convection, and
chemical reactions. The physics interface approximates the concentration profile in
pipes and channels by a 1D assumption on lines in 2D and 3D. Depending on
additional add-on products, multiple species can be modeled.

When this physics interface is added, these default nodes are also added to the Model
Builder — Convection and Diffusion, Concentration, and Initial Values. Then, from the
Physics toolbar, add other nodes that implement, for example, boundary conditions
and volume forces. You can also right-click Transport of Diluted Species in Pipes to select
physics features from the context menu.

The Reacting Pipe Flow Interface node uses this physics interface and couples it
automatically to Pipe Flow and Heat Transfer in pipes.

SETTINGS
The Label is the default physics interface name.

The Name is used primarily as a scope prefix for variables defined by the physics
interface. Refer to such physics interface variables in expressions using the pattern
<name>.<variable_name>. In order to distinguish between variables belonging to
different physics interfaces, the name string must be unique. Only letters, numbers, and
underscores (_) are permitted in the Name field. The first character must be a letter.

The default Name (for the first physics interface in the model) is dsp.

FLUID MODEL
Select a Fluid model — Newtonian (the default), Power law, Bingham, or Herschel-Bulkley.

DEPENDENT VARIABLES
This physics interface defines these dependent variables (fields) — Number of
concentrations c (SI unit: mol/m3) and Concentrations.

90 | CHAPTER 4: CHEMICAL SPECIES TRANSPORT INTERFACES


If required, edit the name, but dependent variables must be unique within a model:

To enable multiple species (more than one concentration), you need a


license for one of these modules: Battery Design Module, CFD Module,
Chemical Reaction Engineering Module, Corrosion Module,
Electrodeposition Module, Fuel Cell & Electrolyzer Module,
Microfluidics Module, or Subsurface Flow Module.

Edge, Boundary, Point, and Pair Nodes for the Transport of Diluted
Species in Pipes Interface

• Edge, Boundary, Point, and Pair Nodes for the Transport of Diluted
Species in Pipes Interface
• Theory for the Transport of Diluted Species in Pipes Interface

The Transport of Diluted Species in Pipes Interface has these boundary, edge, point,
and pair nodes available from the Physics ribbon toolbar (Windows users), Physics
context menu (Mac or Linux users), or right-click to access the context menu (all
users).:

In general, to add a node, go to the Physics toolbar, no matter what


operating system you are using. Subnodes are available by clicking the
parent node and selecting it from the Attributes menu.

• Concentration • Pipe Properties


• Convection and Diffusion • Reactions
• Initial Values • Wall Mass Transfer
• Mass Outflow

In the COMSOL Multiphysics Reference Manual see Table 2-4 for links
to common sections and Table 2-5 to common feature nodes. You can
also search for information: press F1 to open the Help window or Ctrl+F1
to open the Documentation window.

THE TRANSPORT OF DILUTED SPECIES IN PIPES INTERFACE | 91


Convection and Diffusion
Use the Convection and Diffusion node to define the fluid properties, velocity, diffusion
coefficient, and dispersion model. This node as present by default.

FLUID PROPERTIES
The default Density ρ (SI unit: kg/m3) uses the value From material. For User defined
enter a different value or expression.

The default Dynamic viscosity μ (SI unit: Pa·s) uses the value From material and
describes the relationship between the shear rate and the shear stresses in a fluid.
Intuitively, water and air have a low viscosity, and substances often described as thick,
such as oil, have a higher viscosity.

VELOCITY
Enter a value or expression for the Tangential velocity u (SI unit: m2/s). The default
is 0 m2/s.

DIFFUSION COEFFICIENT
Enter a value or expression for the diffusion coefficient Dc (SI unit: m2/s). The default
is 1 × 10-9 m2/s.

DISPERSION
Select a Dispersion model — User defined (the default), Taylor (laminar, circular cross
section), or Taylor (turbulent, circular cross section). For User defined, enter a value or
expression for the Dispersion coefficient DD (SI unit: m2/s). The default is 0 m2/s.
Find more detail in the theory section Dispersion.

Initial Values
The Initial Values node adds an initial value for the concentration that can serve as an
initial condition for a transient simulation or as an initial guess for a nonlinear solver.

INITIAL VALUES
Enter values or expressions for the initial value of the Concentration c
(SI unit: mol/m3). The default is 0 mol/m3.

92 | CHAPTER 4: CHEMICAL SPECIES TRANSPORT INTERFACES


Reactions
Use the Reactions node to account for the consumption or production of species.
Define the reaction rate expression as needed, which displays on the right-hand side of
the species transport equations in the Convection and Diffusion node.

REACTIONS
Enter a Reaction rate Rc (SI unit: mol/(m3·s)). The default is 0 mol/(m3·s).

Wall Mass Transfer


Use the Wall Mass Transfer node to model species loss to the surroundings of the pipe.
This could be used if the diluted species is soluble in the pipe wall or if the pipe wall is
semipermeable. A mass transfer coefficient is used to model the loss rate, and external
bulk concentration i specified to define the driving force.

WALL MASS TRANSFER


For each species, enter a Mass transfer coefficient kwall,c (SI unit: m/s). The default is
0 m/s. For each species, select an option from the list (when available) or define the
Bulk concentration cbulk (SI unit: mol/m3). The default is 0 mol/m3.

Concentration
The Concentration node adds a point condition for the species concentration. For
example, a c = c0 condition specifies the concentration of species c.

CONCENTRATION
Specify the Concentration cinc (SI unit: mol/(m3·s)) for each species. Enter a value or
expression in the field for each species. The default is 0 mol/(m3·s).

CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog box.

Mass Outflow
Use the Mass Outflow node to define species mass outflow. Mathematically this is
defined so that convection is the sole contribution to species mass transfer. Normally
this constitutes a well posed condition for all outflows.

THE TRANSPORT OF DILUTED SPECIES IN PIPES INTERFACE | 93


The Reacting Pipe Flow Interface
The Reacting Pipe Flow (rpfl) interface ( ), found under the Chemical Species
Transport branch ( ) when adding a physics interface, is a multiphysics interface that
combines the three physics interfaces: Pipe Flow, Heat Transfer in Pipes, and Transport
of Diluted Species in Pipes. The physics interface approximates the flow profiles in
pipes and channels by a 1D assumption on lines in 2D and 3D. Depending on
additional add-on products, multiple species can be modeled.

When this physics interface is added, these default nodes are also added to the Model
Builder — Fluid, Pipe Properties, Temperature, Pressure, Concentration, and Initial Values.
Then, from the Physics toolbar, add other nodes that implement, for example,
boundary conditions and volume forces. You can also right-click Reacting Pipe Flow to
select physics features from the context menu.

SETTINGS
The Label is the default physics interface name.

The Name is used primarily as a scope prefix for variables defined by the physics
interface. Refer to such physics interface variables in expressions using the pattern
<name>.<variable_name>. In order to distinguish between variables belonging to
different physics interfaces, the name string must be unique. Only letters, numbers, and
underscores (_) are permitted in the Name field. The first character must be a letter.

The default Name (for the first physics interface in the model) is rpfl.

FLUID MODEL
Select a Fluid model — Newtonian (the default), Power law, Bingham, or Herschel-Bulkley.

PHYSICAL MODEL
Enter a Reference pressure level pref (SI unit: Pa). The default value is 1[atm].

DEPENDENT VARIABLES
This physics interface defines these dependent variables (fields). If required, edit the
name, but dependent variables must be unique within a model:

• Pressure p (SI unit: Pa)


• Tangential velocity u (SI unit: m/s)

94 | CHAPTER 4: CHEMICAL SPECIES TRANSPORT INTERFACES


• Temperature T (SI unit: K)
• Concentration c (SI unit: mol/m3)

DISCRETIZATION
Use this section to change the discretization order for the dependent variables.

• The Pipe Flow Interface


• The Heat Transfer in Pipes Interface
• The Transport of Diluted Species in Pipes Interface
• Edge, Boundary, Point, and Pair Nodes for the Reacting Pipe Flow
Interface

Edge, Boundary, Point, and Pair Nodes for the Reacting Pipe Flow
Interface
The Reacting Pipe Flow Interface has these boundary, edge, point, and pair nodes
available from the Physics ribbon toolbar (Windows users), Physics context menu (Mac
or Linux users), or right-click to access the context menu (all users).

In general, to add a node, go to the Physics toolbar, no matter what


operating system you are using. Subnodes are available by clicking the
parent node and selecting it from the Attributes menu.

These nodes are described in this section:

• Initial Values • Fluid Properties


• Convection and Diffusion • Pipe Properties
• Fluid

THE REACTING PIPE FLOW INTERFACE | 95


These nodes are described for the Pipe Flow interface (listed in alphabetical order):

• Bend • The Nonisothermal Pipe Flow


• Contraction/Expansion Interface

• Inlet • Pressure

• No Flow • Pump

• Outlet • T-Junction

• Phase Fractions • Valve


• Volume Force

These nodes are described for the Heat Transfer in Pipes interface (listed in
alphabetical order):

• External Film Resistance • Internal Film Resistance


• Heat Outflow • Temperature
• Heat Source • Wall Heat Transfer
• Heat Transfer • Wall Layer

These nodes are described for the Transport of Diluted Species in Pipes interface
(listed in alphabetical order):

• Concentration
• Mass Outflow
• Reactions
• Wall Mass Transfer

In the COMSOL Multiphysics Reference Manual see Table 2-4 for links
to common sections and Table 2-5 to common feature nodes. You can
also search for information: press F1 to open the Help window or Ctrl+F1
to open the Documentation window.

Pipe Properties
The Pipe Properties node is used to define the pipe shape and flow resistance.

96 | CHAPTER 4: CHEMICAL SPECIES TRANSPORT INTERFACES


SHAPE
The Pipe Shape settings are the same as for the Pipe Properties node described for the
Pipe Flow interface.

FLOW RESISTANCE
The Friction model is User defined by default. Enter a value or expression for the Darcy
friction factor fD (dimensionless). The default is 0.

Initial Values
The Initial Values node adds initial values for the pressure, tangential velocity,
temperature, and concentration that can serve as an initial condition for a transient
simulation or as an initial guess for a nonlinear solver.

INITIAL VALUES
Enter values or expressions for the initial value of the:

• Pressure p (SI unit: Pa). The default is 101325 Pa.


• Tangential velocity u (SI unit: m/s). The default is 0 m/s.
• Temperature T (SI unit: K). The default is 293.15 K.
• Concentration c (SI unit: mol/m3). The default is 0 mol/m3.

Fluid
Use the Fluid node to define the density, dynamic viscosity, and heat convection and
conduction properties.

FLUID PROPERTIES
The default Density ρ (SI unit: kg/m3) uses the value From material. For User defined
enter a different value or expression.

The default Dynamic viscosity μ (SI unit: Pa·s) uses the value From material and
describes the relationship between the shear rate and the shear stresses in a fluid.
Intuitively, water and air have a low viscosity, and substances often described as thick,
such as oil, have a higher viscosity.

DIFFUSION COEFFICIENT
Enter a value or expression for Dc (SI unit: m2/s). The default is 1 × 10-9 m2/s.

THE REACTING PIPE FLOW INTERFACE | 97


DISPERSION
Select a Dispersion model — User defined (the default), Taylor (laminar, circular cross
section), or Taylor (turbulent, circular cross section). For User defined, enter a value or
expression for the Dispersion coefficient DD (SI unit: m2/s). The default is 0 m2/s. For
detailed information about dispersion, see the theory section Dispersion.

HEAT CONVECTION AND CONDUCTION


The default Heat capacity at constant pressure Cp (SI unit: J/(kg·K)), Ratio of specific
heats γ (dimensionless), and Thermal conductivity k (SI unit: W/(m·K)) all use values
From material. For User defined enter different values or expressions.

Fluid Properties
The Fluid Properties node adds the momentum equations solved by the physics
interface, except for volume forces which are added by the Volume Force feature. The
node also provides an interface for defining the fluid properties of the fluid.

FLUID PROPERTIES
The default Density ρ (SI unit: kg/m3) is User defined and is 1 × 103 kg/m3.

The fluid model is selected as non-Newtonian, enter a value or expression for the more
parameters like Yield stress τs (SI unit: Pa) and Plastic viscosity μs (SI unit: Pa·s).

Convection and Diffusion


Use the Convection and Diffusion node to define the fluid properties, velocity, diffusion
coefficient, and dispersion model. This node is present by default.

FLUID PROPERTIES
The default Density ρ (SI unit: kg/m3) is User defined and is 1 × 103 kg/m3.

Enter a value or expression for the Yield stress τs (SI unit: Pa) and Plastic viscosity μs
(SI unit: Pa·s). The defaults are 0 Pa and 0 Pa·s, respectively.

VELOCITY
No user selection is required for the Tangential velocity u.

DIFFUSION COEFFICIENT
Enter a value or expression for the diffusion coefficient Dc (SI unit: m2/s). The default
is 1 × 10-9 m2/s.

98 | CHAPTER 4: CHEMICAL SPECIES TRANSPORT INTERFACES


DISPERSION
Select a Dispersion model — User defined (the default) or Fan (laminar, circular cross
section). For User defined, enter a value or expression for the Dispersion coefficient DD
(SI unit: m2/s). The default is 0. For detailed information about dispersion, see the
theory section Dispersion.

THE REACTING PIPE FLOW INTERFACE | 99


Theory for the Transport of Diluted
Species in Pipes Interface
The Transport of Diluted Species in Pipes Interface theory is described in this section.
This physics interface solves a mass balance equation for pipes in order to compute the
concentration distribution of a solute in a dilute solution, taking the flow velocity as
input.

MASS CONSERVATION EQUATION


The mass transport equation for a diluted species i an incompressible fluid flowing in
a pipe is:

∂c i
A ------- + Au ⋅ ∇c i = ∇ ⋅ ( A ( D i + D D, i ) ∇c i ) + A
∂t  Rik +  Rwall, ik (4-1)
k k

where A (SI unit: m2) is the cross section area available for flow, ci (SI unit: mol/m3)
is the diluted species concentration, and u a velocity field. Further, Di (SI unit: m2/s)
is the species diffusion coefficient and DD,i (SI unit: m2/s) is the species dispersion
coefficient. The second term on the right hand side, Rik (SI unit: mol/(m3·s)),
corresponds a source or sink due to chemical reaction number k for species i. Finally,
Rwall,ik (SI unit: mol/(m·s)), is a source term due to mass transfer contribution k
through the pipe wall.

For information about tangential velocity in pipe flow, see Theory for the
Pipe Flow Interface.

Dispersion
The Transport of Diluted Species in Pipes interface can automatically calculate the axial
dispersion of species transported in a solvent stream.

For laminar flow in circular straight pipes, the total dispersion is given by the sum of
molecular diffusion, Di (SI unit: m2/s), and the effect of the velocity profile causing
some fractions of an initial plane of fluid in the pipe to move faster than others.
COMSOL Multiphysics uses the Taylor (Ref. 22) correlation for this second
contribution, DD,i (SI unit: m2/s):

100 | CHAPTER 4: CHEMICAL SPECIES TRANSPORT INTERFACES


2 2
u d
D D,i = ---------------- (4-2)
192D i

This expression is valid if:

L
---- > 0.04 ud
------- (4-3)
d Di

where d is the pipe diameter and L a characteristic pipe length. For turbulent
conditions, Taylor (Ref. 23) suggests:

d fD
D D,i = 10.1 --- u ----- (4-4)
2 2

For non-Newtonian fluids in the laminar regime, Fan (Ref. 24) extended the analysis
of Taylor:

2 2
u d
D D,i = k ------------- (4-5)
4D i

with k for Power-law fluids given by:

1
k = ---------------------------------------- (4-6)
2( n + 3 )( n + 5 )

and k for Bingham plastic fluids:

3 --- – 44 ------ φ + 16 ------ φ 2 + φ 40 – 28 5 3 6 8 7


------ φ 0 – --- φ 0 + --- φ 0 – 29 ------ φ 0 + --- φ 0 – φ 0 ln φ 0
8 1 10 8
 8 35 0 15 0 15 5 5 56 5 
k = -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2
- (4-7)
2 4
2 ( 3 + 2φ 0 + φ 0 ) ( 1 – φ 0 )

The parameter φ0 is

r0
φ 0 = ----- (4-8)
R

where R is the pipe radius and r0 is the radius of the plug flow region in the plastic
flow, defined as

2Lτ B
r 0 = -------------- (4-9)
Δp

This can be rewritten as

THEORY FOR THE TRANSPORT OF DILUTED SPECIES IN PIPES INTERFACE | 101


4τ B
φ 0 = -----------------
T
- (4-10)
d∇ p

where the tangential pressure gradient is calculated by the Pipe Flow interface.

STABILIZATION OF THE MASS TRANSFER EQUATION


The transport equation in the Transport of Diluted Species in Pipes node is
numerically stabilized.

Numerical Stabilization in the COMSOL Multiphysics Reference


Manual

102 | CHAPTER 4: CHEMICAL SPECIES TRANSPORT INTERFACES


5

Acoustics Interfaces

This module has extra functionality for simulating acoustics in pipe networks. You
can access this functionality under the Acoustics>Pipe Acoustics branch ( ) when
adding a physics interface. The documentation of the Pipe Acoustics interfaces is
found in the Acoustics Module User’s Guide in:

• The Pipe Acoustics Frequency Domain and Transient Interfaces


• Theory for the Pipe Acoustics Interfaces

In the Acoustics Module User’s Guide you also find information about all the other
acoustics physics interfaces as well as about the multiphysics coupling to Pressure
Acoustics.

103
104 | CHAPTER 5: ACOUSTICS INTERFACES
6

Pipe Mechanics

This module has extra functionality for computing displacements, rotations,


stresses, strains in pipes using The Pipe Mechanics Interface, which you find under
the Structural Mechanics branch ( ) when adding a physics interface.

The documentation of The Pipe Mechanics Interface is found in the Structural


Mechanics Module documentation, which is supplied with the Pipe Flow Module
(irrespectively of whether a separate Structural Mechanics Module license is
purchased).

105
106 | CHAPTER 6: PIPE MECHANICS
7

Multiphysics Couplings

This chapter contains a description of all the multiphysics coupling features of the
Pipe Flow Module.

107
Coupling Features
The Pipe Flow Module contains the following Multiphysics Coupling features:

• Pipe Connection
• Pipe Wall Heat Transfer
• Acoustic-Pipe Acoustic Connection
• Structure-Pipe Connection
• Fluid-Pipe Interaction
The couplings features are described below.

Pipe Connection
You can easily couple Pipe Flow Interface with Single-Phase Flow interfaces using
multiphysics coupling feature Pipe Connection ( ). The Pipe Connection node is only
available with some COMSOL products (see https://www.comsol.com/products/
specifications/).

The Pipe Connection multiphysics coupling couples a 1D pipe segment modeled with
the Pipe Flow interface with a 3D single phase flow body.

BOUNDARY SELECTION, FLUID


Select the boundary that corresponds to the inlet/outlet of the 3D model coupled to
Pipe Flow interface.

POINT SELECTION, PIPE


Select the point that corresponds to the inlet/outlet of the pipe model coupled to the
3D fluid flow domain.

CONNECTION SETTINGS
There is an automatic search for possible adjacent geometrical objects. If you want to
modify the selections, select the Manual control of selections check box. If you clear it,
the selections will be replaced by the automatic ones.

Note that, you can connect only one pipe segment to 2D surface that comprises an
orifice in a 3D body.

108 | CHAPTER 7: MULTIPHYSICS COUPLINGS


The connection ensure continuity in mass flux and pressure across the connection,
regardless of flow direction.

Convective Flow in a Heat Exchanger Plate: Application Library path


Pipe_Flow_Module/Tutorials/heat_exchanger_plate

Pipe Wall Heat Transfer


Add the Pipe Wall Heat Transfer multiphysics coupling node ( ) to create transitions
between domains modeled using the Heat Transfer interfaces and edges modeled using
the Heat Transfer in Pipes or Nonisothermal Pipe Flow interfaces. The Pipe Wall Heat
Transfer adds the source term Qwall (SI unit: W/m) to account for heat exchange
through the pipe wall. The source is averaged on a cylinder of the pipe radius around
the selected edges. The diskavg operator is used for source averaging around the
edge. The coupling also passes the external temperature calculated by averaging the
temperature in Heat Transfer interface to Wall Heat Transfer feature in the pipe interface.
The circavg operator is used for averaging the temperature across the pipe. The
circavg and diskavg operators are used to avoid obtaining an increasing pipe
temperature value when meshing finer than the pipe diameter.

SETTINGS
The Label is the default multiphysics coupling feature name.

The Name is used primarily as a scope prefix for variables defined by the coupling node.
Refer to such variables in expressions using the pattern <name>.<variable_name>. In
order to distinguish between variables belonging to different coupling nodes or physics
interfaces, the name string must be unique. Only letters, numbers, and underscores (_)
are permitted in the Name field. The first character must be a letter.

The default Name (for the first multiphysics coupling feature in the model) is pwhtc1.

EDGE SELECTION
By default, the selection of the coupling node is the edges inside the domains selected
in the Heat Transfer interface that also selected in Wall Heat Transfer feature in the Heat
Transfer in Pipes or Nonisothermal Pipe Flow interfaces.

COUPLING FEATURES | 109


COUPLED INTERFACES
This section defines the physics involved in the coupling. The Heat transfer in pipes and
Heat transfer drop-down menu lists include all applicable physics interfaces.

Ground Heat Recovery for Radiant Floor Heating: Application Library


path Pipe_Flow_Module/Heat_Transfer/ground_heat_recovery

Cooling of an Injection Mold: Application Library path


Pipe_Flow_Module/Heat_Transfer/mold_cooling

Acoustic-Pipe Acoustic Connection


The Acoustic-Pipe Acoustic Connection multiphysics coupling ( ) is used to couple the
Pipe Acoustics interface to the Pressure Acoustics interface. The Acoustic-Pipe Acoustic
Connection multiphysics coupling is only available with some COMSOL products (see
https://www.comsol.com/products/specifications/).

The documentation of Acoustic-Pipe Acoustic Connection multiphysics coupling is


found in the Acoustic Module documentation.

Acoustics of a Pipe System with 3D Bend and Junction: Application


Library path Acoustics_Module/Tutorials,_Pipe_Acoustics/
acoustics_pipe_system

Probe Tube Microphone: Application Library path Acoustics_Module/


Tutorials,_Pipe_Acoustics/probe_tube_microphone

Fluid-Pipe Interaction
The Fluid-Pipe Interaction ( ) multiphysics node provides a way to transfer fluid loads
from the Pipe Flow interface to the Pipe Mechanics interface.

The documentation of Fluid-Pipe Interaction multiphysics coupling is found in the


Structural Mechanics Module documentation.

Structure-Pipe Connection
The Structure-Pipe Connection ( ) multiphysics node is used to couple the structural
mechanics interfaces to the Pipe Mechanics interface. The Structure-Pipe Connection

110 | CHAPTER 7: MULTIPHYSICS COUPLINGS


multiphysics coupling is only available with some COMSOL products (see https://
www.comsol.com/products/specifications/).

The documentation of Structure-Pipe Connection multiphysics coupling is found in


the Structural Mechanics Module documentation.

COUPLING FEATURES | 111


112 | CHAPTER 7: MULTIPHYSICS COUPLINGS
I n d e x
A Application Libraries window 14 Nusselt 85
application library examples Prandtl 86
acpr interface 110 Rayleigh 87
nonisothermal pipe flow 41 Reynolds 51
pipe flow 22 documentation 12
pressure acoustics, frequency domain
E edge nodes
110
heat transfer in pipes 72
water hammer 45
non-isothermal pipe flow 41
B bend (node) 31 pipe flow 22
bend specification 31 reacting pipe flow 95
Bingham model 56 transport of diluted species in pipes 91
boundary nodes water hammer 46
heat transfer in pipes 72 emailing COMSOL 15
nonisothermal pipe flow 41 extended Einstein 54
pipe flow 22 external film resistance (node) 75
reacting pipe flow 95 external film resistance, theory 86
transport of diluted species in pipes 91
F flow resistance 26, 58
water hammer 46
fluid (node)
C closed (node) nonisothermal pipe flow 42
water hammer 48 reacting pipe flow 97
Colebrook’s explicit formula 52 fluid models 21
common settings 11 fluid properties (node) 23, 98
compressible flow 42 forced convection 86
concentration (node) 93
G gas-liquid, effective Reynolds number 54
Connection 110
gas-liquid, friction factor multiplier 53
contraction/expansion (node) 32
Gnielinski equation for Nusselt number
convection and diffusion (node)
86
reacting pipe flow 98
Grashof number 87
transport of diluted species in pipes 92
H Haaland equation 52
D Darcy friction factor 49
heat outflow (node) 79
expressions for 51
heat source (node) 73
dimensionless numbers
heat transfer (node)
Grashof 87
heat transfer in pipes 72
Hedström 56, 58
nonisothermal pipe flow 43
modified Reynolds 55
heat transfer in pipes interface 71

INDEX| 113
theory 80 physics symbols
Hedström number 56, 58 showing 39
pipe connection (node) 108
I initial values (node)
pipe cross section area 80
heat transfer in pipes 78
pipe flow interface 21
pipe flow 27
theory 49
reacting pipe flow 97
pipe properties (node)
transport of diluted species in pipes 92
pipe flow 25
inlet (node) 28
reacting pipe flow 96
internal film resistance (node) 75
water hammer 47
internal film resistance, theory 85
point nodes
internet resources 12
heat transfer in pipes 72
K knowledge base, COMSOL 15
nonisothermal pipe flow 41
Korteweg formula 66
pipe flow 22
L local friction loss (node) 47 reacting pipe flow 95
loss coefficients 59 transport of diluted species in pipes 91
lossless fitting (node) 30 water hammer 46
Prandtl number 86
M mass outflow (node) 93
pressure (node)
momentum and continuity equations 49
pipe flow 30
MPH-files 14
water hammer 48
N no flow (node) 30
Pressure Work 42
nodes, common settings 11
pump (node) 33
nonisothermal pipe flow interface 40
R Rayleigh number 87
theory 49
reacting pipe flow interface 94
Nusselt number 85
theory 80, 100
n-way junction (node) 38
reactions (node) 93
n-way junctions 59
Reynolds number 51
O outlet (node) 29
Reynolds number, modified 55
P pair nodes
S shell balance 82
heat transfer in pipes 72
showing
nonisothermal pipe flow 41
physics symbols 39
pipe flow 22
single-phase fluids 51
reacting pipe flow 95
stabilization 87
transport of diluted species in pipes 91
standard settings 11
water hammer 46
Stokes formula 51
phase fractions (node) 27
surface roughness 27
physics interfaces, common settings 11
values for 58

INDEX| 114
Swamee-Aggarwal equation 56–57 Y-junctions 59
Swamee-Jain equation 52
symbols for physics 39

T T- junction (node) 34
tangential velocity 50
technical support, COMSOL 15
temperature (node) 78
theory
heat transfer in pipes 80
non-isothermal pipe flow 49
pipe flow 49
reacting pipe flow 80, 100
transport of diluted species in pipes
100
water hammer 65
T-junctions 59
transport of diluted species in pipes in-
terface 90
theory 100
two-phase flow 53
two-phase friction factor 53

U unit tangent vector 50

V valve (node) 31
velocity (node)
water hammer 48
volume force (node) 25
volumetric void fraction 54
von Karman formula 52

W wall heat transfer (node) 74, 78


wall heat transfer, theory 81
wall layer (node) 77
wall mass transfer (node) 93
water hammer interface 44
theory 65
websites, COMSOL 15
Wood equation 52

Y Y- junction 36

INDEX| 115
116 | I N D E X

You might also like