|
[Sponsors] |
udf doesn't show in the drop down list of boundry condition after function hooks |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 13, 2020, 18:19 |
udf doesn't show in the drop down list of boundry condition after function hooks
|
#1 |
New Member
Join Date: Oct 2020
Posts: 7
Rep Power: 6 |
hello everyone, I am new to fluent UDF, I have followed the manual and everything went smooth up until "function hooks" - did as instructed in the manual but the functions didn't hook.
please need help ASAP! |
|
October 14, 2020, 06:34 |
|
#2 | |
New Member
Join Date: Oct 2020
Posts: 7
Rep Power: 6 |
can someone look at my UDF and point on the mistake, because the file compiles but functions won't hook.
Quote:
|
||
October 14, 2020, 06:39 |
|
#3 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
when you are clicking LOAD button, the list of available function from UDF is written into console output
if you don't have your function, most likely, you didn't compile UDF successfully what the name of function which you expect to have? which macro in UDF do you use?
__________________
best regards ****************************** press LIKE if this message was helpful |
|
October 14, 2020, 09:20 |
|
#4 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
You have a subtle bug in your problem:
Code:
F_FLUX(f,t)=(200/3600); Code:
F_FLUX(f,t)=(200.0/3600); This is not causing the compilation error, to find out what causes the compilation error you should read whatever shows up on your screen directly after you click "build". |
|
October 14, 2020, 10:54 |
|
#5 | |
New Member
Join Date: Oct 2020
Posts: 7
Rep Power: 6 |
this is what I get in the TUI after build and load:
Quote:
|
||
October 14, 2020, 10:57 |
|
#6 |
New Member
Join Date: Oct 2020
Posts: 7
Rep Power: 6 |
this is what it looks like in the function hooks -
available adjust function[0/0]/// selected adjust function[0/2] ________________________/// inlrt_mass_flow::libudf44 ________________________/// inlrt_temperature::libudf44 |
|
October 14, 2020, 14:40 |
|
#7 |
New Member
Join Date: Oct 2020
Posts: 7
Rep Power: 6 |
Is anyone familiar with this problem?
|
|
October 14, 2020, 15:04 |
|
#8 |
New Member
Join Date: Oct 2020
Posts: 7
Rep Power: 6 |
I found that DEFINE_ADJUST macro won't hook, but DEFINE_PROFILE can be compiled and load properly.
how can I adjust the code above to match DEFINE_PROFILE macro? |
|
October 16, 2020, 04:38 |
|
#9 | |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
Quote:
the reason, why your boundary conditions are not changing is that you need DEFINE_PROFILE macro to define boundary conditions. Read Ansys Fluent Customization manual for good examples (or use forum)
__________________
best regards ****************************** press LIKE if this message was helpful |
||
October 18, 2020, 19:37 |
|
#10 | |
New Member
Join Date: Oct 2020
Posts: 7
Rep Power: 6 |
managed to solve the problem I had here is the final code, if someone has a suggestion for refinement it will be greatly appreciated.
Quote:
|
||
Tags |
fluent - udf, function hookes, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] installation problem with version 0.2.3 | Claudio87 | OpenFOAM Community Contributions | 9 | May 8, 2013 11:20 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 14:59 |
[blockMesh] non-orthogonal faces and incorrect orientation? | nennbs | OpenFOAM Meshing & Mesh Conversion | 7 | April 17, 2013 06:42 |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 10:56 |
Droplet Evaporation | Christian | Main CFD Forum | 2 | February 27, 2007 07:27 |