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

No change in phase change using interPhaseChangeFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 27, 2015, 09:35
Default
  #21
Senior Member
 
Join Date: May 2011
Posts: 231
Rep Power: 16
Kanarya is on a distinguished road
I did compile it as well but doesnt work...
could you send me your case only not the code if you do not mind...
I can try my code in your working case
thanks in advance!!!
Quote:
Originally Posted by mihaipruna View Post
As I posted earlier in the thread, to get it to work for me, I had to recompile
phaseChangeTwoPhaseMixture
Kanarya is offline   Reply With Quote

Old   May 27, 2015, 10:42
Default
  #22
Senior Member
 
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16
mihaipruna is on a distinguished road
why not test it like they did in the tutorial, by removing the bullet from the cavitatingBullet case and setting a temperature BC?

I don't have access to my case files right now.
__________________
Mihai Pruna's Bio
mihaipruna is offline   Reply With Quote

Old   May 27, 2015, 10:47
Default
  #23
Senior Member
 
Join Date: May 2011
Posts: 231
Rep Power: 16
Kanarya is on a distinguished road
Hi,
I did the test with their tutorial...when I set the alpha=0, then nothing is changing and alpha remains always zero which is wrong right?
But when I put some value to alpha like 0.00001, it seems it does something...
did you try to give alpha=0 for initial condition?

Thanks!



Quote:
Originally Posted by mihaipruna View Post
why not test it like they did in the tutorial, by removing the bullet from the cavitatingBullet case and setting a temperature BC?

I don't have access to my case files right now.
Kanarya is offline   Reply With Quote

Old   May 27, 2015, 11:46
Default
  #24
Senior Member
 
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16
mihaipruna is on a distinguished road
no, I had initial alpha=1.I was modeling boiling.
How many time steps did you run it for?
__________________
Mihai Pruna's Bio
mihaipruna is offline   Reply With Quote

Old   May 27, 2015, 12:02
Default
  #25
Senior Member
 
Join Date: May 2011
Posts: 231
Rep Power: 16
Kanarya is on a distinguished road
I run for 0.05s...
did you read the master thesis Roman Thiele?
he modified it with different models for condensation...
what do you think?
are you still interested in this topic?

thanks!


Quote:
Originally Posted by mihaipruna View Post
no, I had initial alpha=1.I was modeling boiling.
How many time steps did you run it for?
Kanarya is offline   Reply With Quote

Old   June 1, 2015, 07:19
Default
  #26
Senior Member
 
Join Date: May 2011
Posts: 231
Rep Power: 16
Kanarya is on a distinguished road
HI,

I modified the solver so called interPhaseChangeFoam by following the instructions form Andersen tutorial...Is is work fine with cavitaingBullet case but not in simple pipe flow..it gives me following message:
Code:
Selecting phaseChange model SchnerrSauer
Selecting incompressible transport model Newtonian
Selecting incompressible transport model Newtonian
Selecting turbulence model type laminar
Reading transportProperties

Calculating field g.h


PIMPLE: Operating solver in PISO mode

time step continuity errors : sum local = 1.15855e-05, global = -1.19144e-16, cumulative = -1.19144e-16
GAMG:  Solving for pcorr, Initial residual = 1, Final residual = 3.48266e+19, No Iterations 50
GAMG:  Solving for pcorr, Initial residual = 0.965555, Final residual = 1.08509e+21, No Iterations 50
time step continuity errors : sum local = 4.51124e+35, global = -1.41141e+28, cumulative = -1.41141e+28
Courant Number mean: 3.09991e+35 max: 5.41686e+38

Starting time loop

Courant Number mean: 0.00057227 max: 1
deltaT = 1.84609e-47
Time = 1.84609e-47

#0  Foam::error::printStack(Foam::Ostream&) in "/usr/local/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1  Foam::sigFpe::sigHandler(int) in "/usr/local/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2  
 at sigaction.c:0
#3  Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) in "/usr/local/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#4  void Foam::divide<Foam::fvPatchField, Foam::volMesh>(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) in "/home/links/rek209/OpenFOAM/rek209-2.1.0/platforms/linux64GccDPOpt/bin/myInterPhaseChangeFoam"
#5  Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::operator/<Foam::fvPatchField, Foam::volMesh>(Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&, Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&) in "/home/links/rek209/OpenFOAM/rek209-2.1.0/platforms/linux64GccDPOpt/bin/myInterPhaseChangeFoam"
#6  
 in "/home/links/rek209/OpenFOAM/rek209-2.1.0/platforms/linux64GccDPOpt/bin/myInterPhaseChangeFoam"
#7  
 in "/home/links/rek209/OpenFOAM/rek209-2.1.0/platforms/linux64GccDPOpt/bin/myInterPhaseChangeFoam"
#8  
 in "/home/links/rek209/OpenFOAM/rek209-2.1.0/platforms/linux64GccDPOpt/bin/myInterPhaseChangeFoam"
#9  
 in "/home/links/rek209/OpenFOAM/rek209-2.1.0/platforms/linux64GccDPOpt/bin/myInterPhaseChangeFoam"
#10  __libc_start_main in "/lib64/libc.so.6"
#11  
 in "/home/links/rek209/OpenFOAM/rek209-2.1.0/platforms/linux64GccDPOpt/bin/myInterPhaseChangeFoam"
Floating point exception
I think, there is problem with the BC for p_rgh but I am not sure
And BC I have used :
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [1 -1 -2 0 0 0 0];

internalField   uniform 1e5;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }

   
     outlet
    {
        type            fixedValue;
        value           $internalField;
    }

    hot_wall
    {
       type            zeroGradient;
        
    }
    ocold_wall
    {
        type            zeroGradient;
        
    }
    icold_wall
    {
      type            zeroGradient;
       
    }

}

// ************************************************************************* //
and for alpha:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      alpha1;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform  0.00001;
    }

    outlet
    {
        type            inletOutlet;
        inletValue      $internalField;
    }

    walls
    {
        type            symmetry;
    }

}

// ************************************************************************* //
Can you help me with this problem or any suggestions?

Thanks in advance!

Last edited by wyldckat; June 12, 2015 at 19:42. Reason: Changed [PHP][/PHP] to [CODE][/CODE]
Kanarya is offline   Reply With Quote

Old   June 2, 2015, 07:58
Default
  #27
Senior Member
 
Join Date: May 2011
Posts: 231
Rep Power: 16
Kanarya is on a distinguished road
Hi,

is there anybody interested in my problem?
Kanarya is offline   Reply With Quote

Old   June 12, 2015, 19:44
Default
  #28
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by Kanarya View Post
is there anybody interested in my problem?
Please follow the instructions given on this thread: http://www.cfd-online.com/Forums/ope...-get-help.html
Otherwise, most people will not even invest time in asking you for more information
wyldckat is offline   Reply With Quote

Old   September 10, 2019, 16:19
Default The solver for OpenFOAMŪ v1806
  #29
New Member
 
Milad Bagheri
Join Date: May 2019
Posts: 5
Rep Power: 7
MiladBagheri is on a distinguished road
Hello everyone,

I know this is an old thread, nevertheless I would like to share the solver here. I hope it is useful for someone.

You can download it from my GitHub:

https://github.com/MiladBagheri/Nume...ng-Regimes.git

You may also check some of the videos I made using this solver to simulate different boiling regimes.

https://www.youtube.com/channel/UCif...AINBMI_rFifgVA
oumnion likes this.
MiladBagheri 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
help for simulation phase change sudni COMSOL 0 January 17, 2014 03:47
homogeneous free surface flow with phase change. Niru CFX 13 December 26, 2013 11:27
Pressure Outlet for phase change simulation dinesh FLUENT 0 November 22, 2013 00:50
Solid/liquid phase change fabian_roesler OpenFOAM 10 December 24, 2012 07:37
Two phase flow with phase change Ahmad Al-Zoubi CFX 1 November 26, 2008 04:59


All times are GMT -4. The time now is 12:02.