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

Diverging result for Temperature field in interFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree45Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 11, 2020, 08:15
Default Using temperature dependent density, viscosity and surface tension
  #101
New Member
 
Nico van Esch
Join Date: Sep 2019
Posts: 1
Rep Power: 0
nico.vanesch is on a distinguished road
Dear all,

I am trying to reproduce/validate the result of the paper of Khater et al (2019):
HTML Code:
https://www.nature.com/articles/s41598-019-40069-9
In this research, an incompressible non-isotherm multiphase solver was used (using ANSYS FLUENT) with a variable density, viscosity and surface tension. I've already compiled the interTempFoam succesfully and it runs smoothly.
So I'm looking for something like this:
\rho=aT+b
\mu=cT^2+dT+e
\sigma=fT+g

I already looked into integrating the thermoPhysical library into the solver, but these are incompatible since these are only available for compressible solvers.
If anyone can lead me the way to the answer, I would be very grateful.

Best,

//UPDATE
never mind, found it myself.
You can use:
http://www.tfd.chalmers.se/~hani/kur...nFoam%20v2.pdf
to make the viscosity temperature dependent.

Then, you can use the temperatureDependent function to make a temperature dependent surface tension:
sigma
{
type temperatureDependent;
sigma polynomial
((a 1)
(b 1)
);
with a and b as in the equations above.

Then, for the density I recalculated the polynomial above to fit to the bousineqq approximation and used the code from the beginning of this post. The only thing that I know still have to figure out, is to make the Prandtl number to be dependent of the temperature dependent viscosity. Anyone have suggestions on this?

Last edited by nico.vanesch; February 18, 2020 at 05:31.
nico.vanesch is offline   Reply With Quote

Old   July 16, 2020, 13:30
Default
  #102
Member
 
Join Date: Oct 2016
Posts: 31
Rep Power: 10
tonnykz is on a distinguished road
Hi Nico,
I have also added temperature equation to OF-v1812 using information provided in this sub Adding the Energy Equation to interFoam (OF 2.4.0).
But results for temperature equation diverging.
Which version of OpenFOAM you have used?
Is there anything trick to make it work on simple damTempBreak tutorial?
Thank you,
Best regards

Tonnykz
tonnykz is offline   Reply With Quote

Old   November 28, 2021, 12:48
Default
  #103
New Member
 
AUbuntu
Join Date: Oct 2021
Posts: 6
Rep Power: 4
AUbuntu is on a distinguished road
Hello Guys,


I see that this thread is very old. I am interested to know if any solver has been developed in OpenFOAM to be used for solving energy equation for interFoam during this 10 years period similar to interTempFoam.
As I followed this thread and used different schemes such as harmonic and vanLeer scheme to suppress the diffusion at the water-air interface. vanLeer gives me the best results however there is still some unrealistic increase in temperature at the water-air interface. Does anyone have any idea how to completely solve this issue?


Regards
AUbuntu is offline   Reply With Quote

Old   November 29, 2021, 08:42
Default
  #104
Member
 
Join Date: Oct 2016
Posts: 31
Rep Power: 10
tonnykz is on a distinguished road
Quote:
Originally Posted by AUbuntu View Post
Hello Guys,


I see that this thread is very old. I am interested to know if any solver has been developed in OpenFOAM to be used for solving energy equation for interFoam during this 10 years period similar to interTempFoam.
As I followed this thread and used different schemes such as harmonic and vanLeer scheme to suppress the diffusion at the water-air interface. vanLeer gives me the best results however there is still some unrealistic increase in temperature at the water-air interface. Does anyone have any idea how to completely solve this issue?


Regards

Hi AUbuntu,
I have switched to the formulation of energy equation as in this article https://github.com/MahdiNabil/CFD-PC
I don't see same divergence with using it.
Best,
Tonnykz
AUbuntu likes this.
tonnykz is offline   Reply With Quote

Old   December 6, 2021, 08:55
Default
  #105
New Member
 
AUbuntu
Join Date: Oct 2021
Posts: 6
Rep Power: 4
AUbuntu is on a distinguished road
Quote:
Originally Posted by tonnykz View Post
Hi AUbuntu,
I have switched to the formulation of energy equation as in this article https://github.com/MahdiNabil/CFD-PC
I don't see same divergence with using it.
Best,
Tonnykz
Hello Tonnykz,

Many thanks for your reply.
So, based on my understanding in the paper they used the energy equation in the form of enthalpy (h)
Is this the only change that you have considered?
I saw they also mentioned using different surface-tension force model. Could you please also kindly let me know if you have also considered that?

regards

Last edited by AUbuntu; December 7, 2021 at 15:47.
AUbuntu is offline   Reply With Quote

Old   December 6, 2021, 09:02
Default
  #106
Member
 
Join Date: Oct 2016
Posts: 31
Rep Power: 10
tonnykz is on a distinguished road
Quote:
Originally Posted by AUbuntu View Post
Hello Tonnykz,

Many thanks for your reply.
So, based on my understanding in the paper they used the energy equation in the form of enthalpy (h) instead of internal energy (u).
Is this the only change that you have considered?
I saw they also mentioned using different surface-tension force model. Could you please also kindly let me know if you have also considered that?

regards

Hi AUbuntu,
Yes, they are using enthalpy and that what I have implemented.
But they have thermal phase change implemented apart from special surface-tension models. Latter i did not consider. But also adopted thermal phase change models they provide. You can use noPhaseChange model if you want to model transient energy equation transport due to convection and diffusion.
Best,
Tonnykz
AUbuntu likes this.
tonnykz is offline   Reply With Quote

Reply

Tags
interfoam energy, temperature field


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
Getting a concentration field around a bubble in InterFoam azman OpenFOAM Running, Solving & CFD 3 June 7, 2022 04:21
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Adding temperature field to InterFoam yapalparvi OpenFOAM Running, Solving & CFD 8 October 14, 2009 20:18
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51
Problems calculating field gh with interFoam cricke OpenFOAM Running, Solving & CFD 0 December 10, 2007 07:17


All times are GMT -4. The time now is 23:21.