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

Wall Shear Stress for non-Newtonian models

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 6, 2019, 07:55
Default Wall Shear Stress for non-Newtonian models
  #1
Member
 
Torsten Schenkel
Join Date: Jan 2014
Posts: 69
Rep Power: 12
tschenkel is on a distinguished road
Hello,


I am modelling laminar non-Newtonian flow where the viscosity is dependent on strain and transported scalars. The model works fine, and I can validate it with scalar ratios and velocity profiles.

The purpose of the model is to look into the WSS and that's where my problem lies. The usual wallShearStress objects only work for Newtonian (laminar or turbulent), but not for non-Newtonian flow.

I guess I could set the flow to Newtonian/laminar with viscosity of 1 for the wallShearStress postprocessing tool and then multiply with the local viscosity? How is the velocity gradient at the wall calculated?

I guess what I would need to do is create a surface field for WSS vector (although the postprocessor seems to use a volume vector field?), calculate dV/dn and multiply that with local viscosity.

I looked at the WSS postprocessor code, but that seems to be quite intimately linked with the turbulence models.


Anybody has already done WSS for non-Newtonian?

Thanks a lot.

Best
Torsten

P.S. Using the laminar flow properties to calculate the WSS (simpleFoam -postprocess -func wallShearStress) and multiplying with the local viscosity in paraview seems to give me reasonable results, but it is a bit clunky, so I'd rather work on a "proper" solution.
tschenkel is offline   Reply With Quote

Old   February 10, 2019, 11:35
Default Nearly solved: Wall Shear Stress for non-Newtonian models
  #2
Member
 
Torsten Schenkel
Join Date: Jan 2014
Posts: 69
Rep Power: 12
tschenkel is on a distinguished road
Played around with it a bit and solved the problem.

Modified wallGradU to read the local viscosity field to calculate the wall shear stress.

This is a standalone utility to be run after the simulation is finished.

As the regular wallShearStress utility it calculates the kinematic WSS, in line with OpenFOAM's standard of using kinematic pressure and stress.

EDIT: I found that the normal wallShearStress utility does calculate the WSS for the "standard" nonNewtonian models, but not for models where viscosity depend on transported scalars.


Error message for missing volScalarField:


--> FOAM FATAL ERROR:

request for volScalarField C from objectRegistry region0 failed
available objects of type volScalarField are

0
(
)


From function objectRegistry::lookupObject<Type>(const word&) const
in file /home/torsten/foam/foam-extend-4.0/src/foam/lnInclude/objectRegistryTemplates.C at line 139.

FOAM aborting
Attached Files
File Type: c nonNewtonianWallShearStress.C (3.4 KB, 14 views)

Last edited by tschenkel; February 10, 2019 at 15:35.
tschenkel is offline   Reply With Quote

Old   August 13, 2019, 16:33
Default
  #3
New Member
 
Maveryck Andres
Join Date: Mar 2019
Posts: 6
Rep Power: 7
Maveryck is on a distinguished road
What do you mean by "but not for models where viscosity depends on transported scalars"? What are those transported scalars you are referring to?
Maveryck is offline   Reply With Quote

Old   November 5, 2019, 15:34
Default
  #4
Member
 
Torsten Schenkel
Join Date: Jan 2014
Posts: 69
Rep Power: 12
tschenkel is on a distinguished road
Quote:
Originally Posted by Maveryck View Post
What do you mean by "but not for models where viscosity depends on transported scalars"? What are those transported scalars you are referring to?

I model the migration of particles in shear gradients. So viscosity becomes a function of
strain rate and local particle concentration. The particle concentration is described as a scalar with a non-linear scalar transport equation.


T
tschenkel is offline   Reply With Quote

Reply


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
different order for wall shear stress result in steady & unsteady simulatiom raminostadi FLUENT 0 October 1, 2016 12:23
Cannot achieve negative wall shear stress values in CFD Post (ANSYS) SAtkins CFX 3 August 3, 2016 15:27
Accessing wall shear stress using UDF Robert Fluent UDF and Scheme Programming 2 July 31, 2013 09:34
Re: About wall shear stress Mike FLUENT 9 November 17, 2003 15:41
Specifying shear stress on wall in 5.5.1 michael rasmussen CFX 1 May 19, 2003 10:49


All times are GMT -4. The time now is 12:54.