|
[Sponsors] |
September 10, 2013, 07:26 |
twoPhaseEulerFoam & Source term
|
#1 |
Senior Member
Aurelien Thinat
Join Date: Jul 2010
Posts: 165
Rep Power: 16 |
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. |
|
|
|
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 |