CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   how to set up MULES for void fraction with source term?? (https://www.cfd-online.com/Forums/openfoam-programming-development/156318-how-set-up-mules-void-fraction-source-term.html)

gaza July 7, 2015 14:23

how to set up MULES for void fraction with source term??
 
Hi Foamers,
I want to solve this equation:

fvm::ddt(T)
+ fvm::div(phi, alpha)
==
S

where S is a source term. I saw the alphaEqn.H file from interPhaseChangeFoam
and I think that I have to use this correct function from CMULES.H file

template<class RhoType, class SpType, class SuType>
76 void correct
77 (
78 const RhoType& rho,
79 volScalarField& psi,
80 const surfaceScalarField& phi,
81 surfaceScalarField& phiCorr,
82 const SpType& Sp,
83 const SuType& Su,
84 const scalar psiMax,
85 const scalar psiMin
86 );

Could you tell me what should be inserted as Sp and Su in this function in my case?

gaza July 7, 2015 14:28

Hi Foamers,
I want to solve this equation:

fvm::ddt(alpha)
+ fvm::div(phi, alpha)
==
S

where S is a source term. I saw the alphaEqn.H file from interPhaseChangeFoam
and I think that I have to use this correct function from CMULES.H file

template<class RhoType, class SpType, class SuType>
76 void correct
77 (
78 const RhoType& rho,
79 volScalarField& psi,
80 const surfaceScalarField& phi,
81 surfaceScalarField& phiCorr,
82 const SpType& Sp,
83 const SuType& Su,
84 const scalar psiMax,
85 const scalar psiMin
86 );

Could you tell me what should be inserted as Sp and Su in this function in my case?


All times are GMT -4. The time now is 20:35.