|
[Sponsors] |
March 20, 2012, 02:45 |
problem with wallShearstress at interFaom
|
#1 |
Member
|
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 |
|
March 20, 2012, 04:51 |
|
#2 |
Senior Member
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 17 |
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 |
|
March 20, 2012, 09:15 |
|
#3 |
Senior Member
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 18 |
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 |
|
March 21, 2012, 02:38 |
|
#4 | |
Member
|
Quote:
thanx jignesh |
||
March 21, 2012, 03:55 |
|
#5 |
Senior Member
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 18 |
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. |
|
March 21, 2012, 04:32 |
|
#6 |
Senior Member
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 17 |
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 |
|
March 21, 2012, 04:54 |
|
#7 | |
Member
|
Quote:
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 |
||
March 30, 2012, 09:43 |
|
#8 |
New Member
Michael Stiehm
Join Date: Sep 2010
Posts: 13
Rep Power: 16 |
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 |
|
|
|
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 |