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

positive value for concentration shall be the result of a field but ???

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By syavash

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 19, 2019, 08:36
Default positive value for concentration shall be the result of a field but ???
  #1
New Member
 
siamak rafizadeh
Join Date: May 2018
Posts: 8
Rep Power: 8
siamak 60 is on a distinguished road
Hi

Dear Foamer's
I simply changed bouyantbuossinesqueSimpleFoam solver to write bonjiorno Model for nanofluid Heat Transfer. In this new solver which named as Mixedbonj, Temperature Equation changed to adopt bonjiorno's Model Also Concentration equation named as "V" added. My problem is that in field V Negative value obtained for some cells and I have no idea what to do ?

can anyone Help with this ISSUE ?
code and case uploaded

solver source: http://www.mediafire.com/file/fe5kxc...dbonj.zip/file
case Source: http://www.mediafire.com/file/vmw8zq.../case.zip/file
my OF is Version 6.

Please help on finding whats wrong with this solver
Thanks in Advance
siamak 60 is offline   Reply With Quote

Old   August 20, 2019, 11:05
Default More Information added
  #2
New Member
 
siamak rafizadeh
Join Date: May 2018
Posts: 8
Rep Power: 8
siamak 60 is on a distinguished road
I find out that with low Temperature Difference As 5 degrees of Celsius No negative value derived, with 10 degree Temp diff only 3 cells show negative value on boundary. with 20 degrees 15 cells have Negative Value and with 40 degrees Difference many cells(about 150 cells) on boundary have negative value and Also adjacent cells on internal field had negative Value So I guess that the way is to treat boundary value of V "Concentration VolScalarField" that if any cells have Negative Value it will be replaced with Zero the question is How ?


thanks for your Time
siamak 60 is offline   Reply With Quote

Old   August 20, 2019, 12:06
Default
  #3
Senior Member
 
Ehsan Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
Quote:
Originally Posted by siamak 60 View Post
I find out that with low Temperature Difference As 5 degrees of Celsius No negative value derived, with 10 degree Temp diff only 3 cells show negative value on boundary. with 20 degrees 15 cells have Negative Value and with 40 degrees Difference many cells(about 150 cells) on boundary have negative value and Also adjacent cells on internal field had negative Value So I guess that the way is to treat boundary value of V "Concentration VolScalarField" that if any cells have Negative Value it will be replaced with Zero the question is How ?


thanks for your Time
Hi,

Having negative values for a passive scalar is common when using some unbounded schemes. Try using bounded scheme like limitedLinear or van Leer as follows to suppress the negative values:

div(phi,V) Gauss vanLeer01;

This way, you limit the scalar value essentially between 0 and 1 in the entire domain.

Regards,
Syavash
siamak 60 likes this.
syavash is offline   Reply With Quote

Old   August 20, 2019, 12:46
Default
  #4
New Member
 
siamak rafizadeh
Join Date: May 2018
Posts: 8
Rep Power: 8
siamak 60 is on a distinguished road
Quote:
Originally Posted by syavash View Post
Hi,

Having negative values for a passive scalar is common when using some unbounded schemes. Try using bounded scheme like limitedLinear or van Leer as follows to suppress the negative values:

div(phi,V) Gauss vanLeer01;

This way, you limit the scalar value essentially between 0 and 1 in the entire domain.

Syavash

Thanks for your suggestion but it did not work ALso I think this is not a passive scalar because it can change value of Temperature Field( a little) if it Counts on considering this field as Active one.



I appreciate for helps on finding other solution
siamak 60 is offline   Reply With Quote

Old   August 20, 2019, 13:09
Default
  #5
Senior Member
 
Ehsan Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
Quote:
Originally Posted by siamak 60 View Post
Thanks for your suggestion but it did not work ALso I think this is not a passive scalar because it can change value of Temperature Field( a little) if it Counts on considering this field as Active one.



I appreciate for helps on finding other solution
Not sure why it does not work as should. I think either passive or not it should limit the values.

Regards,
Syavash
syavash 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
[SOWFA] NREL SOWFA ABLTerrainSolver tutorial problem cico0815 OpenFOAM Community Contributions 36 February 3, 2022 12:54
How to get cell indices and manipulate field data ch1 OpenFOAM Programming & Development 5 September 25, 2019 12:17
OpenFOAM floating point Error upuli OpenFOAM Programming & Development 5 June 20, 2016 04:19
conservative form twoPhaseEulerFoam23x gives an unsatisfactory velocity result. sharonyue OpenFOAM Running, Solving & CFD 12 April 10, 2016 00:30
Using sample to Inlet velocity field amanbearpig OpenFOAM Running, Solving & CFD 14 November 16, 2015 06:47


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