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.

Laminar flow of Carreau fluid with variable density

Please login with a confirmed email address before reporting spam

Hello,

I am using the Laminar flow physics together with the Carreau fluid properties and I was trying to write a formula for the density as a function of pressure 'p'. From my experimental data I have a fitted a curve of density vs pressure and the relation is logarithmic.
Now, I am writing this into the density field: 50*log(p) and I get an error because COMSOL is trying to find the logarithm of a negative number, which is weird since I don't think I have negative pressures. I tried to do something different just to see if I could avoid the error, so I wrote 50*log(abs(p)), but I am still getting the same error.

Does anybody know what might be wrong here?
Thanks in advance,
Daniel


2 Replies Last Post 2014年3月18日 GMT-4 05:03
Nagi Elabbasi Facebook Reality Labs

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2014年3月14日 GMT-4 11:07
Hi Daniel,

The pressure you are using in this equation is the gauge pressure which starts at zero and can go negative or positive. What you need is probably the absolute pressure, which you can account for doing something like “log(p+1e5)”.

Nagi Elabbasi
Veryst Engineering
Hi Daniel, The pressure you are using in this equation is the gauge pressure which starts at zero and can go negative or positive. What you need is probably the absolute pressure, which you can account for doing something like “log(p+1e5)”. Nagi Elabbasi Veryst Engineering

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2014年3月18日 GMT-4 05:03
Hello Nagi,

You were right, I didn't think of that. Now it works, thanks a lot for your suggestion.

Daniel
Hello Nagi, You were right, I didn't think of that. Now it works, thanks a lot for your suggestion. Daniel

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.