|
[Sponsors] |
September 29, 2018, 16:17 |
multiphase flow
|
#1 |
New Member
Tonoy Mondol
Join Date: Sep 2018
Posts: 13
Rep Power: 8 |
what can lee evaporation condensation model do? if i use lee model for evaporation condensation then is it necessary to use this udf?
#include "udf.h" #include "sg_mphase.h" #define T_SAT 373 #define LAT_HT 2455.1345e3 DEFINE_SOURCE(vap_src, cell, pri_th, dS, eqn) { Thread *mix_th, *sec_th; real m_dot_v; mix_th = THREAD_SUPER_THREAD(pri_th); sec_th = THREAD_SUB_THREAD(mix_th, 1); /*m_dot_v=0.;*/ if(C_T(cell, mix_th)>=T_SAT) { m_dot_v = 0.1*C_VOF(cell, sec_th)*C_R(cell, sec_th)*fabs(C_T(cell, sec_th) - T_SAT)/T_SAT; dS[eqn] = 0.; } if(C_T(cell, mix_th)<=T_SAT) { m_dot_v = -0.1*C_VOF(cell, pri_th)*C_R(cell, pri_th)*fabs(T_SAT-C_T(cell,pri_th))/T_SAT; dS[eqn] = -0.1*C_R(cell, pri_th)*fabs(C_T(cell, pri_th) - T_SAT)/T_SAT; } return m_dot_v ; } DEFINE_SOURCE(liq_src, cell, sec_th, dS, eqn) { Thread * mix_th, *pri_th; real m_dot_l; mix_th = THREAD_SUPER_THREAD(sec_th); pri_th = THREAD_SUB_THREAD(mix_th, 0); /*m_dot_l=0.;*/ if(C_T(cell, mix_th)>=T_SAT) { m_dot_l = -0.1*C_VOF(cell, sec_th)*C_R(cell, sec_th)*fabs(C_T(cell, sec_th) - T_SAT)/T_SAT; dS[eqn] = -0.1*C_R(cell, sec_th)*fabs(C_T(cell, sec_th) - T_SAT)/T_SAT; } if(C_T(cell, mix_th)<=T_SAT) { m_dot_l = 0.1*C_VOF(cell, pri_th)*C_R(cell, pri_th)*fabs(T_SAT-C_T(cell,pri_th))/T_SAT; dS[eqn] =0.; } return m_dot_l; } DEFINE_SOURCE(enrg_src, cell, mix_th, dS, eqn) { Thread *pri_th, *sec_th; real m_dot; pri_th = THREAD_SUB_THREAD(mix_th, 0); sec_th = THREAD_SUB_THREAD(mix_th, 1); if(C_T(cell, mix_th)>=T_SAT) { m_dot = -0.1*C_VOF(cell, sec_th)*C_R(cell, sec_th)*fabs(C_T(cell, sec_th) - T_SAT)/T_SAT; dS[eqn] = -0.1*C_VOF(cell, sec_th)*C_R(cell, sec_th)*LAT_HT/T_SAT; } if(C_T(cell, mix_th)<=T_SAT) { m_dot = 0.1*C_VOF(cell, pri_th)*C_R(cell, pri_th)*fabs(T_SAT-C_T(cell,pri_th))/T_SAT; dS[eqn] = 0.1*C_VOF(cell, pri_th)*C_R(cell, pri_th)*LAT_HT/T_SAT; } return LAT_HT*m_dot; } Did anyone use this code before? in my knowledge lee model works under this code. please share your experience so that i can understand something.thanks in advance |
|
January 15, 2019, 07:42 |
|
#2 | |
New Member
GW
Join Date: Nov 2018
Posts: 6
Rep Power: 8 |
Quote:
|
||
December 4, 2019, 22:18 |
|
#3 | |
Member
Soumitra Vadnerkar
Join Date: Aug 2018
Posts: 70
Rep Power: 8 |
Quote:
I am using this udf. If you are using this model, no need to use Lee model, no need to turn on mass transfer mechanism too; just include the source term, you will be able to see the volume fraction results. But I do not understand the udf. I am not sure if this works or not yet. Let me know if anybody know how it works. |
||
December 22, 2019, 07:10 |
|
#4 | |
Member
CWL
Join Date: Nov 2015
Posts: 58
Rep Power: 11 |
Quote:
I am working on a condensation simulation in a CD nozzle but could not get the steam to condensate. Is the cavitation option in Fluent only possible for evaporation and not condensation? |
||
December 22, 2019, 10:16 |
|
#5 |
Member
Soumitra Vadnerkar
Join Date: Aug 2018
Posts: 70
Rep Power: 8 |
You would need to Compile the UDF, not Interpret.
Then you will be able to assign appropriate source terms to respective cell-zones (for mixture, liquid and gaseous phases) I think you would need two separate mass transfer mechanisms to incorporate a Cavitation phenomenon and an Evaporation (a thermal-phase change) phenomenon. But again, if you are using the UDF, then you will not need a separate mass transfer mechanism for evaporation. |
|
December 22, 2019, 12:42 |
|
#6 | |
Member
CWL
Join Date: Nov 2015
Posts: 58
Rep Power: 11 |
Quote:
|
||
December 24, 2019, 15:06 |
|
#7 |
Member
Soumitra Vadnerkar
Join Date: Aug 2018
Posts: 70
Rep Power: 8 |
I am not that experienced in multi-phase.
Yet, I believe, you would need two Mass Transfer Mechanism if you need to incorporate two different phenomena. I am not sure, but something like this...mass transfer mechanism.PNG And the reason for crashing can be due to problem with your assigned Standard State Enthalpy values in material definition. In my case I put liquid phase enthalpy =0 and gaseous phase enthalpy as the enthalpy difference between the two phases at saturation temperature (from steam table(https://webbook.nist.gov/chemistry/fluid/)). And the value was negative. Reference temperature I used is the saturation temperature. |
|
December 25, 2019, 00:42 |
|
#8 | |
Member
CWL
Join Date: Nov 2015
Posts: 58
Rep Power: 11 |
Quote:
I somehow could get the simulation running when I set the cavitation model from water to gas, but the resulted temperature (at the outlet) is way much higher, which is incorrect. Thanks for your advice. Let me try it over the holiday. Happy holidays. |
||
December 25, 2019, 00:57 |
|
#9 | |
Member
Soumitra Vadnerkar
Join Date: Aug 2018
Posts: 70
Rep Power: 8 |
Quote:
The latent heat and corresponding reference temperature are important! You may specify them based on an average pressure in the domain. You can play with assigning zero value to either of the liquid or gaseous phases and so with the enthalpy vice versa. Same you could do with sign of it. I did that permutation-combination for all cases, and found what I said in earlier post. It is good for condensation. I had selected the case which gave me okayish temperature contour and (although,bad yet) relatively better volume fraction results. Happy Holidays! |
||
December 26, 2019, 03:30 |
|
#10 | |
Member
CWL
Join Date: Nov 2015
Posts: 58
Rep Power: 11 |
Quote:
|
||
December 26, 2019, 11:32 |
|
#11 |
Member
Soumitra Vadnerkar
Join Date: Aug 2018
Posts: 70
Rep Power: 8 |
Create a monitor for temperature and see if it is rising or lowering during a transient-time scale.
If it is rising instead of lowering then possibly you have put the enthalpy is wrong way. Try swapping the zero value and the enthalpy value) or trying change ing the sign or do both. You should also check swapping primary and secondary phases. P.S. you residuals are very abnormal. Maybe there is more than mere material properties that you would need to change. Check mesh quality, try using laminar regime, recheck units, scaling and boundary conditions. |
|
December 30, 2019, 14:03 |
|
#12 |
Member
CWL
Join Date: Nov 2015
Posts: 58
Rep Power: 11 |
I tried several things, including replacing all properties with the one from steam table at the reference temperature. It still did not solve the problem, as long as I set the mass transfer mechanism from steam to water. Thus, I reverted it to water to steam, the simulation went smoothly. However, now, the pressure remains constant throughout at some values.
1. Does it matter if we set it water to steam or steam to water? I assumed if the model considered both evaporation and condensation, then, it should not matter. 2. I set steam as the primary phase as the fluid coming in is pure steam. Does it matter which one is the primary phase per your experience? Thanks. Happy New Year. |
|
December 30, 2019, 16:53 |
|
#13 | |
Member
Soumitra Vadnerkar
Join Date: Aug 2018
Posts: 70
Rep Power: 8 |
Quote:
|
||
January 2, 2020, 13:18 |
|
#14 |
Member
CWL
Join Date: Nov 2015
Posts: 58
Rep Power: 11 |
Hello,
Thank you for your opinion. I actually figured out that the density model is the problem - I am using the real gas SRK equation. When I switched to constant density, the simulation actually giving something reasonable and logical. Tried the ideal gas law, the similar crashing occurred. I looked up the manual today when I get to my office, it seems that gas laws does not apply in the two-phase region for steam. Do you have any suggestions on how to model the density in this case? By the way, why is it when I apply the cavitation model, the pressure field will always converged to the vapourization pressure that I put in throughout the domain? Thanks. |
|
January 2, 2020, 13:29 |
|
#15 |
Member
Soumitra Vadnerkar
Join Date: Aug 2018
Posts: 70
Rep Power: 8 |
I use temperature dependent piece-wise linear distribution for all the properties.
I get all the properties from NIST website |
|
January 2, 2020, 13:53 |
|
#16 |
Member
CWL
Join Date: Nov 2015
Posts: 58
Rep Power: 11 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
About Some Concepts:Laminar flow, turbulent flow, steady flow and time-dependent flow | Jing | Main CFD Forum | 8 | October 5, 2018 18:02 |
multiphase flow ,mass and volume fraction imbalance | sope111 | CFX | 16 | September 3, 2018 01:10 |
Review: Reversed flow | CRT | FLUENT | 1 | May 7, 2018 06:36 |
Multiphase flow in a pipe with a CHT | wissal | CFX | 4 | June 12, 2017 13:15 |
Capillary pressure in multiphase flow in porous media | Lalit | FLUENT | 0 | March 21, 2013 02:24 |