CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

icoUncoupledKinematicParcelFoam: temperature dependent viscosity

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes
  • 1 Post By ybapat
  • 2 Post By ybapat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 24, 2014, 21:36
Default icoUncoupledKinematicParcelFoam: temperature dependent viscosity
  #1
Member
 
Nadish Saini
Join Date: Feb 2014
Location: Raleigh, North Carolina
Posts: 39
Rep Power: 12
90nash is on a distinguished road
Hello Foamers,

I am trying to compare particle trajectories with and without a temperature dependent viscosity model. For this i modified the simpleFoam solver to include temperature equation and also generated a new library file to include a temperature dependent viscosity model.
Now i need to modify the icoUncoupledKinematicParcelFoam solver so that it reads the nu values from the 0 directory, generated by the above solver, instead of reading it from transportProperties directory (just like icoUncoupledKinematicParcelFoam reads U file from 0 directory of case)

Can anyone please tell me how this can be done? It will be a tremendous help.

Thanks
90nash is offline   Reply With Quote

Old   March 25, 2014, 02:08
Default
  #2
Senior Member
 
Yogesh Bapat
Join Date: Oct 2010
Posts: 102
Rep Power: 16
ybapat is on a distinguished road
Hello,

You can read nu as a volScalarField from 0 file very similar to U field.

-Yogesh
ybapat is offline   Reply With Quote

Old   March 25, 2014, 22:33
Default
  #3
Member
 
Nadish Saini
Join Date: Feb 2014
Location: Raleigh, North Carolina
Posts: 39
Rep Power: 12
90nash is on a distinguished road
Hello Yogesh,
Thank you for your reply!! I played around with createFields.H file and was able to successfully compile a solver which takes nu file as input from 0 folder.


I would really appreciate if you could help me with another question. I was using power law model for viscosity and used k value as 0.035 [Pa.s^(n)] and n 0.6 (got these values from a reference paper on blood flow). However i am getting huge time step continuity errors (simpleFoam solver, OF 2.1.1) for this k value.
I searched the forum and found that some people have used very large values for k (2500). If i use such high value, the solution does converge. Can you tell me what i am doing wrong. Is k value supposed to be this high?
The same issue is also reported in this post:
http://www.cfd-online.com/Forums/ope...-openfoam.html
90nash is offline   Reply With Quote

Old   March 26, 2014, 09:00
Default
  #4
Senior Member
 
Yogesh Bapat
Join Date: Oct 2010
Posts: 102
Rep Power: 16
ybapat is on a distinguished road
Hello,

As you have taken k value from some paper it should be correct. What you can try is to do a few iterations with constant viscosity value so you get some flow field and then switch to power law for viscosity. This should help you in converging your case.

Regards,
-Yogesh
90nash likes this.
ybapat is offline   Reply With Quote

Old   March 27, 2014, 00:20
Default
  #5
Member
 
Nadish Saini
Join Date: Feb 2014
Location: Raleigh, North Carolina
Posts: 39
Rep Power: 12
90nash is on a distinguished road
Excellent Advice Yogesh. Thank you!!
I ran two time steps with constant viscosity model and then switched to power law. The solution converged.
Although i don't understand clearly why this happens.

Best,
Nadish
90nash is offline   Reply With Quote

Old   March 27, 2014, 00:43
Default
  #6
Senior Member
 
Yogesh Bapat
Join Date: Oct 2010
Posts: 102
Rep Power: 16
ybapat is on a distinguished road
Hello ,

Reason is that power law uses velocity gradients which are not stable when you start your simulation. Doing a few iterations with constant mu helps to stabilize velocity gradients.

-Yogesh
90nash and Svensen like this.
ybapat is offline   Reply With Quote

Reply

Tags
particle tracking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[openSmoke] libOpenSMOKE Tobi OpenFOAM Community Contributions 562 January 25, 2023 10:21
Temperature dependent Non-Newtonian viscosity UDF cric92 Fluent UDF and Scheme Programming 0 April 14, 2013 07:31
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 02:27
Poor convergence with temperature dependent density on modified pisoFOAM ovie OpenFOAM 1 March 20, 2011 04:19
FIDAP and temperature dependent mat properties semetay FLUENT 0 July 11, 2006 14:45


All times are GMT -4. The time now is 20:28.