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

Non-linear 4rth order Diffusion

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By physicosm
  • 1 Post By physicosm

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 21, 2019, 09:34
Default Non-linear 4rth order Diffusion
  #1
New Member
 
Thomas N.
Join Date: Nov 2018
Posts: 11
Rep Power: 7
physicosm is on a distinguished road
Dear OpenFoamers,Foamers and HopeFoamers,


I am struggling lately with the problem of how to solve a non linear 4rth order diffusion equation(see below). Of course, it can be solved full explicitly but on this way someone has to use small time-steps. One idea is to split this equation into two 2nd order equations by defining the brackets as the chemical potential. When someone does this, it will come up with the problem of OpenFOAM and general most of the softwares/toolkits can't solve equations for two variables simultaneously. With OpenFOAM words: FATAL ERROR incompatible fields. Nevertheless, I have attached a picture that I was thinking on this way maybe I could solve my problem but it doesn't work. The idea was to calculate first explicit the chemical potential in order to find the correct values of C and then, to calculate implicity the chemical potential with the new correct values of C that have been calculated in the previous step. After this, you solve the diffusion equation. This idea doesn't work. Therefore, I would like to ask if someone has any idea of how to deal with this problem. Last, of course the ideal case would be to define an implicity laplacian^2 with an implicit scheme but I guess this over my programming skills. Thanks in advance!


Thomas


Attached Images
File Type: png bam.png (53.5 KB, 41 views)
akabat and Krapf like this.
physicosm is offline   Reply With Quote

 

Tags
c++, cahn hilliard, diffusion, non linear, openfoam


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
First Order to Higher Order Blending Factor NormalVector FLUENT 4 November 13, 2023 07:06
Oscillating behaviour when mesh gets too small james91 OpenFOAM Running, Solving & CFD 0 January 9, 2014 05:04
Problems solving T Equation in separated flow using a second Order Closure Model pascool OpenFOAM Programming & Development 1 November 19, 2012 10:29
2nd order boundary conditions for 2nd order discretization? quarkz Main CFD Forum 30 December 26, 2011 07:12
Numerical diffusion error Z.Zeng Main CFD Forum 8 October 22, 1999 09:06


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