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

twoPhaseEulerFoam & Source term

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 10, 2013, 07:26
Default twoPhaseEulerFoam & Source term
  #1
Senior Member
 
Aurelien Thinat
Join Date: Jul 2010
Posts: 165
Rep Power: 16
Aurelien Thinat is on a distinguished road
Hello everyone,

I'm willing to include a mass source term in twoPhaseEulerFoam solver :

S_Mass = - rho1 * alpha1 / dT, with dT the time step.

It should extract the mass of the phase1 (dispersed phase) in a zone I define with a function :
F = 1 if I activate the source term,
0 elsewhere.

That's for the theory. I'm stuck with the OpenFOAM code now.

Since the equation is in volumic form, I wrote :

alphaEqn :
(
fvm::ddt(alpha1)
- fvc::ddt(alpha1)
- fvm::laplacian
(
alpha1f*ppMagf,
alpha1,
"laplacian(alpha1PpMag,alpha1)"
)
==
scalar(-1)*F*alpha1/runTime.deltaT().value
);

pEqn :
(
fvm::laplacian(Dp,p) == fvc::div(phiHByA) + F*alpha1/(runTime.deltaT().value)
);


Does it seems correct to you ?


Thank you.
Aurelien Thinat 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
Problem of SOURCE term gradient in UDS wind Fluent UDF and Scheme Programming 6 December 1, 2022 15:21
transient source term strakakl OpenFOAM 38 November 19, 2013 02:18
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59
[Gmsh] Compiling gmshFoam with OpenFOAM-1.5 BlGene OpenFOAM Meshing & Mesh Conversion 10 August 6, 2009 05:26
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 04:43


All times are GMT -4. The time now is 05:41.