|August 17, 2011, 02:07||
UDF for transient pressure inlet, mass flow check at nozzle exit and volumetric heat
Join Date: Feb 2011
Posts: 7Rep Power: 8
I have a problem to apply udf to my model.
the problem is analysizing very small nozzle.
However, I have no idea to code and apply udf.
first, I used a pressure inlet to vary a total pressure from 0 to 10Mpa using udf.
It's good to check and analysis the nozzle. But, in addition, I have to apply checking a mass flow rate at nozzle exit. after checking the mass flow rate, I should apply a volumetric heat addition as per mass flow rate( mass flow rate * mdot Q).
here is the question.
1. I hooked the below code, however, I think it is not working. I wanna do change the pressure from 2Mpa to 10Mpa and check the mass flow rate at the exit simultaneously.
plz help me..
Please see the attach
d = Get_Domain(1);
t= Lookup_Thread(d, 7);
p = C_P(c,t);
printf("MASS Flow Rate: %g\n",flow);
DEFINE_PROFILE(pre, t, i)
cu_tim = CURRENT_TIME;
F_PROFILE(f,t,i) = pressure_mag;
Last edited by kokoory; August 17, 2011 at 08:16. Reason: add the code