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

how the Vof method solve the interface

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 18, 2017, 07:02
Default how the Vof method solve the interface
  #1
New Member
 
Andrea Iovenitti
Join Date: Sep 2017
Location: Milan, Italy
Posts: 11
Rep Power: 8
andrea93 is on a distinguished road
Dear all,

I am trying to simulate the Nusselt condensation problem. I used both interPhaseChangeFoam (incompressible) and compressibleInterFoam. In both cases I implemented by myself what I needed to reproduce the correct physics. My fluid is water.

I realized that at 219 bar and 646K everything works fine, while at 1bar and 373.15K the pressure equation gets lost (max number of iterations is reached) and, consequently, the Courant number explodes (>10000). This means that the solver can't solve in the right way the sharp interface (at 1bar water and liquid properties are very different each other, while at 219bar and 646K they are very similar, so the discontinuity is smoother than before - this helps the solver a lot).

To have a further confirmation, I tried to simulate a single phase flow of water (pure fluid-dynamic simulation) in my domain (a rectangle 10*0.05mm^2) : it crashes. Therefore, I realized that MAYBE the problem is not related to the thermal model which I implemented, but to the Vof method, that is used both in interPhaseChangeFoam and bin compressibleInterFoam.

My questions therefore are:
1) how is the U-p coupling threated in OpenFoam's VoF method?
2) how is the interface threated ?
2) and, of course.. do you know how to solve my problem?

Thank you for your availability.
Andrea Iovenitti
andrea93 is offline   Reply With Quote

Old   December 28, 2017, 01:21
Default
  #2
Senior Member
 
Taher Chegini
Join Date: Nov 2014
Location: Houston, Texas
Posts: 125
Rep Power: 12
Taataa is on a distinguished road
1- OF uses a segregation approach for dealing with the coupling. In the case of transient solver it is PIMPLE = SIMPLE + PISO
2- a VOF approach that solves a transport equation for volume fraction with an additional compression term and using MULES.
3- I am afraid no one would be able to help effectively until you provide more information about the way you setup your case like schemes, solutions, boundary conditions and so on.
Taataa is offline   Reply With Quote

Old   January 4, 2018, 16:15
Default
  #3
Senior Member
 
Join Date: Dec 2017
Posts: 153
Rep Power: 8
AliE is on a distinguished road
Hi,

If you want to learn more about the vof in openfoam look at this paper:
http://iopscience.iop.org/article/10.../1/014016/meta

There you will find a good explaination of the method.
AliE is offline   Reply With Quote

Old   January 12, 2018, 11:02
Default
  #4
New Member
 
Andrea Iovenitti
Join Date: Sep 2017
Location: Milan, Italy
Posts: 11
Rep Power: 8
andrea93 is on a distinguished road
Thank you very much for the answer. I am sorry to reply so late.

First, I want to specify my problem. As already said, when I try to simulate the Nusselt condensation problem with water at 219 bar and 646 K everything works fine. Conversely, when I use water at 1 bar and 373.15 K the simulation crashes. I am almost sure the reason is related to the way the interface is solved.

I tried to modify my solver in order to solve the problem. As you can see in the files "TEqn.H", "pEqn.H" and "alphaEqn.H", I have implemented the smearing proposed by Kunkelmann (see pag. 35 and 36 of the following link: http://tuprints.ulb.tu-darmstadt.de/...Kunkelmann.pdf). I commented those lines because they were not useful (I guess I implemented Kulkelmann smearing in the wrong way). This also explains why the files started with "cond" and "evap", which are in each time step folder, are not really important).

Since this approach did not help, I tried to follow another path. I have tried to initialize the test case at 1 bar and 373.15 K as follows.
First, I set up a simulation where all the parameters in "transportProperties" were those at 1 bar and 373.15 K. The only exceptions have been the superficial tension "sigma" and kinematic viscosities of water liquid (phase1) and vapour (phase2). I ran the simulation until the final time (1 s) was reached.
After that, I initialized a new simulation with the results I got at time 1 s in the previous one. I changed progressively the values of the kinematic viscosities until the real values at 1 bar and 373.15 K, leaving the superficial tension unchanged. In brief, I have tried to provide a better initialization for an increasingly complex problem (assuming that the complessity for the solverr is associated to the values of sigma and of kinematic viscosities at 1 bar and 373.15 K).
Every time a new simulation was started (all ending at 1 s) the iniziatilazion was given in such a way T, p_rgh, U and alpha.phase1 were those at 1 s in the previous simulation. The simulations did not crash.
At this point, I repeated the procedure increasing sigma from 0.07e-3 to 0.0582 Pa*s, which is the value at 1 bar and 373.15 K.

I attach the solver I use (it is based on interPhaseChangeFoam) and the test case, which is "the last one"; the files in "0" are those computed at 1 s with sigma = 0.01e-1 Pa*s.
The simulation runs if "maxDeltaT 0.5E-06;", but the results are denefintely unphysical.

Do you have any suggestions to solve the issue?

Best regards,
Andrea
Attached Files
File Type: zip myPhaseChangeFoam.zip (50.0 KB, 6 views)
File Type: zip 0.zip (130.9 KB, 4 views)
File Type: zip constant.zip (156.0 KB, 3 views)
File Type: zip system.zip (4.2 KB, 6 views)
File Type: zip README.zip (349 Bytes, 4 views)
andrea93 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
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 18:02
Instable interface to solve VOF problem cicatrix FLUENT 4 March 9, 2017 00:22
laser cladding, welding&melting pool using vof method jscsgh FLUENT 2 December 18, 2016 20:42
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 05:15
Oscillating of Interface in VOF method amir.mofakham FLUENT 3 April 15, 2013 10:27


All times are GMT -4. The time now is 03:51.