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

how to set up MULES for void fraction with source term??

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 7, 2015, 14:23
Default how to set up MULES for void fraction with source term??
  #1
Senior Member
 
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 15
gaza is on a distinguished road
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?
__________________
best regards
pblasiak
gaza is offline   Reply With Quote

Old   July 7, 2015, 14:28
Default
  #2
Senior Member
 
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 15
gaza is on a distinguished road
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?
__________________
best regards
pblasiak
gaza 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
Source Term due to evaporation in energy transport equation styleworker OpenFOAM Programming & Development 3 September 7, 2022 03:09
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 16:02
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 13:59
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 23:31.