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.

Change fluid properties - non newtonian flow

Please login with a confirmed email address before reporting spam

Hi,

I need to simulate a turbulent fluid flow in a pipe with viscosity function of fluid velocity or shear rate. The viscosity has an expression this type: viscosity = a*u^b, where b<0.
In comsol I am doing
Global Definitions -> Variables -> Vis = a*mod1.spf.U^b,
where a and b are defined in Global Definitions -> Parameters -> a=0.01 and b=-0.15.

When compute the problem I get the following error:

The following feature has encountered a problem:
- Feature: Dependent Variables 1 (sol1/v1)
-Error: Failed to evaluate expression.

When b>0 the simulation goes well without error, the problem appears when b>0.

When I try: Turbulent Flow -> Fluid Properties -> Dynamic viscosity: non-newtonian power law I get the same error. When I define that n=1 and the problem then it is newtonian I get the same error.

Someone can help me?

Carla

2 Replies Last Post 17 oct. 2011, 04:21 UTC−4
Nagi Elabbasi Facebook Reality Labs

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 16 oct. 2011, 13:04 UTC−4
When b is negative COMSOL cannot evaluate the expression if spf.U is zero (or negative). Instead try (spf.U+epsilon)^b where epsilon is a small positive number.

Nagi Elabbasi
Veryst Engineering
When b is negative COMSOL cannot evaluate the expression if spf.U is zero (or negative). Instead try (spf.U+epsilon)^b where epsilon is a small positive number. Nagi Elabbasi Veryst Engineering

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 17 oct. 2011, 04:21 UTC−4
Hello Nagi,

Thanks for your replying. I did your suggestion in COMSOL and the simulations now are Ok.

Carla
Hello Nagi, Thanks for your replying. I did your suggestion in COMSOL and the simulations now are Ok. Carla

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.