Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 26527

Laminar flow of Carreau fluid with variable density

$
0
0
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

Viewing all articles
Browse latest Browse all 26527

Trending Articles