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

How to modify viscosity field within a specific region?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By keepfit

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 7, 2018, 15:02
Default How to modify viscosity field within a specific region?
  #1
Senior Member
 
David Long
Join Date: May 2012
Location: Germany
Posts: 104
Rep Power: 13
keepfit is on a distinguished road
Suppose a moving solid body in a two-fluid (e.g. Gas + Liquid), the viscosity of the mixture of two-fluid in the fluid region is:

Code:
  
mu_fluid = alpha_G* mu_G + alpha_L* mu_L;
and

Code:
  
alpha_G + alpha_L = 1.0;
If an artificial viscosity mu_S (e.g. 100* mu_L) is attributed to the solid region, then we can solve the three-phase flow with only ONE equation, where the viscosity and the density in the entire domain is averaged in this way:

Code:
  
mu = alpha_G* mu_G  + alpha_L* mu_L   + alpha_S* mu_S;
rho = alpha_G* rho_G  + alpha_L* rho_L  + alpha_S* rho_S;
here
Code:
alpha_G + alpha_L + alpha_S =1
in the entire domain.

Since volume fraction field (alpha_S) can be explicitly calculated, before solving the momentum equation and alpha equation (for gas and liquid), we can model these three-phase flow with a modified InterFoam.

The problem remaining is that: how do we effectively modify the fluid properties inside the solid region, if the cells (ID) inside the solid body are known? The first way comes to my mind is rather straight-forward:

Code:
for (auto& cID : cellsInSolid) { // fluid-solid boundary cells + inner solid cells  
  mu[cID] = alpha_S* mu_S + alpha_G* mu_G + alpha_L* mu_L;
  rho[cID] = alpha_S* rho_S + alpha_G* rho_G + alpha_L* rho_L;
}
Any better ideas?

Thanks in advance.

SHUBHAM9595 likes this.
keepfit is offline   Reply With Quote

Old   July 9, 2018, 04:17
Default
  #2
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 11
RobertHB is on a distinguished road
You can try using a fvOptions source. Take a look at these examples.
__________________
If you liked my answer to your question, please consider leaving a "Like" in return
RobertHB is offline   Reply With Quote

Old   July 9, 2018, 10:00
Default
  #3
Senior Member
 
David Long
Join Date: May 2012
Location: Germany
Posts: 104
Rep Power: 13
keepfit is on a distinguished road
Quote:
Originally Posted by RobertHB View Post
You can try using a fvOptions source. Take a look at these examples.
Never used the "fvOptions" source before, how do we account for the difference in viscosity and density source for the solid region? Note that there is no boundary defined on the fluid-solid interface. We only know the volume fraction (alpha_f) of the solid region.

Can you explain a bit more in detail?
keepfit 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
p_rgh initial residual no change with different settings manuc OpenFOAM Running, Solving & CFD 3 June 26, 2018 15:53
Allocate a specific region to a specific processor in a parallel run Saideep OpenFOAM Pre-Processing 4 October 5, 2017 06:04
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
User field function for specific heat deifnition crevoise STAR-CCM+ 2 January 28, 2013 04:25
How to modify the viscosity model mpml OpenFOAM Running, Solving & CFD 4 October 13, 2010 07:44


All times are GMT -4. The time now is 11:17.