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

evapPhaseChangeFOAM

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree15Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 25, 2017, 13:02
Question
  #101
Senior Member
 
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17
Elham is on a distinguished road
Quote:
Originally Posted by nimasam View Post
Dear Elham
Please re-read my points, you will figure out how it is derived.
equation 18:

lets consider S=-mDot(1/rho1-alpha1(1/rho1-1/rho2)))
then source terms for boiling and condensations would be:
Sb=S*alpha1
Sc=S*(1-alpha1)
Also i mentioned in previous post that:

then right hand side of equation 18 becomes:

so alpha1*div(U) is appearing here
now consider boiling and condensation separately,
for boiling the source term is Sb=S*alpha1
so

for condensation Sb=S*(1.0-alpha1), then:
Sorry but I am still confused.

Base on

Quote:
ddt(alpha1)+div(U,alpha1)+Sp*alpha1+Su=0
For boiling it should be :

Quote:
Sp=- div(U) and Su= -S
Elham is offline   Reply With Quote

Old   September 25, 2017, 13:50
Default
  #102
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road

i said Sb=S*alpha1, if you consider Su=S, then you missed alpha1 in equation.
about negative signs, it is better to refer the code to see the exact formulation of MULES, i may missed the signs in post
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   September 26, 2017, 11:11
Default
  #103
Senior Member
 
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17
Elham is on a distinguished road
Quote:
Originally Posted by nimasam View Post

i said Sb=S*alpha1, if you consider Su=S, then you missed alpha1 in equation.
about negative signs, it is better to refer the code to see the exact formulation of MULES, i may missed the signs in post
Dear Nima,

Thanks for all kind answers. I got the idea.You have separated the general source term into two parts; condensation and boiling so that S=Sb+Sc. Then for the boiling phase you just have Sb as source term and for condensation just Sc.

Cheers,

Elham
Elham is offline   Reply With Quote

Old   November 4, 2017, 15:35
Default
  #104
New Member
 
Cláudio Corrêa
Join Date: Jun 2017
Location: Brazil
Posts: 14
Rep Power: 9
claudiocor is on a distinguished road
Quote:
Originally Posted by nimasam View Post
i have developed a solver based on interFOAM, to solve energy equation and besides consider mass transfer between two phases, this solver works correctly for one dimensional case (stephan phase change problem)
but for two case studies, temperature at interface behaves strangely
now any suggestion, cooperation or idea will be helpful

P.S
developed files and case studies are available in attachment
+
some descriptions can be found here:

http://www.4shared.com/document/-eBG...OF_method.html
Hi nimasam
I'm interested in this problem too. I have trying to solve the problem of water vapor condensation in vertical pipe. My problem is three-dimensional. Could you help me solve this problem? I'm used OpenFoam 4.1
claudiocor is offline   Reply With Quote

Old   November 5, 2017, 07:21
Default
  #105
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
Dear Cláudio Corrêaread this post, i upload a solver based on OpenFOAM_2.2.0 which considers both evaporation and condensation and it is suitable for your work
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   December 6, 2017, 01:42
Default constructor classes
  #106
Senior Member
 
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17
Elham is on a distinguished road
Dear Nima,

I am wondering why you defined two different word classes, word& type and word& alpha1Name in phaseChangeHeatFoam?

In constructor of phaseChangeTwoPhaseMixture.C you have:

Foam:haseChangeTwoPhaseMixture:haseChangeTwoPh aseMixture
(
const word& type,
const volVectorField& U,
const surfaceScalarField& phi,
const word& alpha1Name
)

I would appreciate if you let me know.

Cheers,

Elham
Elham is offline   Reply With Quote

Old   February 14, 2018, 04:28
Default anonymous term in energy equation
  #107
Senior Member
 
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17
Elham is on a distinguished road
Dear Niam,

Regarding to phaseChangeHeatFoam the energy equation (25) in your paper is :

ddT + div (UT) - lapplacian (k/rhoC, T) = -1/rhoC *mdotTriplePrime*Hlg

there is a term in TEqn.H in line 19

Code:
- fvm::Sp(fvc::div(phi),T)
which is not corresponding to any term in energy equation.


The whole left side of TEqn is as following:
Code:
    fvScalarMatrix TEqn
    (
          fvm::ddt(T)
        + fvm::div(phi, T)
        - fvm::Sp(fvc::div(phi),T)
        - Foam::fvm::laplacian( k/rhoC_ , T,"laplacian(alphaEff,T)")
    /*    + (
            fvc::div(fvc::absolute(phi, U), p)
          + fvc::ddt(rho, KE) + fvc::div(rhoPhi, KE)
          )/rhoC
    */
    );
Would you please explain a bout it?

Regards,

Elham
Elham is offline   Reply With Quote

Old   February 14, 2018, 06:27
Default
  #108
New Member
 
Saicharan
Join Date: Jan 2018
Location: Bangalore, India
Posts: 29
Rep Power: 8
wavefunction is on a distinguished road
Hi Nima Sam.

Could you kindly send me your solver to the email ID saicharanb56@gmail.com ? I would really appreciate it.

I am trying to simulate sessile droplet evaporation and I believe your solver will be ideal for me. I am, however, new to OpenFOAM and do not possess enough skill to code my own solver.

Thanks in advance.
wavefunction is offline   Reply With Quote

Old   February 20, 2018, 02:10
Default
  #109
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
Dear Saicharan

please look this post
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   February 25, 2018, 13:22
Default
  #110
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
Quote:
Originally Posted by Elham View Post
Dear Niam,

Regarding to phaseChangeHeatFoam the energy equation (25) in your paper is :

ddT + div (UT) - lapplacian (k/rhoC, T) = -1/rhoC *mdotTriplePrime*Hlg

there is a term in TEqn.H in line 19

Code:
- fvm::Sp(fvc::div(phi),T)
which is not corresponding to any term in energy equation.


The whole left side of TEqn is as following:
Code:
    fvScalarMatrix TEqn
    (
          fvm::ddt(T)
        + fvm::div(phi, T)
        - fvm::Sp(fvc::div(phi),T)
        - Foam::fvm::laplacian( k/rhoC_ , T,"laplacian(alphaEff,T)")
    /*    + (
            fvc::div(fvc::absolute(phi, U), p)
          + fvc::ddt(rho, KE) + fvc::div(rhoPhi, KE)
          )/rhoC
    */
    );
Would you please explain a bout it?

Regards,

Elham
fvc::div(phi)=0, so theoretically it is zero, but numerically it is not, and it help numerical stability
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   February 25, 2018, 21:32
Default
  #111
Senior Member
 
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17
Elham is on a distinguished road
Thanks.

Elham
Elham is offline   Reply With Quote

Old   July 20, 2018, 11:12
Default
  #112
Senior Member
 
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 16
gaza is on a distinguished road
Quote:
Originally Posted by Elham View Post
Dear Niam,

Regarding to phaseChangeHeatFoam the energy equation (25) in your paper is :

ddT + div (UT) - lapplacian (k/rhoC, T) = -1/rhoC *mdotTriplePrime*Hlg

there is a term in TEqn.H in line 19

Code:
- fvm::Sp(fvc::div(phi),T)
which is not corresponding to any term in energy equation.


The whole left side of TEqn is as following:
Code:
    fvScalarMatrix TEqn
    (
          fvm::ddt(T)
        + fvm::div(phi, T)
        - fvm::Sp(fvc::div(phi),T)
        - Foam::fvm::laplacian( k/rhoC_ , T,"laplacian(alphaEff,T)")
    /*    + (
            fvc::div(fvc::absolute(phi, U), p)
          + fvc::ddt(rho, KE) + fvc::div(rhoPhi, KE)
          )/rhoC
    */
    );
Would you please explain a bout it?

Regards,

Elham

Dear Elham,
It is also written in the documentation
https://openfoam.org/release/2-2-0/n...s-boundedness/


According to this link the same can be achieved with
setting divergence scheme as bounded in fvScheme file, e.g.
Code:
 div(phi,T)      bounded Gauss upwind;
Elham likes this.
__________________
best regards
pblasiak
gaza is offline   Reply With Quote

Old   May 18, 2022, 09:14
Default
  #113
Member
 
hari charan
Join Date: Sep 2021
Location: India,hyderabad
Posts: 97
Rep Power: 5
saicharan662000@gmail.com is on a distinguished road
Hi nimasam,
Could you tell me how you solved your problem if not possible to send .If you can send you can mail me to this mail : saicharan662000@gmail.com
Thanks and regards
saicharan662000@gmail.com is offline   Reply With Quote

Old   February 24, 2023, 16:17
Default Ancient code
  #114
Member
 
Michael Jensen
Join Date: May 2022
Posts: 36
Rep Power: 4
mikethe1wheelnut is on a distinguished road
Quote:
Originally Posted by nimasam View Post
Dear foamer

The latest version of my solver (phaseChangeHeatFoam), several test cases and published papers are available in github.

https://github.com/NimaSam/phaseChangeHeatFoam/


please inform me about possible bugs.


Best Regards

To anybody like me finding this post all these years later, it uses openfoam 2.2.0, for which installation instructions exist only to up only to ubuntu 13.10, which is, in this case, unsupported and obsolete. If you follow those instructions, they will not succeed. Because the files they depend on won't be there. I have contacted the author about this and been directed to.. I can't recall where, (..I could track it down..) but it was one of the documentation pages you'll find if you search for evaporation/concensation/openfoam. So this is merely a confirmation of what you surely already expect. I can vouch that the author is very friendly if you are reasonable with whatever request you might make :-)


Best regards, Mike :-)
mikethe1wheelnut is offline   Reply With Quote

Old   October 13, 2024, 23:25
Default
  #115
New Member
 
shamiaoluo
Join Date: Sep 2022
Posts: 7
Rep Power: 4
BUAA LSM is on a distinguished road
Please clicHello, Nima Sam.

Would you be so kind to send your code to zy2104210@buaa.edu.cn?
Thanks in advance!k one of the Quick Reply icons in the posts above to activate Quick Reply.
BUAA LSM is offline   Reply With Quote

Old   October 14, 2024, 04:06
Default boiling solvers
  #116
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
Quote:
Originally Posted by BUAA LSM View Post
Please clicHello, Nima Sam.

Would you be so kind to send your code to zy2104210@buaa.edu.cn?
Thanks in advance!k one of the Quick Reply icons in the posts above to activate Quick Reply.
Hi dear foamer
it is interesting that after 6-7 years still i can see some people interested in phaseChangeHeatFoam. The solver is validating for film boiling alot with different authors. However, It was written for OpenFOAM-2.3 and I never tried to upgrade it higher version of OpenFOAM.


https://github.com/NimaSam/phaseChangeHeatFoam





but you can find lots of attempt in literature for developing phase change solver in OpenFOAM. e.g:


1- OpenFOAM standard solver (interCondensatingEvaporatingFoam from esi version)


2- boilingFoam (https://github.com/fmuni/boilingFoam-PUBLIC)
zrxdaly likes this.
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Reply

Tags
boiling, evaporation, interfoam, phase change

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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



All times are GMT -4. The time now is 00:17.