CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

mass flow

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   August 7, 2023, 23:40
Default mass flow
  #1
New Member
 
HRSD
Join Date: Jul 2023
Posts: 11
Rep Power: 2
HRSD is on a distinguished road
Hi,
i write a udf code for define mass flow in mass flow inlet boundary which is in below,

begin_f_loop_int(f,t)
if PRINCIPAL_FACE_P(f,t)
{
count++;
}
end_f_loop_int(f,t)

begin_f_loop_int(f,t)
if PRINCIPAL_FACE_P(f,t)
{
F_AREA(c_sur,f,t);
inst_temp = F_T(f,t);
inst_rdot = aprexp * exp((-acte) / (ugc * inst_temp));
inst_mdot = frho * 2 * pi * NV_MAG(c_sur) * inst_rdot;
F_PROFILE(f,t,i) = count * inst_mdot;
}
end_f_loop_int(f,t)

after doing this code, i calculate mass flux in fluxes report on boundary in fluent, but the mass flux is n't summation of mass flux on all faces, that is only mass flux for a face.
please guide me,
thanks.
HRSD is offline   Reply With Quote

 


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
Ncrit for a glider Xfoil. How to use it. GPT4 answer AlanMattanó Main CFD Forum 0 April 10, 2023 12:16
Issues on the simulation of high-speed compressible flow within turbomachinery dowlee OpenFOAM Running, Solving & CFD 11 August 6, 2021 06:40
Table bounds warnings at: END OF TIME STEP CFXer CFX 4 July 16, 2020 23:44
Mass flow rate history over solution step- rhoSimpleFoam gian93 OpenFOAM Post-Processing 0 December 8, 2019 10:20
Mass Flow Inlet Pravir Kumar Rai FLUENT 0 February 19, 2003 14:03


All times are GMT -4. The time now is 10:42.