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

problem with wallShearstress at interFaom

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 20, 2012, 02:45
Default problem with wallShearstress at interFaom
  #1
Member
 
Jignesh
Join Date: Aug 2011
Location: India
Posts: 68
Rep Power: 14
jignesh_thaker2007 is on a distinguished road
Send a message via Yahoo to jignesh_thaker2007
Hi everyone

Can you tel me how to write the value of wallShearstress in laminar pipe flow.

Actually i gave the command of wallShearstress but it cant write the value of shearstress but it gave me some error like
Create time

Create mesh for time = 0

Time = 0
Reading field U

Reading/calculating face flux field phi



--> FOAM FATAL IO ERROR:
keyword transportModel is undefined in dictionary "/home/turbo3/Desktop/jignesh/1inchpipe/pref0sample/constant/transportProperties"

file: /home/turbo3/Desktop/jignesh/1inchpipe/pref0sample/constant/transportProperties from line 20 to line 34.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 400.

FOAM exiting


so what can i do?
can anybody help me?

Jignesh
jignesh_thaker2007 is offline   Reply With Quote

Old   March 20, 2012, 04:51
Default
  #2
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Hi Jignesh,

i think wallShearStress utility is not suitable for multiphase. I have a similar problem with force calculation (have a look here http://www.cfd-online.com/Forums/ope...tml#post350266). So if you want to use it in your multiphase cases you have to write your own code and read the correct "transportProperties" dict.

best

andrea
Andrea_85 is offline   Reply With Quote

Old   March 20, 2012, 09:15
Default
  #3
Senior Member
 
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 17
Arnoldinho is on a distinguished road
In case you are only interested in the stresses e.g. for the water-phase, you could simply copy one of the one-phase dictionaries (with values for water) into your case and temporarily use that one for the utility.

Arne
Arnoldinho is offline   Reply With Quote

Old   March 21, 2012, 02:38
Default
  #4
Member
 
Jignesh
Join Date: Aug 2011
Location: India
Posts: 68
Rep Power: 14
jignesh_thaker2007 is on a distinguished road
Send a message via Yahoo to jignesh_thaker2007
Quote:
Originally Posted by Arnoldinho View Post
In case you are only interested in the stresses e.g. for the water-phase, you could simply copy one of the one-phase dictionaries (with values for water) into your case and temporarily use that one for the utility.

Arne
thanx for ur reply but when i will used only water phase, is it gave me correct value? because in my pipe water and air both are flowing at the same time and my flow pattern is stratified. so is it possible to use this in two phase flow?

thanx
jignesh
jignesh_thaker2007 is offline   Reply With Quote

Old   March 21, 2012, 03:55
Default
  #5
Senior Member
 
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 17
Arnoldinho is on a distinguished road
That depends on what you are interested in.
If its only the water, then yes, if its both, then no. In the latter case you indeed have to modify the utility to account for both phases. I thought you could only be interested in one phase, therefore my hint.
Arnoldinho is offline   Reply With Quote

Old   March 21, 2012, 04:32
Default
  #6
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Hi all.
i think just multiply by nu_1 is not correct. In wallShearStress.C you have:

wallShearStress.boundaryField()[patchi] =
(
-mesh.Sf().boundaryField()[patchi]
/mesh.magSf().boundaryField()[patchi]
) & Reff.boundaryField()[patchi];
and

Reff is defined, if for example you are running laminar, as:
-nu()*dev(twoSymm(fvc::grad(U_))).


In my opinion you have to multiply somewhere by alpha to eliminate the contribution from the zones where there is fluid 2. or not?

best

andrea


Andrea_85 is offline   Reply With Quote

Old   March 21, 2012, 04:54
Default
  #7
Member
 
Jignesh
Join Date: Aug 2011
Location: India
Posts: 68
Rep Power: 14
jignesh_thaker2007 is on a distinguished road
Send a message via Yahoo to jignesh_thaker2007
Quote:
Originally Posted by Andrea_85 View Post
Hi all.
i think just multiply by nu_1 is not correct. In wallShearStress.C you have:

wallShearStress.boundaryField()[patchi] =
(
-mesh.Sf().boundaryField()[patchi]
/mesh.magSf().boundaryField()[patchi]
) & Reff.boundaryField()[patchi];
and

Reff is defined, if for example you are running laminar, as:
-nu()*dev(twoSymm(fvc::grad(U_))).


In my opinion you have to multiply somewhere by alpha to eliminate the contribution from the zones where there is fluid 2. or not?

best

andrea



Thanx sir

but i am solving two phase laminar flow pattern.

so if possible then please tel me how i modified wallShearstress.C?

i used two fluid air and water.

so how can i calculate wallShearstress.C?
Thanx
jignesh
jignesh_thaker2007 is offline   Reply With Quote

Old   March 30, 2012, 09:43
Default
  #8
New Member
 
Michael Stiehm
Join Date: Sep 2010
Posts: 13
Rep Power: 15
miael is on a distinguished road
Hello jignesh,

do you define the transportModel in your constant/transportProperties-file? If not just add the line:

transportModel Newtonian;

when you have a newtonian fluid.

Greetings
miael is offline   Reply With Quote

Reply

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
[Other] engineFoam new mesh problem ayhan515 OpenFOAM Meshing & Mesh Conversion 5 August 10, 2015 09:45
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 06:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13


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