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

evapPhaseChangeFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree14Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 25, 2017, 12:02
Question
  #101
Senior Member
 
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 16
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, 12:50
Default
  #102
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
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, 10:11
Default
  #103
Senior Member
 
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 16
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, 14:35
Default
  #104
New Member
 
Cláudio Corrêa
Join Date: Jun 2017
Location: Brazil
Posts: 14
Rep Power: 8
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, 06:21
Default
  #105
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
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, 00:42
Default constructor classes
  #106
Senior Member
 
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 16
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, 03:28
Default anonymous term in energy equation
  #107
Senior Member
 
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 16
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, 05: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, 01:10
Default
  #109
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
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, 12:22
Default
  #110
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
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, 20:32
Default
  #111
Senior Member
 
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 16
Elham is on a distinguished road
Thanks.

Elham
Elham is offline   Reply With Quote

Old   July 20, 2018, 10:12
Default
  #112
Senior Member
 
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 15
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, 08:14
Default
  #113
Member
 
hari charan
Join Date: Sep 2021
Location: India,hyderabad
Posts: 96
Rep Power: 4
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, 15:17
Default Ancient code
  #114
New Member
 
Michael Jensen
Join Date: May 2022
Posts: 27
Rep Power: 3
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

Reply

Tags
boiling, evaporation, interfoam, phase change


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 03:14.