|
[Sponsors] |
Implementation of Temperature Eqn in InterPhaseChangeFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 18, 2013, 08:22 |
Implementation of Temperature Eqn in InterPhaseChangeFoam
|
#1 |
Member
|
Dear All,
Has anyone sucessfully implemented the temperature equation in interphaseChangeFoam?? I followed 'A interphasechangeFoam tutorial by Martin Andersen' but the results seem to be quite inaccurate. I have attached the relevant files below. ALPHA1 Code:
FoamFile { version 2.0; format ascii; class volScalarField; location "0"; object alpha; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 0 0 0 0]; internalField uniform 0; boundaryField { axis { type symmetryPlane; } right_wall { type constantAlphaContactAngle; theta0 10; limit gradient; value uniform 0; } lower_wall { type zeroGradient; } atmosphere { type zeroGradient; } default_faces { type empty; } } P_RGH Code:
FoamFile { version 2.0; format ascii; class volScalarField; location "0"; object p_rgh; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -1 -2 0 0]; internalField uniform 100000; boundaryField { axis { type symmetryPlane; } right_wall { type fixedFluxPressure; adjoint no; } lower_wall { type buoyantPressure; } atmosphere { type fixedValue; value uniform 100000; } default_faces { type empty; } } T Code:
FoamFile { version 2.0; format ascii; class volScalarField; location "0"; object T; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 1 0]; // [K] internalField uniform 280.15; boundaryField { axis { type symmetryPlane; } right_wall { type fixedValue; value uniform 300.15; } lower_wall { type fixedValue; value uniform 300.15; } atmosphere { type fixedValue; value uniform 280.15; } default_faces { type empty; } } U Code:
FoamFile { version 2.0; format ascii; class volVectorField; location "0"; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0]; internalField uniform (0 0 0); boundaryField { axis { type symmetryPlane; } right_wall { type fixedValue; value uniform (0 0 0); } lower_wall { type fixedValue; value uniform (0 0 0); } atmosphere { type fixedValue; value uniform (0 0 0); } default_faces { type empty; } } TRANSPORT PROPERTIES Code:
FoamFile { version 2.0; format ascii; class dictionary; object transportProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // phaseChange on; phaseChangeTwoPhaseMixture Kunz; sigma sigma [1 0 -2 0 0 0 0] 0.07; DT DT [0 2 -1 0 0 0 0] 0.02; // [m^2/s] phase1 { transportModel Newtonian; nu nu [0 2 -1 0 0 0 0] 5.5e-07; rho rho [1 -3 0 0 0 0 0] 988; } phase2 { transportModel Newtonian; nu nu [0 2 -1 0 0 0 0] 4.273e-04; rho rho [1 -3 0 0 0 0 0] 0.02308; } KunzCoeffs { UInf UInf [0 1 -1 0 0 0 0] 5.0; tInf tInf [0 0 1 0 0 0 0] 0.016; // L = 0.08 m Cc Cc [0 0 0 0 0 0 0] 100; Cv Cv [0 0 0 0 0 0 0] 100; } MerkleCoeffs { UInf UInf [0 1 -1 0 0 0 0] 5.0; tInf tInf [0 0 1 0 0 0 0] 0.016; // L = 0.08 m Cc Cc [0 0 0 0 0 0 0] 1; Cv Cv [0 0 0 0 0 0 0] 1; } SchnerrSauerCoeffs { n n [0 -3 0 0 0 0 0] 1.6e+13; dNuc dNuc [0 1 0 0 0 0 0] 2.0e-06; Cc Cc [0 0 0 0 0 0 0] 1; Cv Cv [0 0 0 0 0 0 0] 1; } Last edited by Jibran; January 18, 2013 at 08:39. |
|
April 8, 2013, 08:38 |
|
#2 |
Member
ABE
Join Date: Jul 2012
Posts: 46
Rep Power: 14 |
Which version of openfoam do you use?
Have you been able to get good results from new versions of OF (i.e. 2.1 or 2.2)? ABE |
|
April 10, 2013, 06:56 |
|
#4 |
Member
ABE
Join Date: Jul 2012
Posts: 46
Rep Power: 14 |
Hi Jibran,
do you simulate cavitation? |
|
April 10, 2013, 08:37 |
|
#6 |
Member
ABE
Join Date: Jul 2012
Posts: 46
Rep Power: 14 |
I think, the method used in interPhasechange solver is a relatively different. In this case evaporation or condensation can occur anywhere which has pressure lower than saturation pressure. While in the interfacial method, phase change just occur in the interface of the two phases (am I right?)
|
|
April 10, 2013, 10:17 |
|
#7 |
Member
|
Yes that is correct. Therefore I am using a modified phase change model. By including terms such as "alpha1*(1-alpha1)" in the phase change equations one can ensure that the evaporation and condensation takes place just at the interface.
|
|
April 10, 2013, 10:26 |
|
#8 |
Member
ABE
Join Date: Jul 2012
Posts: 46
Rep Power: 14 |
Do you have get any results?
are the both phases considered compressible or just the vapor phase? |
|
September 19, 2013, 01:48 |
|
#10 | |
Member
Mohammad Bahreini
Join Date: Dec 2012
Posts: 36
Rep Power: 14 |
Quote:
Do you modified youre solver (interPhasechangrFoam) by adding T.eqn and source term?i want simulate evaporation and condensation and i use interPhasechangeFoam solver.i implemented the temperature equation( A interphasechangeFoam tutorial by Martin Andersen) but i dnt know how modified the solver by source term and T.eqn for phase change with increasing Temperature. |
||
June 2, 2015, 08:52 |
|
#11 |
Senior Member
Join Date: May 2011
Posts: 231
Rep Power: 16 |
Hi All,
I am trying to simulate condensation with interPhaseChangeFoam by adding scalar T. But it gives me the following error: PHP Code:
for p_rhg: PHP Code:
PHP Code:
PHP Code:
PHP Code:
can you hep me to fix the problem? thanks! |
|
June 2, 2015, 10:33 |
|
#12 |
Senior Member
Join Date: May 2011
Posts: 231
Rep Power: 16 |
Hi Jibran,
Did you add this term (alpha1*(1-alpha1)) to alphaEqn.H? Did you get the results? Thanks |
|
June 17, 2015, 06:10 |
|
#13 |
Senior Member
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 16 |
Hi Kanaraya
It would be better to use OF2.3. You can try to decrease Courant number. If you use model from Andersen tutorial it give you wrong results. I try to do use his model for condensation on vertical wall and solver always crashed. It is due to bad model for mass flux.
__________________
best regards pblasiak |
|
June 17, 2015, 06:19 |
|
#14 | |
Senior Member
Join Date: May 2011
Posts: 231
Rep Power: 16 |
Hi Gaza,
thanks for your reply! Did you manage to get another model? Or how did you solve your problem? thanks! Quote:
|
||
June 17, 2015, 11:47 |
|
#15 |
Senior Member
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 16 |
Hi Kanarya,
I did not solve my problem. I only know that interPhaseChangeFoam is good for cavitation mass transfer models. For heat transfer one has to change the main code a bit and write own functions for mDotAlphal and mDotP. Solver is constructed in that way that in alpha equation (alphaEqn.H) condensation mass flux is multiplied by (1 - alpha) and evaporation mass flux is multiplied by alpha. So you have to: 1) adjust your implementation for mass fluxes to the solver or 2) implement them as they should be and change the solver (alpha eqn. and lines in MULES where vDot variables are used). The same is true about mDotP function. I think that it would be better to implement model based on TSat not for pSat.
__________________
best regards pblasiak |
|
Tags |
energy equation, interphasechangefoam, temperature |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calculation of the Governing Equations | Mihail | CFX | 7 | September 7, 2014 07:27 |
Eliminating exchange energy between phase in Granular Temperature diff eqn. | cfdbusiness | FLUENT | 0 | February 2, 2010 23:30 |
Please explain the implementation of species transport Eqn in reactingFoam | kallipygian | OpenFOAM Running, Solving & CFD | 0 | October 13, 2008 08:29 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 14, 2000 00:03 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 11, 2000 04:43 |