PipeFlowModuleUsersGuide
PipeFlowModuleUsersGuide
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:
Chapter 1: Introduction
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
CONTENTS |4
Theory for the Water Hammer Interface 65
Flow Equations . . . . . . . . . . . . . . . . . . . . . . . 65
Reference for the Water Hammer Interface . . . . . . . . . . . . 67
CONTENTS |5
Concentration . . . . . . . . . . . . . . . . . . . . . . . . 93
Mass Outflow . . . . . . . . . . . . . . . . . . . . . . . . 93
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 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.
Acoustics
Pipe Acoustics
Single-Phase Flow
10 | CHAPTER 1: INTRODUCTION
PHYSICS INTERFACE ICON TAG SPACE AVAILABLE STUDY TYPE
DIMENSION
Nonisothermal Flow
Structural Mechanics
For detailed information about materials and the Liquids and Gases
Materials Library, see Materials in the COMSOL Multiphysics Reference
Manual.
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.
• 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.
• Press Ctrl+F1.
• From the File menu, select Help>Documentation ( ).
• Press Ctrl+F1.
• On the main toolbar, click the Documentation ( ) button.
• From the main menu, select Help>Documentation.
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.
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].
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.
This chapter has information about the physics interfaces in the Pipe Flow Module
found under the Fluid Flow branch ( ).
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.
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.
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.
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:
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
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
• Inlet • Pump
• No Flow • Valve
• Outlet • 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 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 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.
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
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.
• 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.
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.
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.
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
• 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.
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.
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.
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
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.
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.
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.
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
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
• 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).
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
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
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).
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.
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.
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
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
Bend Bend
Valve Valve
Pump Pump
Contraction/Expansion Contraction/Expansion
T-Junction T-Junction
Y-Junction Y-Junction
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:
• 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
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).
• 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:
These nodes are described for the Heat Transfer interface in the COMSOL
Multiphysics Reference Manual:
These nodes are described for the Pipe Flow interface (listed in alphabetical order):
• Inlet • Pressure
• No Flow • Pump
• Outlet • Valve
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.
For more information, see the section Theory for the Heat Transfer in Pipes Interface.
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.
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.
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
• 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.
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.
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.
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.
• 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.
∂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
Let
e t = e t, x e t, y e t, z
∂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
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)
μ
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
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)
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)
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
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.
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
ρ = φ 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)
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.
· 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
·
τ = τ 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
a – 0.193
f D, turbulent = 4 ⋅ 10 0 Re B (2-37)
with
1
---
b b b
fD = ( f D, laminar + f D, turbulent ) (2-39)
where
40000
b = 1.7 + ---------------- (2-40)
Re B
γ· 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
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
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
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
Gradual, angle of 2
convergence α > 22° (1 – β)
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
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
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
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).
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.
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.
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.
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.
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.
28. D.C. Rennels and H.M. Hudson, Pipe flow, A Practical and Comprehensive
Guide, John Wiley & Sons, 2012.
• 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.
∂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
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
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.
∂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
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:
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.
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.
• 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 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.
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 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.
Wall layers
Figure 3-1: Internal and external films and the associated film coefficients (blue), and
wall layers (dark and light gray).
Use the Pipe Wall Heat Transfer multiphysics coupling if the temperature in
surrounding 3D solid physics is calculated using Heat Transfer interface.
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.
SPECIFICATION
Select an External film heat transfer model — External forced convection (the default),
External natural convection, or User defined.
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 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.
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:
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.
Wall layers
Figure 3-3: Internal and external films and the associated film coefficients (blue), and
wall layers (dark and light gray).
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.
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.
∂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
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:
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.
r1 rN
Fluid domain
dr r0 Δwn
T T0 T1
T2
Tn
TN
Wall number: 1 2 n N
Text
r0 r
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
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).
T1 r1
Q1
dT = – --------------------- ⋅ --- dr
1
(3-6)
ΔL2πk 1 r
T0 r0
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)
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π )
2π
( 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
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):
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:
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
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 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)
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.
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 ) ]
Ra = PrGr (3-24)
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
This chapter has information about the physics interfaces found under the
Chemical Species Transport branch ( ).
In this chapter:
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.
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 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 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.
REACTIONS
Enter a Reaction rate Rc (SI unit: mol/(m3·s)). The default is 0 mol/(m3·s).
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.
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:
DISCRETIZATION
Use this section to change the discretization order for the dependent variables.
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).
• Inlet • Pressure
• No Flow • Pump
• Outlet • T-Junction
These nodes are described for the Heat Transfer in Pipes interface (listed in
alphabetical order):
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.
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:
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.
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).
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.
∂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):
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
1
k = ---------------------------------------- (4-6)
2( n + 3 )( n + 5 )
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
where the tangential pressure gradient is calculated by the Pipe Flow interface.
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:
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
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.
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.
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.
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.
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
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
V valve (node) 31
velocity (node)
water hammer 48
volume force (node) 25
volumetric void fraction 54
von Karman formula 52
Y Y- junction 36
INDEX| 115
116 | I N D E X