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

creepin flow with a new viscosity model

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Sören Sander

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 29, 2015, 19:13
Question creepin flow with a new viscosity model
  #1
New Member
 
jafar
Join Date: Jul 2014
Posts: 16
Rep Power: 11
bagherij is on a distinguished road
Dear Freeads
i am new in open foam,i want to analysis creeping flow( in steady state case) around cylinder ,i want to use a new viscosity model to calculate apparent viscosity.
how can i add a new viscosity model?
which solver should be used?
bagherij is offline   Reply With Quote

Old   March 30, 2015, 05:16
Default
  #2
Member
 
Sören Sander
Join Date: Sep 2012
Location: Germany
Posts: 43
Rep Power: 13
Sören Sander is on a distinguished road
Hi bagherij,

this should give you a starting point.

Best regards,
Sören Sander is offline   Reply With Quote

Old   April 3, 2015, 06:46
Talking Thank you
  #3
New Member
 
jafar
Join Date: Jul 2014
Posts: 16
Rep Power: 11
bagherij is on a distinguished road
Dear Sören
thanks,i added new viscosity model ,now i want to calculate shear stress( and compare with yield stress) ,how can i do it?
Best regards
bagherij is offline   Reply With Quote

Old   April 7, 2015, 03:03
Default
  #4
Member
 
Sören Sander
Join Date: Sep 2012
Location: Germany
Posts: 43
Rep Power: 13
Sören Sander is on a distinguished road
The shear stress tensor is calculated by

1. Define a volTensorField named "tau" in your createFields.H

2. Add the following line to your solver
Code:
tau = -mu*(fvc::grad(U)+(fvc::grad(U)).T());
where "mu" is the dynamic viscosity of the system. Depending on your viscosity model, you might have to replace this with your local mu.
bagherij likes this.
Sören Sander is offline   Reply With Quote

Old   April 14, 2015, 15:14
Default
  #5
New Member
 
jafar
Join Date: Jul 2014
Posts: 16
Rep Power: 11
bagherij is on a distinguished road
Thanking for reply
i added that line to my solver ,when i run below message coming
Error nu was not declared in this scope
mu should be returned by viscosity model .
bagherij is offline   Reply With Quote

Old   April 15, 2015, 10:57
Default
  #6
Member
 
Sören Sander
Join Date: Sep 2012
Location: Germany
Posts: 43
Rep Power: 13
Sören Sander is on a distinguished road
In the tutorial nu is accessed by

Code:
Foam::tmp<Foam::volScalarField>Foam::singlePhaseTransportModel::nu() const
{
    return viscosityModelPtr_->nu();
}
Without knowing your code in detail, i guess you might access your nu the same way.
Sören Sander is offline   Reply With Quote

Old   July 4, 2015, 20:08
Default calculate shear rate for creeping flow around cylider
  #7
New Member
 
jafar
Join Date: Jul 2014
Posts: 16
Rep Power: 11
bagherij is on a distinguished road
Dear
I add a new viscosity model named "Zhu" to my problem by ,but when i run the code i got some error (in file error( attachment)).i also want to compare shear rate with yeld stressse but i dont know where should i do it.i attach my problem and new viscosity model.please help.
thanks jafar
Attached Files
File Type: gz channelTest6.tar.gz (3.4 KB, 7 views)
File Type: c error.C (3.3 KB, 9 views)
File Type: gz Zhu.tar.gz (58.7 KB, 8 views)
bagherij is offline   Reply With Quote

Reply

Tags
crepping flow, cylinders, drag force, new viscosity model, openfoam2.3


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
Help: apply B.C. in my granular flow model ? Derek Jing FLUENT 1 January 8, 2020 21:38
coefficient of power-Law viscosity Model in OpenFOAM Daniel_Khazaei OpenFOAM Running, Solving & CFD 6 April 5, 2016 04:23
parallel code samiam1000 SU2 3 March 25, 2013 04:55
Baldwin-Lomax model in wall jet flow K.S.Chang Main CFD Forum 0 December 7, 2005 01:51
fluid flow fundas ram Main CFD Forum 5 June 17, 2000 21:31


All times are GMT -4. The time now is 13:03.