|
[Sponsors] |
October 8, 2014, 01:17 |
Two UDF at the same time
|
#1 |
Member
Siamak
Join Date: Jul 2014
Location: Australia
Posts: 36
Rep Power: 11 |
Hey.
I want to simulate a geometry with two different velocity inlets. Because of the time variable velocities in both of the inlets, I have to write separate UDF for both of them. So, my question is that how can I use two unsteady velocity UDF? Or how can I allocate two different unsteady_velocity for two different faces? |
|
October 8, 2014, 04:06 |
|
#2 |
Senior Member
Flavio
Join Date: Sep 2011
Location: Brescia, Italy
Posts: 181
Rep Power: 15 |
Hello siamak1438,
you can write two different Velocity-Profiles in 1 UDF: you have just to name them with different names and then select the correct profile in boundary condition! For example: DEFINE_PROFILE(unsteady_velocity1, thread, position) { face_t f; real t = CURRENT_TIME; ... DEFINE_PROFILE(unsteady_velocity2, thread, position) { face_t f; real t = CURRENT_TIME; ... Best regards
__________________
Bionico |
|
October 8, 2014, 04:08 |
|
#3 |
Senior Member
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 26 |
Flavio is right,
I add only 2 things: write only one line for #define "udf.h" and put all the code in one file. Daniele |
|
October 8, 2014, 10:31 |
|
#4 |
Senior Member
Andrew Kokemoor
Join Date: Aug 2013
Posts: 122
Rep Power: 13 |
You might be able to use profiles instead of UDFs. They're less powerful, but simpler. Check out Section 6.6 of the Fluent User's Guide.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AMI speed performance | danny123 | OpenFOAM | 21 | October 24, 2020 04:13 |
Sudden jump in Courant number | NJG | OpenFOAM Running, Solving & CFD | 7 | May 15, 2014 13:52 |
Micro Scale Pore, icoFoam | gooya_kabir | OpenFOAM Running, Solving & CFD | 2 | November 2, 2013 13:58 |
mixerVesselAMI2D's mass is not balancing | sharonyue | OpenFOAM Running, Solving & CFD | 6 | June 10, 2013 09:34 |
DPM UDF particle position using the macro P_POS(p)[i] | dm2747 | FLUENT | 0 | April 17, 2009 01:29 |