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

Phase Field Method & Diffuse Interface Modeling in FOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By holger_marschall

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 7, 2014, 03:50
Default Phase Field Method & Diffuse Interface Modeling in FOAM
  #1
Senior Member
 
Holger Marschall
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 126
Rep Power: 19
holger_marschall is on a distinguished road
Send a message via Skype™ to holger_marschall
Hi FOAMers,

this is just to let you know that Xuan Cai (Karlsruhe Institute of Technology) and me (Center of Smart Interfaces, TU Darmstadt) are working on the implementation of phase field methods / diffuse interface models in FOAM.

In particular, we are aiming at conservative and bounded FV-based methods for the Allen-Cahn and Cahn-Hilliard equations for Direct Numerical Simulations of two-phase flows. The project's topic is on dynamic wetting, where diffuse interface modeling alleviates the known moving contact-line paradox (stress singularity at no-slip walls). However, with phase-field methods, also one could think of other (more exotic) interfacial physics (foaming, crystal growth, etc.), which certainly makes this model class very appealing.

The implementation employs the well-known strategy design pattern. We have chosen the difference of phase volume fractions as an order parameter, such that there are physical bounds within [-1, 1]. The Cahn-Hilliard equation is of fourth order so solution strategy comes into play (segregated/split vs. coupled), which directly bias the boundedness of the order parameter. While the Cahn-Hilliard equation exhibits inherent volume-conservation property, the Allen-Cahn equation needs to be appropriately constrained to this property. However, currently, we are able to obtain a relative volume-error of 1.3E-6 for a spreading droplet after 1.2E-2 seconds.

As an appetizer, allow me to attach some screenshots. At this stage, any comments/hints/ideas on implementation techniques you have heard of and on other test case (currently we examine the 'spreading droplet' and 'rising capillary' cases) are really appreciated...


best regards,
Holger
Attached Images
File Type: png residuals.png (6.8 KB, 215 views)
File Type: png continuityErr.png (6.1 KB, 163 views)
File Type: png extremata.png (4.2 KB, 151 views)
File Type: png phaseVolume.png (5.6 KB, 158 views)
olivierG, Cyp and hadisafaei like this.
__________________
Holger Marschall
web: http://www.holger-marschall.info
mail: holgermarschall@yahoo.de
holger_marschall is offline   Reply With Quote

Old   April 7, 2014, 04:31
Default
  #2
New Member
 
Xuan Cai
Join Date: Mar 2011
Location: Karlsruhe, Germany
Posts: 9
Rep Power: 15
cfd_explorer is on a distinguished road
Hi FOAMers,

I'd like to join Holger for appreciating your inputs/advices in advance

Best regards,
Xuan
cfd_explorer is offline   Reply With Quote

Old   June 7, 2014, 16:59
Default
  #3
Member
 
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13
hrushi.397 is on a distinguished road
Hi,

How did you manage to keep the parameter within bounds? How fine is your mesh?

Regards,

Hrushikesh
hrushi.397 is offline   Reply With Quote

Old   August 13, 2014, 12:16
Default
  #4
Senior Member
 
Holger Marschall
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 126
Rep Power: 19
holger_marschall is on a distinguished road
Send a message via Skype™ to holger_marschall
Dear all,

just to give you a brief update. We are currently writing a paper describing the conservative Finite Volume discretisation of the Navier-Stokes Allen-Cahn and Cahn-Hilliard equations for two-phase flows. As for some test cases, we opted for dynamic wetting cases.

Please drop me a mail, if you are interested in a preprint. I will keep you posted on the progress.

best regards,
Holger.

PS.:
Quote:
Originally Posted by hrushi.397 View Post
Hi,
How did you manage to keep the parameter within bounds? How fine is your mesh?
Dear Hrushikesh,

this is a natural outcome if you consider coupling in the momentum equation in order to take into account the relative density flux due to diffusion of components. ONLY this allows you to use conservative fluxes! With this, the boundedness property is then found to be consistently enforced (as an inherent property of the phase field transport equations).

The current implementation of this look very clean
Code:
    fvVectorMatrix UEqn
    (
        fvm::ddt(rho, U)
      + fvm::div(rhoPhi, U)
      - fvm::laplacian(mu, U)
      - (fvc::grad(U) & fvc::grad(mu))

      //-HM Coupling term 
      - phaseField.diffRhoPhi(U)

      //- buoyancy and surface tension term
      //- tansferred to pressure equation
    );
The nuts and bolts behind this will be described in the paper. I am also planing a release to Foam-Extend.

Hope this helps,
Holger
__________________
Holger Marschall
web: http://www.holger-marschall.info
mail: holgermarschall@yahoo.de
holger_marschall is offline   Reply With Quote

Old   June 25, 2015, 04:37
Default
  #5
Member
 
Rohith
Join Date: Oct 2012
Location: Germany
Posts: 57
Rep Power: 14
RaghavendraRohith is on a distinguished road
Hi Holger,

I am trying to model a surface tension and wetting model in a closed capsule geometry using CLSVOF. I have tried different contact angles (Dynamic and static). The complexity of my problem lies in the incompressible nature of phase1 which is solid and wetting occurs post melting of the solid. The velocity is generally very low @ 1e-5 m/s and the also the pressure difference between two phases is also at the range of 30 Pa. Will your model help me in enhancing the nature of wetting in my defined problem?

Please find the attached Jpg.

VG,
Rohith
Attached Images
File Type: jpg wetting.jpg (19.1 KB, 167 views)
RaghavendraRohith is offline   Reply With Quote

Old   November 24, 2015, 10:10
Default
  #6
Member
 
Sebastian W.
Join Date: Nov 2012
Location: Saxony, Germany
Posts: 43
Rep Power: 14
nero235 is on a distinguished road
Send a message via ICQ to nero235
Hello,

any news regarding the current state of the new phaseFieldFoam solver? I am very interested in working with this solver.

Kind regards, Sebastian
nero235 is offline   Reply With Quote

Old   November 25, 2015, 13:23
Default
  #7
Member
 
Edin Berberovic
Join Date: Mar 2009
Posts: 31
Rep Power: 17
eberberovic is on a distinguished road
Hi Sebastian,

I have found the solver phaseFieldFoam, which is I believe adopted by you:
https://github.com/11101011/phaseFieldFoam

Have you tested it, how does it perform? Exactly which paper is it referred to?

Regards,
Edin
eberberovic is offline   Reply With Quote

Old   November 25, 2015, 13:28
Default
  #8
Member
 
Edin Berberovic
Join Date: Mar 2009
Posts: 31
Rep Power: 17
eberberovic is on a distinguished road
Hi Holger,

Have you already released the diffuse interface solver, or when do you think it will be released?

Regards,
Edin
eberberovic is offline   Reply With Quote

Old   November 26, 2015, 03:47
Default
  #9
Member
 
Sebastian W.
Join Date: Nov 2012
Location: Saxony, Germany
Posts: 43
Rep Power: 14
nero235 is on a distinguished road
Send a message via ICQ to nero235
Quote:
Originally Posted by eberberovic View Post
Hi Sebastian,

I have found the solver phaseFieldFoam, which is I believe adopted by you:
https://github.com/11101011/phaseFieldFoam

Have you tested it, how does it perform? Exactly which paper is it referred to?

Regards,
Edin
Hello Edin,

yeah well this is the solver from Adam Donaldson, which I ported to a OF 2 version and uploaded it then to github However the version from Holger Marschall is very different, so I heard. I don't know if he has released the solver yet, that is why I am asking.

Kind regards,

Sebastian
nero235 is offline   Reply With Quote

Old   February 3, 2016, 03:57
Default
  #10
Senior Member
 
Holger Marschall
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 126
Rep Power: 19
holger_marschall is on a distinguished road
Send a message via Skype™ to holger_marschall
Hi Edin, hi Sebastian,

yes definitely, we will release the source. It is planned for this year. I just want to write up a paper describing the model derivation and numerics.

P.S.: If somebody is familiar with phase-field modeling and works with FOAM please contact me. I am eager to see the framework working for other physics than for a capillary interface (i.e. two-phase flow of two immiscible Newtonian fluids taking into account interfacial energy). The code structure should be prepared and flexible enough for that.

best regards,
Holger
__________________
Holger Marschall
web: http://www.holger-marschall.info
mail: holgermarschall@yahoo.de
holger_marschall is offline   Reply With Quote

Old   February 4, 2016, 15:52
Default
  #11
Cyp
Senior Member
 
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 299
Rep Power: 18
Cyp is on a distinguished road
Hi Holger,

I am just curious, is your phase-field model subject to spurious currents at the gas/liquid interface?

It is still a bottleneck for VOF simulation in porous structures at very low capillary number (Ca = 10^-6 and below). The state of art techniques use filtering method, but as of today, nothing is really convincing.

Cheers,
Cyprien
Cyp is offline   Reply With Quote

Old   July 26, 2016, 13:37
Default
  #12
New Member
 
Julien Maes
Join Date: Sep 2015
Posts: 10
Rep Power: 0
JULIEN MAES is on a distinguished road
Hi Holger,

Did you end up releasing the code?

Cheers,

Julien
JULIEN MAES is offline   Reply With Quote

Old   September 10, 2018, 06:24
Default phase field confusion
  #13
New Member
 
Qi Xueyu
Join Date: Mar 2018
Posts: 7
Rep Power: 8
winsway is on a distinguished road
i have some confusion with phase field and hope you solve my confusion.I don't know whether phase field is suitable for the calculation and simulation of multi-phase turbulence. Most of the literature is VOF and level set. I hope you can provide some help~
winsway is offline   Reply With Quote

Old   December 19, 2019, 01:54
Default
  #14
New Member
 
Harish Dixit
Join Date: Feb 2014
Posts: 2
Rep Power: 0
hdixit is on a distinguished road
Hi Holger,

I was curious to know if you did release the phase-field code? We are very keen to use the code for some wetting calculations.

best regards,
Harish
hdixit 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
Wind turbine simulation Saturn CFX 60 July 17, 2024 06:45
[CGNS] CGNS converters available mbeaudoin OpenFOAM Meshing & Mesh Conversion 137 December 14, 2018 05:20
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 11:51
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 05:04
phase field or Cahn-Hilliard method dusky.he Main CFD Forum 3 February 2, 2006 17:43


All times are GMT -4. The time now is 14:37.