|
[Sponsors] |
Converting a UDF from FLUENT 17.2 to FLUENT 2021 R2 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 10, 2022, 10:06 |
Converting a UDF from FLUENT 17.2 to FLUENT 2021 R2
|
#1 |
New Member
Ohio
Join Date: Jun 2022
Posts: 3
Rep Power: 4 |
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. UDF: DEFINE_DPM_INJECTION_INIT(init_Intelligent,I) /*Init for particles by Intelligent option */ { Particle *p; loop(p,I->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: X-pos(m):-2.538 Y-pos(m):0.84 Z-pos(m):3.6576 X-vel(m/s):11.0475 Y-Vel(m/s):-3.6024 Z-vel(m/s):0.89408 Diameter(m):0.0001092 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 |
|
Tags |
ansys, discrete phase model, fluent, parcel simulation |
|
|
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 13:16 |
Problem running fluent with udf on batch | tobi b. | Fluent UDF and Scheme Programming | 3 | April 14, 2016 14:54 |
Running UDF with Supercomputer | roi247 | FLUENT | 4 | October 15, 2015 14:41 |
fluent udf problem: write specific data for every iteration in a file. | nnvoro | Fluent UDF and Scheme Programming | 1 | May 27, 2013 16:26 |
fluent UDF external library lapack problem | Rick | FLUENT | 0 | May 7, 2008 11:16 |