Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Hagen–Poiseuille flow
Posted Feb 8, 2012, 5:52 a.m. EST Fluid & Heat, Modeling Tools & Definitions, Parameters, Variables, & Functions Version 4.2a 20 Replies
Please login with a confirmed email address before reporting spam
The Hagen-Poiseuille flow problem is a solution to a simple fluidic problem, the flow of a liquid through a circular tube. More infor here: en.wikipedia.org/wiki/Hagen%E2%80%93Poiseuille_equation
I've set up the simulation as follows:
The geometry is 2D axisymmetric (radius is 15, length is 800)
The material is water
The physics is laminar flow (spf)
I use incompressible flow as my physical model
And define the inlet and outlet
The inlet pressure is 100 Pa, the outlet pressure is 0 Pa
The mesh is 'physics controlled' and normal
I run the simulation and to obtain the flow rate I apply a surface integration spf.U with Dataset 'solution 1'.
The result for this particular simulation is: flow rate = 5.593e-11 M3/s
The problem is that the analytical result is different. I've put it in Matlab to make sure it isn't me. The result is a factor of 22 too high.
r = 15e-6; % radius
dP = 100; % Pressure
Nu = 0.001; % viscosity
L = 800e-6; % Length
Fr = (pi*r^4*dP)/(8*Nu*L) % Hagen-Poseiulle equation for flow rate
Fr = 2.4850e-012 M3/s
I've triple checked these results but I cannot find why they don't match up. A factor 22 indicates that something's wrong, either on the theory side, or on the simulation side. Because I've just started with Comsol I would like to ask anyone to look over this model and see if something is evidently wrong. If anyone can give me suggestions why the analytical model is not correct I would like to hear it as well.
Thanks in advance
Attachments:
Please login with a confirmed email address before reporting spam
This time it's a 3D model of a cilinder with the same dimensions and luckily I get a result that matches very good with the anlytical results.
I checked that the 2D axisymetric simulation and the 3d simulation were both correct by comparing the max velocity at the inlet. This was 0.00678 m/s in both cases.
So when calculating the flow-rate using the 2D axisymetric simulation. I am obviously doing something wrong. I think I'm not expressing the area for integration correctly.
Could anyone help me on how to obtain the flow rate from a 2D asi simulation?
Please login with a confirmed email address before reporting spam
Nagi Elabbasi
Veryst Engineering
Please login with a confirmed email address before reporting spam
Thanks for your help.
Please login with a confirmed email address before reporting spam
and by default, comsol give us spf.U which calculate 3D velocity.
I thought we should use spf.U rather U, as it represent the velocity in 3D domain.
sorry, i am just curious, and hope you can evaluate more.
Please login with a confirmed email address before reporting spam
I'm not sure the comment was ment on the U or spf.U but rather on the 2*pi*r multiplier that one should not forget (or ask COMSOL to include) as 2D-axi is a cut representation of 3D with a domain 2D-axi representing a domain 2D volume via the 2*pi*r multiplier, and a 2D-axi boundary (line) representing a surface in 3D via the same 2*pi*r. I usually call the 2*pi* r multiplier the "loop length", in analyogy with a coil loop often represented in 2Daxi
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
I was actually attempting the exact same experiment as you for the same reasons. Do you mind me asking what the specific inlet and outlet boundary conditions you used are? My problem is the velocity profile is flat at the beginning and has to correct itself into a parabolic formation as it progresses through the tube, almost as if it was pulling fluid from a reservoir I am running version 4.1 so I was unable to view your mph file. Any advice on this would be greatly appreciated.
Thanks,
Josh
Please login with a confirmed email address before reporting spam
This is actually something I can answer.
When using the velocity BC you have to make it parabolic as function of the distance from the walls.
Most people on Comsol seem to use the following notation: Vy*4*s*(1-s)
s is a variable across the edge of your 2D BC that goes from 0 to 1.
Where Vy is the max speed (m/s) of the flow.
If your design goes from left to right you put this in y velocity field, and leave x at 0. There is no flow parallel to the BC edge. You'll have to change it again for axisymmetric notations.
You will see this notation for velocity field more and more, it's one of those unwritten rules of Comsol.
Cheers,
Jaap
Please login with a confirmed email address before reporting spam
I would not call this an "unwritten rule of COMSOL" for me the parabolic profile is a properties of laminar fluid flow in a tuble or between two plates. The viscosity of a fluid shlows down the flow to about "0" at any fixed surface (at least in "low velocity" laminar case. The rule I would say is to rather propose an initial condition close to the reality, therefore a parabolic profile is closer than a flat field. The proof, the flat field develops to a parabolic one.
now if you want to study the velocity profile at the tube inlet, when coming froma larger reservoir, then you need to model at least part of the reservoir, and the inlet tube shape will influence the velocity distribution strongly
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
I meant that to write it as 's(1-s)'. Everyone seems to notate it that way without exception.
Please login with a confirmed email address before reporting spam
I agree but "s" being the arc length variable, normalised to "1" for all edges (at least in 2D), so the logic is there, and it's documented, but agree there are so many pages ;)
But the search function is working on the COMSOL help files too, so give it a try
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Josh
Please login with a confirmed email address before reporting spam
I tried to reproduce what you did to get an idea of how COMSOL calculates flow rate. However, I am also getting two different flow rates from analytical and simulation (nearly 22 unit difference). I went through the recommendations but still could not figure it out where the problem is. Would you please have a look at the snapshot of my model attached and advise me on that?
Analytical flow rate (Poiseuille flow): 0.32 m^3/s
Numerical (COMSOL) : 0.0144 m^3/s -------> using surface integration
I am using v42 and could not find the "compute surface integral" under the Integral setting as Nagi recommended for 2D.
Best regards,
Attachments:
Please login with a confirmed email address before reporting spam
I do not see why it should not give as the anlyitcal results, for me it has always matched, within 10-20%often far better depending on meshing and on model
the 2*pi*r multiplier applies onlyy to 2D-Axi, the option is in one of the Definition Model coupling Integration node sub-tab, closed by default. But you can also easily add the 2*pi*r by hand, so long you do not both, you see the error in case in the units
In 3D a direct integration over the bondary should work, provided the mesh is fine enough to correctly resolve the velocity along the tue axis, and the parabolic profile across the boundary
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Nagi Elabbasi
Veryst Engineering
Please login with a confirmed email address before reporting spam
Thank you so much for your help,
That's right, my mesh is quite coarse on the boundary where I compute the surface integration.
I was thinking that I should get better result (for the same mesh quality) when I am using volume intergration or volume averaging instead of surface integration but still not that much difference!
Regards,
saeid
Please login with a confirmed email address before reporting spam
Check the KB (knowledge Base of COMSOL) about flux derivations
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Thanks again Ivar,
Regards,
Please login with a confirmed email address before reporting spam
Multiplying the radius and the length by 10^-6 gives the same result as analytical method.
Thanks Nagi,
Regards,
saeid
Please login with a confirmed email address before reporting spam
Yes use the units they help ;) But I have asking COMSOL to pls add the units by the triedre x,y,z, for the graphics too, as when we see a graph we have no indications of the units, putting a small (m) or (mm) or (um), would not take a big effort, but that one they have not managed yet ;)
So perhaps if we are several to send a demand to support it will come.
My demand:, all graphs shall (mandatory) have clear indications where, what, when, whom, ... so also UNITS, specially as everaything else (almost) has units in COMSOL, that is one of their best V&V features so far, very handy, and even better if fully systematic
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
You are exactly right. Sometimes small things are not really small and could help too much.
I also kindly request COMSOL to add units to the graphs as well.
Regards,
Saeid
Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.