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

InterFoam: add a source term in alpha eq.

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Alucard

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   November 28, 2011, 05:26
Default InterFoam: add a source term in alpha eq.
  #1
Member
 
valerio
Join Date: Jun 2009
Location: Nancy
Posts: 30
Rep Power: 16
Alucard is on a distinguished road
Goodmorning,

I'm try to simulate the growth of a cristal using,as a basis, interfoam.
As i'm at the beginning, i consider as a first case, a simple 2D circle that grows at a constant velocity "Uoo". Alpha=1 in the circle and 0 outside.

So what i want to "see" it's just a simple circle that grows in time in my square domain.
If the basic alpha transport equation is something like that:

d(alpha)/dt+U*grad(alpha)=0

in my case I add a "second" velocity that is the envelope growth:

d(alpha)/dt+U*grad(alpha)+Ug*grad(alpha)=0

So if I initialise my U=0 (I 've not motion of my circle) and I impose a constant Ug, how it's possible to integrate correctly this term "Ug*grad(alpha)" in the equation?

I tried to replace directly U=Ug BUT the calculation of the phi fluxes is quite complicated and realted to Ueqn so I cannot do that easily.
I know perhaps is a dummy question but it's 10 days I'm trying to figure out how to solve it and I don't see a clever solution to that.


Thank you in advance.
mbookin likes this.

Last edited by Alucard; November 28, 2011 at 05:42.
Alucard is offline   Reply With Quote

 


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
Solve poisson equation just add a source term nandiganavishal OpenFOAM Running, Solving & CFD 18 November 14, 2022 09:12
GPU Linear Solvers for OpenFOAM gocarts OpenFOAM Announcements from Other Sources 37 August 17, 2022 14:22
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24
How can I add a source term danielle OpenFOAM Running, Solving & CFD 1 February 29, 2008 11:52
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 03:43


All times are GMT -4. The time now is 06:39.