-
-
March 3, 2020 at 2:46 pmsachintom1992Subscriber
I need to modify the existing CHF wall boiling model in Ansys fluent to solve for annular flow regime. How I can write UDFÂ for wall boiling model in Fluent and where to hook it?
Â
Â
-
March 3, 2020 at 4:48 pmDrAmineAnsys EmployeeWhat kind of flow regime do you have? It should not be an easy task by the way.
-
March 3, 2020 at 6:35 pmDrAmineAnsys EmployeeWhat kind of flow regime do you have? It should not be an easy task by the way.
-
March 4, 2020 at 4:59 amsachintom1992Subscriber
Dear sir,
             I am working on liquid sodium flow boiling in an annulus channel similiar to that of single pin fuel sub channel of SFR. The various flow regimes possible for liquid sdoium flow boiling are the subcooled flow boiling regime(bubbly flow) then the transition regime(slug/churn dominant) and the dispersed annular flow regime and the liquid film dryout (CHF condition). I am trying with Eulerian-Eulerain Multiphase flow model with CHF WHFP. I ma able to get reasonable result for bubbly flow and slug/churn dominant but i am not able to solve for dispersed annular and finally most flow. Is it possible with modifying WHFP for high void fraction regimes?
Â
-
March 4, 2020 at 5:41 amDrAmineAnsys Employee
The modifications which you can do are limited to providing nucleation site density, bubble departure diameter and other sub-models. The blending of the regime can be changed but you cannot provide a new formulation for it.
I assume the fuel channel are vertical ring channel? So actually CHF RPI cam be used but you need to be careful with all submodels.
-
March 4, 2020 at 5:50 amsachintom1992Subscriber
Dear sir,
            I seen in Fluent theory guide CHF model by Ioilev et al. consider thin film boiling also into consideration. How to activate this model instead of critical vapor fraction based one?
-
March 4, 2020 at 6:26 amDrAmineAnsys Employee
It is mentioned under Including the Boiling Model in the User's Guide.
-
March 5, 2020 at 12:07 pmsachintom1992Subscriber
 Dear sir,
             Can we consider same constitutive correlations for interfacial area concentration, drag coefficient , interfacial heat transfer for slug flow regime and annular flow regime as both are like LSI regimes?
-
March 5, 2020 at 3:47 pmDrAmineAnsys EmployeeLsi: large scale interface model of our competitor? Yes.
-
March 6, 2020 at 2:46 pmsachintom1992Subscriber
Dear sir,
           I have doubts about interfacial constitutive correlations in two-fluid model. Can we use the empirical correlations those are used in lumped analysis (porous media approximation, subchannel level analysis of reactor flow channel) as such into CFD code?For ex. interfacial area concentration in lumped analysis codes consider as : (4*(vapor fraction)^0.5)/Dh  Dh hydraulic diameter. This is for annular flow regime. But in CFD codes thy give as gradient of vapor fraction as IAC correlation for annular flow regime. What is the difference between both?
-
March 6, 2020 at 4:24 pmDrAmineAnsys EmployeeAsk your professor for assistance here. I would adapt lumped parameter correlations to CFD means using them directly is wrong.
-
March 11, 2020 at 11:34 amsachintom1992Subscriber
Dear sir,
            Thanks a lot for your replies. Can u help me with drag coefficient correlation for LSI regime? From literature I seen it is expressed in terms of tangential shear stress acting along the interacting phases (GENTOP model). how to make it as udf?
Â
-
March 11, 2020 at 3:33 pmDrAmineAnsys Employee
It is already implemented in AIAD so no need to implement it on your own.
-
March 18, 2020 at 6:27 amsachintom1992Subscriber
Dear sir,
         Â
-
March 18, 2020 at 6:41 amsachintom1992Subscriber
Dear sir,
           Thanks a lot for your reply.
-
March 18, 2020 at 7:00 amsachintom1992Subscriber
Dear sir,
             The default CHF model in Ansys fluent consider flow patterns as: bubbly flow regime(void fraction<0.3) transition (0.3
0.7). The interfacial constitutive relations use blending functions between each flow regimes. Suppose I want to consider the flow regimes as: bubbly flow regime(void fraction<0.3) transition (0.3
Â
-
March 18, 2020 at 8:06 amDrAmineAnsys Employee
You can define your closure laws for drag, non-drag forces as you want. The internal code will just start blending at 0.3 and 0.7 so that you provide your UDF's to differentiate in the regime larger than 0.7.
It might work!
-
March 18, 2020 at 9:28 amsachintom1992Subscriber
Dear sir,
           It means I need to give closure laws only for void fraction<0.3 and void fraction>0.7. In between does the code will blend suitably?
-
March 18, 2020 at 10:32 amDrAmineAnsys Employee
The code will blend as documented.
-
March 18, 2020 at 10:34 amDrAmineAnsys Employee
But you want an additional blend on top where you want to provide your own exchange laws. So basically the code will blend starting from 0.7 and now you need to provide different laws based on the volume fraction.
-
March 18, 2020 at 10:38 amsachintom1992Subscriber
Sir,
     Can I give the correlations from bubbly flow regime itself. As in 0.3
-
March 18, 2020 at 12:33 pmDrAmineAnsys Employee
That does sustain any use changes. The only thing you can do is providing the closure laws based on your volume fraction and here you account to whatever you want , The function used to blend is documented.Â
-
May 9, 2020 at 5:34 amsachintom1992Subscriber
Sir,
 The above is udf code for interfacial area concentration from bubbly regime to annular flow regime. Here the w variable i am using within the if statement is not taking proper values into the fluent code. I am unable to solve the issue. Please help me on this.
Â
Â
#include "udf.h"
#include "mem.h"
#define GRA 9.81
#define ST 0.12
DEFINE_EXCHANGE_PROPERTY(custom_ia,c,t,i,j)
{
//Thread *ps = THREAD_SUB_THREAD(t,j);
//real Ref1, Wed1, E1, Edv1;
real muL, rho_f, rho_g;
real dh = 0.0085;Â Â Â Â Â Â Â Â Â Â Â Â Â Â // hydraulic diameter in m
real ai1, ai2, ai;
real w = 0;
real vof_j, diam, area_intf;
real fd = 0;
real fb = 0;
real fs = 0;
//real z = 0;
Thread *thread_f, *thread_g;
thread_f = THREAD_SUB_THREAD(t,i);/* continuous */
thread_g = THREAD_SUB_THREAD(t,j);/* discontinuo*/
vof_j = C_VOF(c,thread_g);
diam = C_PHASE_DIAMETER(c,thread_g);
rho_f = C_R(c, thread_f);Â Â // liquid density
rho_g = C_R(c, thread_g);Â Â // vapor density
muL = C_MU_L(c,thread_f);Â Â // liquid viscosity
/* weighting function in transition region*/
if(vof_j<=0.3)
{
   w = 0;               Â
}
else if(0.3{Â Â Â
   w = (0.5)*(1-cos(3.14*((vof_j-0.3)/(0.7-0.3))));   Â
}
else if(vof_j>=0.7)
{
   w = 1;
}
/*blending function*/
fd = 1/(1+exp(70*((1-vof_j)-0.3)));
fb = 1/(1+exp(70*(vof_j-0.3)));
fs = 1-fd-fb;
   ai1 = 6.*vof_j/diam;              /*bubbly regime IAC equation*/
Â
   ai2 = (4*pow(vof_j,0.5))/dh ;
Â
   ai = fb*ai1 + fd*ai2 + fs*((1-w)*(ai1)+w*(ai2)) ;      /*blending equation*/
Â
   area_intf = MAX(0.0,ai);
Â
 C_UDMI(c,t,1) = area_intf;
 C_UDMI(c,t,2) = w;
 C_UDMI(c,t,3) = fb;
 C_UDMI(c,t,4) = fs;
 C_UDMI(c,t,5) = fd;
return area_intf;
}
Â
-
May 26, 2020 at 11:32 amsachintom1992Subscriber
Sir,
    I have a small doubt about how transition regime (i.e. between bubbly regime and annular flow regime) interfacial correlations to be considered.
                          Suppose an interfacial parameter say Interfacial area concentration is considered in transition regime as:
                                                             Ai (transition) = (1-w)*Ai(bubbly) + w*Ai(annular)  where w weighting function
Here Ai(bubbly) has to be evaluated at alpha=0.3 or at corresponding alpha (say 0.5) in the transition regime. Also Ai(annular) to be evaluated at 0.7 or at corresponding alpha (say 0.5) in the transition regime.
Please help me on this doubt.
-
May 26, 2020 at 4:35 pmDrAmineAnsys Employeeyes the weighting function should do that biasing for you. The manual contains some examples of possible functions.
-
May 27, 2020 at 11:49 amsachintom1992Subscriber
Sir,
    My doubt is how Ai bubbly and Ai annular to be evaluated? Is it at say alpha = 0.3 and alpha =0.7 and weight it or at each alpha values say at 0.4, 0.5,0.6 etc.and weight it?
-
July 8, 2020 at 5:41 amsachintom1992Subscriber
Sir,
   One doubt regarding multi phase turbulence model. Suppose I wants to capture violently pulsating flow regime i.e. area averaged vapor fraction at any cross-section fluctuates b/w say 0.8 to 0.5 and I need to capture the behaviour without loosing the interface. Is the mixture based treatment or per-phase based turbulence treatment will be better for it?
Â
Â
-
July 8, 2020 at 6:17 amDrAmineAnsys Employee
I would rather decide on stability as per phase is prone to stiffness issues as contains more physics but not all closure laws are available. I have done runs with both apporaches.
-
July 8, 2020 at 6:56 amsachintom1992Subscriber
Sir,
   While doing the simulation I am getting error as "Turbulent viscosity limited to 10^5 in certain cells" and case is diverging. Is it happening because of not choosing proper turbulence treatment? Mine flow pattern itself is getting disturbed with this error. What about turbulence damping? Can it preserve such a large scale interface without any trouble?
The attached is area averaged vapor fraction at end of heated section I got in my simulation. When violent pulsation happens it is diverging.Â
-
July 8, 2020 at 11:49 amDrAmineAnsys Employee
Might be for a lot of reason: bad mesh, wrong BC, very fine mesh (RPI does not like fine wall mesh yplus>30) etc. Hard to say at this stage why!
-
July 8, 2020 at 11:54 amsachintom1992Subscriber
Sir,
   Is the surface tension force is added in two-fluid model or we need to consider add it as source term udf?
-
July 8, 2020 at 12:15 pmDrAmineAnsys Employee
You need to add it if required. I won't add it in a boiling simulation.
-
July 8, 2020 at 1:58 pmsachintom1992Subscriber
Sir,
   I need to consider large scale interface (slug/annular) in my flow boiling simulations. In literature I have seen they are considering surface tension force also in Momentum equation(Thomas Hohne et al. 2012)for LSI regime capture. If I given it as source term UDF whether same mesh will be sufficient for simulation? Usually for flow boiling mesh is coarse type?
Regards,
Sachin
-
July 8, 2020 at 5:32 pmDrAmineAnsys EmployeeIf you are doing all stuff via UDF you can try to distribute mass source Nd heat source. Aiad model is also included in Fluent.
I recommend though to implement everything via UDF. -
July 8, 2020 at 5:59 pmsachintom1992Subscriber
Sir,
    What is happening with my simulation is high vapor fraction regime(say area averaged vapor fraction 0.5-0.8 region) the model is not properly capturing the interface. It is unable to maintain the Large interface.
So first I added turbulence damping term in epsilon equation as source term sill it was not going proper. So now I feel like surface tension is playing a role here.Can surface tension force maintain the interface properly?
Also as per you have told with default two-fluid model for flow boiling simulation surface tension force is not included I need to add it as source term udf. Is the Continuum Surface Force model or Height function based will be better?
-
July 8, 2020 at 6:13 pmDrAmineAnsys EmployeeYea it can but require resolution.
If you enable multifluid VOF you can account for surface tension force. I would focus on that and neglect first subgrid boiling effect. -
July 9, 2020 at 7:43 amsachintom1992Subscriber
Sir,
    Where this surface tension force UDF has to be attached. Is it axial momentum or radial momentum equation for either of the phases?
-
July 9, 2020 at 7:51 amDrAmineAnsys Employee
If you are using Multi Fluid VOF you do not need to add any surface tension UDF.Â
-
July 9, 2020 at 7:58 amsachintom1992Subscriber
Sir,
   Using Multifluid VOF is like solving two phase flow problem. I need to consider wall boiling also. Mine is flow boiling problem.Â
-
July 9, 2020 at 8:06 amDrAmineAnsys Employee
I recommended to mode your boiling via UDF or neglect the subgrid boiling effect.
Â
Anyway I will just answer here: surface tension force to be added as source term in momentum equation.Â
I recommend that you create another new thread with clear description as this thread get confusing and long..
-
October 1, 2023 at 6:28 amsrikashiSubscriber
Dear sir
I am simulating subcooled flow boiling and also CHF in rectangular microchannel using Fluent wall boiling model....my doubt is
1) can we use CHF model for simulating subcooled flow boiling
2) upto what heat flux we can use RPI wall boiling.....can we go upto critical heat flux and still use RPI model....??
3) while using CHF model I am experiencing convergence issues ......I have used Psuedotransient approach ....what should be the ideal time scale facator....
pls someone clarify
thanks i advance
-
October 3, 2023 at 12:55 pmRobForum Moderator
Please create a new topic for attention.Â
-
- The topic ‘Critical Heat flux wall boiling model in Ansys fluent’ is closed to new replies.
- error udf
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Fluent fails with Intel MPI protocol on 2 nodes
- Cyclone (Stairmand) simulation using RSM
- Diesel with Ammonia/Hydrogen blend combustion
- Non-Intersected faces found for matching interface periodic-walls
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Encountering Error in Heterogeneous Surface Reaction
- How to obtain axial and tangential velocity in CFX-post?
-
1146
-
471
-
468
-
225
-
201
© 2024 Copyright ANSYS, Inc. All rights reserved.