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
Posted 13 mars 2014, 06:07 UTC−4 Fluid & Heat, Computational Fluid Dynamics (CFD), Materials, Modeling Tools & Definitions, Parameters, Variables, & Functions Version 4.3a 2 Replies
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
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
Attachments:
2 Replies Last Post 18 mars 2014, 05:03 UTC−4