|
[Sponsors] |
August 24, 2015, 03:41 |
|
#61 |
New Member
Marya A
Join Date: Mar 2015
Posts: 6
Rep Power: 11 |
Thanks a lot. It worked for me
|
|
September 30, 2015, 16:51 |
|
#62 |
New Member
Yifei
Join Date: Sep 2015
Posts: 5
Rep Power: 11 |
The description in the pdf file works for me!
I was trying to load the libudf to Fluent after I thought I have built it. Actually it didn't. Even though there is no error message showing up when I click on the build button. The problem I encountered was due to a space in the name of my .c file. So I suggest to make a simple name for the .c file. And I found this when I checked the log file under the /libudf/win64/ folder. Hope this would help someone. |
|
October 14, 2015, 19:52 |
Amazing!!
|
#63 |
Member
Rui
Join Date: Apr 2015
Location: Montreal. CA
Posts: 49
Rep Power: 11 |
Thank you for the help
|
|
April 18, 2016, 15:52 |
|
#64 |
New Member
Ozair Piracha
Join Date: Mar 2016
Posts: 4
Rep Power: 10 |
Hey all,
I am using Windows 10 (64 Bits). Would I have to install SDK for Windows 10 to run the Fluent according to the method mentioned in the above posts? I will be obliged to have any reply. Thank you. |
|
May 25, 2016, 20:02 |
Loading a UDF
|
#65 |
New Member
johnr
Join Date: May 2016
Posts: 10
Rep Power: 10 |
Hi,
I have made a udf ".c" file. now i don't know how to load this file in fluent. It basically takes outlet temp at each time step and regulates x momentum source term from that. I am new to udfs....Help is needed... |
|
May 26, 2016, 03:22 |
|
#66 |
New Member
jyothsna k
Join Date: May 2014
Posts: 18
Rep Power: 12 |
1. copy your .c file to your project's 'Fluent' folder
2. In Fluent, go to Define->User Defined-> Functions->Compiled->Add->(select your file)-> Build 3. if you see any error, rectify it in your .c file , save and compile again(no need to add again. just click 'compile') 4. when you have no errors click on 'Load' 5. hook the udf's and run |
|
May 27, 2016, 10:48 |
|
#67 | |
Senior Member
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17 |
Quote:
I just want to mention that the same setup works just fine for compiling UDFs with Windows 10 64 bit/Fluent 17.0 (even if the Visual Studio version is supposedly for Windows 8). |
||
June 2, 2016, 05:26 |
|
#68 | |
New Member
JP
Join Date: May 2016
Posts: 2
Rep Power: 0 |
Quote:
Pardon my "noobness" but what exactly is/meant by "- Add the path to nmake.exe to the Path environment variable." what do you do exactly? Thank you very much |
||
June 2, 2016, 11:36 |
|
#69 |
Senior Member
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17 |
How to add the path to nmake.exe to the Path environment variable:
- Go to Control Panel => System => Advanced System Properties => Advanced tab and you should get the window shown on the 1st attached picture. - Click on Environment Variables... - Select the Path environment variable and click Edit... (see 2nd attached picture) - In the Edit environment variable window, click New and add the path where nmake.exe is located under the Visual Studio installation. On my computer it's C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin (see 3rd attached picture) That's it |
|
June 2, 2016, 13:22 |
|
#70 | |
New Member
JP
Join Date: May 2016
Posts: 2
Rep Power: 0 |
Quote:
Thank you very much for your help! |
||
December 20, 2016, 07:02 |
|
#71 |
New Member
invincible
Join Date: Dec 2016
Posts: 17
Rep Power: 9 |
i am using MSVB2010 and getting error that is displayed in attached pictures
|
|
January 13, 2017, 10:40 |
#F error
|
#72 |
New Member
invincible
Join Date: Dec 2016
Posts: 17
Rep Power: 9 |
respected mates, there is a problem i am facing with UDF file. Kindly check and pont out what is the main error
this is code i am using for 2D and getting the error that is showed in the attached picture #include "udf.h" DEFINE_CG_MOTION(move,dt,vel,omega,time,dtime) { vel[1] = 0.0942*sin(0.628*time); } DEFINE_CG_MOTION(ball1,dt,vel,omega,time,dtime) { if (time>0 && time<1) vel[1]=0.018*time; else if (time>5 && time<5.1) vel[1]=-0.0005; else if (time>5.1 && time<5.5) vel[1]=-0.035; else vel[1]=-0.00; } DEFINE_CG_MOTION(ball2,dt,vel,omega,time,dtime) { if (time>0 && time<0.4) vel[1]=-0.01; else if (time>0.4 && time<5.5) vel[1]=0.0942*sin(0.628*time); else if (time>5.5 && time<6.17) vel[1]=-0.0028; else vel[1]=0.0942*sin(0.628*time); } |
|
January 13, 2017, 10:54 |
|
#73 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
You are showing the error that you get when you try to load the UDF. But the problem happened when you tried to compile ("build") the UDF. Show the text that is printed after you click 'build'.
|
|
January 13, 2017, 11:03 |
|
#74 |
Senior Member
Kevin
Join Date: Dec 2016
Posts: 138
Rep Power: 9 |
It's saying you don't have a library compiled for your 64-bits OS and 2D solver So compile it and load the library. If it still doesn't work, go through the suggestions in this thread.
|
|
January 13, 2017, 12:22 |
|
#75 |
New Member
invincible
Join Date: Dec 2016
Posts: 17
Rep Power: 9 |
how to compile for that
kindly guide me... do i need to change all coding or some part in that? |
|
January 13, 2017, 12:27 |
|
#76 | |
New Member
invincible
Join Date: Dec 2016
Posts: 17
Rep Power: 9 |
Quote:
need your guidance |
||
January 13, 2017, 12:30 |
|
#77 | |
Member
Join Date: Sep 2016
Posts: 33
Rep Power: 10 |
Quote:
|
||
January 14, 2017, 07:06 |
|
#78 | ||
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Quote:
Quote:
|
|||
January 20, 2017, 13:54 |
|
#79 |
New Member
invincible
Join Date: Dec 2016
Posts: 17
Rep Power: 9 |
||
January 20, 2017, 16:07 |
|
#80 |
Senior Member
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 08:37 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 22:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 05:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |