fppimenta / rheoTool

Toolbox to simulate GNF and viscoelastic fluid flows in OpenFOAM®
GNU General Public License v3.0
162 stars 67 forks source link

wall shear stress for two phase flows #9

Closed sasankheirandish closed 5 years ago

sasankheirandish commented 5 years ago

Dear Francisco Pimenta I monitored wall shear stress for two phase flows. but I got zero values for WSS. I added the calcWSS.c function to fvsolution. For one -phase flow the results were correct. however, this was not true for two phase flows which are should be run by rheointerFoam solver. How can i solve my problem? Best regards

fppimenta commented 5 years ago

Are you using rheoTool for of60?

sasankheirandish commented 5 years ago

yeah. openFoam 6

fppimenta commented 5 years ago

So the problem is in a bug for this version, in rheoInterFoam.C. This has already been corrected in the new version of rheoTool (v4), which will be released soon. You have 2 options: use the version for of40 (free of this bug) or correct the bug in of60, which is quite simple. The bug is this one: in file rheoInterFoam.C, add this line

  postProc.update();

above the line

  runTime.write();

Then recompile and it should be fine. Do not forget to set isTwoPhaseFlow as true in fvSolution.

sasankheirandish commented 5 years ago

thank you very much

pratyush507 commented 1 year ago

@sasankheirandish can you please share the code or steps how to calculate the wall shear stress as i want to get the walls shear stress distribution and i am using rheoFoam solver. Please help.