CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

non newtonian viscosity problem

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By meangreen
  • 1 Post By meangreen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 27, 2012, 07:21
Default non newtonian viscosity problem
  #1
Member
 
Dr. Moloy Kumar Banerjee
Join Date: Jun 2011
Posts: 71
Rep Power: 14
moloykb is on a distinguished road
Dear all,
I am simulating the problem of blood flow through an artery in 2D considering laminar flow. For this I am using the Walburn and Scneck model to define the blood viscosity using the equation:
mu_lam=K*(strain)^(n-1), where K=14.67*10^(-3) and n=0.7755. In order to define the viscosity I am using the following UDF:
#include "udf.h"
DEFINE_PROPERTY(cell_viscosity_power_law,c,t)
{
double mu_lam;
double strain;
double muinf = 14.67e-3;
double n = .7755;
strain = pow(C_DUDX(c, t),2)+ pow(C_DVDY(c, t),2)+
2*pow(C_DUDY(c, t)+ C_DVDX(c, t),2)+
2*pow(C_DUDZ(c, t),2)+
2*pow(C_DVDZ(c, t),2);
strain = pow(strain, 0.5);
strain =fabs(strain);
mu_lam=muinf*pow(strain,n-1);
return mu_lam;
}
But, once I try to solve it the solver gives the error: Divergence detected in the AMG solver.
Please help me....
moloykb is offline   Reply With Quote

Old   July 3, 2012, 16:47
Default
  #2
Member
 
Casey
Join Date: Jun 2009
Posts: 98
Rep Power: 16
meangreen is on a distinguished road
You should repost this in the UDF section of the forum. You will likely get more help.
presidentmamun likes this.
meangreen is offline   Reply With Quote

Old   July 3, 2012, 16:48
Default
  #3
Member
 
Casey
Join Date: Jun 2009
Posts: 98
Rep Power: 16
meangreen is on a distinguished road
I think it is because when Strain = 0, you will be dividing by zero. Try adding an if statment in there that says if strain is below some value than mu_lam = some large value... or make stain = pow(C_DU...) + 1x10^(-12),
presidentmamun likes this.
meangreen is offline   Reply With Quote

Old   July 4, 2012, 02:51
Default
  #4
Member
 
Dr. Moloy Kumar Banerjee
Join Date: Jun 2011
Posts: 71
Rep Power: 14
moloykb is on a distinguished road
Thanks for the reply. It works properly.
moloykb is offline   Reply With Quote

Old   July 5, 2012, 15:47
Default
  #5
Member
 
Casey
Join Date: Jun 2009
Posts: 98
Rep Power: 16
meangreen is on a distinguished road
no problem.
meangreen is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
area does not match neighbour by ... % -- possible face ordering problem St.Pacholak OpenFOAM 10 February 7, 2024 21:50
Eulerian Modeling: Frictional Viscosity Help meangreen FLUENT 1 January 25, 2018 15:13
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
Submerged fin, Convergence problem supermouniette FLUENT 10 July 6, 2009 10:47
Periodic flow boundary condition problem sudha FLUENT 3 April 28, 2004 08:40


All times are GMT -4. The time now is 19:04.