|
[Sponsors] |
November 28, 2012, 10:41 |
Add source term in alphaEqn.H of interFoam
|
#1 |
Member
Tayo
Join Date: Aug 2012
Posts: 94
Rep Power: 13 |
Hello all,
Just a quick one. I added a source term (Sp) to alphaEqn.H in interFoam. I tried following example in interPhaseChangeFoam but compiling it gives me error in MULES that "5 arguments are expected, 6 provided" (Sp is the addition). How do I properly include this Sp source term in the alpha eqn? Or is there an alternative way to do this? Thanks surfaceScalarField phiAlpha ( fvc::flux ( phi, alpha1, alphaScheme ) + fvc::flux ( -fvc::flux(-phir, scalar(1) - alpha1, alpharScheme), alpha1, alpharScheme ) ); volScalarField Sp ( IOobject ( "Sp", runTime.timeName(), mesh ), source term ); MULES::explicitSolve(alpha1, phi, phiAlpha, Sp, 1, 0); |
|
|
|
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 |
InterFoam: add a source term in alpha eq. | Alucard | OpenFOAM Programming & Development | 12 | November 5, 2017 19:16 |
friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 10:57 |
Add time dependent Source term | libe | OpenFOAM Running, Solving & CFD | 13 | September 23, 2010 09:12 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 11, 2000 03:43 |