CFD Online Logo CFD Online URL
Home > Forums > General Forums > CFD Freelancers

Converting a UDF from FLUENT 17.2 to FLUENT 2021 R2

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   July 10, 2022, 09:06
Default Converting a UDF from FLUENT 17.2 to FLUENT 2021 R2
New Member
Join Date: Jun 2022
Posts: 3
Rep Power: 3
herko is on a distinguished road
Hello everyone,

I need some help converting some code that I have for ANSYS 17.2 to ANSYS 2021 R2. The primary issue that I face is that whenever I try to run the code in anything after ANSYS 18.0, it does not work properly. I have looked at the FLUENT customization manual and the changes that were suggested are not working. This shouldn't be a super complicated job, but I am willing to pay for anyone who can help me fix this issue.

To further describe the job, I am using a discrete phase model and whenever I try to create an injection using the described UDF to initialize the injection, Fluent returns the message:
"The Parcel model is not compatible with the udf-injection-init.
The model will be disabled and the standard parcel release method will be applied." I would like to use the constant-mass parcel release method, but as it is now, Fluent will only let me run the standard parcel release method. I have attached the UDF initialization code and the injection information that I used below. If you need more info, just let me know.

DEFINE_DPM_INJECTION_INIT(init_Intelligent,I) /*Init for particles by Intelligent option */
Particle *p;

PP_USER_REAL(p, 0) = 0.;
PP_USER_REAL(p, 1) = PP_MASS(p) * PP_N(p) ;

PP_USER_REAL(p, 2) = 10.0; /* Intelligent option */

PP_POS(p)[2] = 0.1; /* for check */

Injection Information:
Temperature(K): 283.15
Flow Rate(kg/s):0.0021373
Start Time(s):0
Stop Time(s):4.0909
Drag Law: dynamic drag
Breakup: breakup enabled, TAB model used with y0=0, breakup parcels=2
Injection type: single
Particle type: droplet
Material: water-liquid
Evaporating species: h2o
Stochastic tracking: Discrete random walk model and random eddy lifetime enabled, number of tries = 1, Time-scale constant = 0.15
Parcel release method: constant mass
Parcel mass: 1*10^-6
UDF Initialization: init_intelligent::UDF_UM
herko is offline   Reply With Quote


ansys, discrete phase model, fluent, parcel simulation
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
how to run fluent from matlab without using aas toolbox? artemis96 ANSYS 7 May 23, 2022 12:16
Problem running fluent with udf on batch tobi b. Fluent UDF and Scheme Programming 3 April 14, 2016 13:54
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 13:41
fluent udf problem: write specific data for every iteration in a file. nnvoro Fluent UDF and Scheme Programming 1 May 27, 2013 15:26
fluent UDF external library lapack problem Rick FLUENT 0 May 7, 2008 10:16

All times are GMT -4. The time now is 04:15.