CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Transient Viscosity (https://www.cfd-online.com/Forums/openfoam-solving/127459-transient-viscosity.html)

sanj December 11, 2013 17:21

Transient Viscosity
 
Hello guys,

If I want to make the BirdCarreau non-newtonian viscosity model dependent on time; how can i get this done? In other words, the following is the model:

nuInf_
+ (nu0_ - nuInf_)
*pow(scalar(1) + sqr(k_*strainRate()), (n_ - 1.0)/2.0);

Now if I need to change it as follows:

nuInf_
+ (nu0_ - nuInf_)
*pow(scalar(1) + sqr(k_*strainRate()), (n_ - 1.0)/2.0) + 2*currentTime*nu0_;

How can i get the value of currentTime? currentTime is the value of time at that particular instant.

Please help me.

sanj December 16, 2013 12:19

Never mind. Problem solved

dsalgado February 20, 2017 09:32

Hello,

could you please explain how you did to get the current time value? I need to set a time-dependent value of the viscosity.

Thank you.

David


All times are GMT -4. The time now is 08:46.