|
[Sponsors] |
February 21, 2017, 07:39 |
compiled code for sinusoidal velocity
|
#1 |
New Member
AMEET KUMAR
Join Date: Feb 2017
Posts: 14
Rep Power: 9 |
Please can someone help me to write a UDF for compiled for fluid inlet velocity in recipricating pump which is rotating at 1450 rpm and total displacement of piston is 20 mm.
Diameter of piston is 14 mm. when I used #include "udf.h" DEFINE_PROFILE(unsteady_velocity, thread, position) { face_t f; real t = CURRENT_TIME; begin_f_loop(f, thread) { F_PROFILE(f, thread, position) =2.61*sin(152*t); } end_f_loop(f, thread) and compiled it then an error is found "the system cannot find the file specified" |
|
February 21, 2017, 09:43 |
|
#2 |
Senior Member
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25 |
You are missing a closing } on the DEFINE_PROFILE.
|
|
February 22, 2017, 00:53 |
|
#3 |
New Member
AMEET KUMAR
Join Date: Feb 2017
Posts: 14
Rep Power: 9 |
thank you for reply but the problem is Not resolved
|
|
February 24, 2017, 09:29 |
|
#4 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
I think there if more info showing on your screen that you don't show.
Give more info on the error. (At least the line above it and the line below it.) |
|
February 27, 2017, 00:27 |
|
#5 |
New Member
AMEET KUMAR
Join Date: Feb 2017
Posts: 14
Rep Power: 9 |
The UDF library you are trying to load (C:\Users\Ameet Kumar Singh\Desktop\final\final pump_files\dp0\FFF\Fluent\libudf) is not compiled for 3d on the current platform (win64).
The system cannot find the file specified. C:\Users\Ameet Kumar Singh\Desktop\final\final pump_files\dp0\FFF\Fluent\C:\Users\Ameet Kumar Singh\Desktop\final\final pump_files\dp0\FFF\Fluent\libudf\win64\3d\libudf.d ll This message is showing When I load the compiled udf |
|
February 27, 2017, 07:32 |
|
#6 | |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Take a look at the error:
Quote:
The problem occured earlier: when you tried to compile (build) the UDF. The problem could be that you have spaces in your folder, Fluent has problems with this. Move it to a place without spaces. If this does not solve it, show the error that you get when you compile. |
||
March 3, 2017, 06:53 |
|
#7 |
New Member
AMEET KUMAR
Join Date: Feb 2017
Posts: 14
Rep Power: 9 |
Same error
The UDF library you are trying to load (D:\final\final_files\dp0\FFF\Fluent\libudf) is not compiled for 3d on the current platform (win64). The system cannot find the file specified. D:\final\final_files\dp0\FFF\Fluent\D:\final\final _files\dp0\FFF\Fluent\libudf\win64\3d\libudf.dll |
|
March 3, 2017, 06:55 |
|
#8 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
"If this does not solve it, show the error that you get when you compile."
|
|
March 3, 2017, 10:03 |
|
#9 |
Senior Member
Kevin
Join Date: Dec 2016
Posts: 138
Rep Power: 10 |
I've read about these errors quite frequently. Have you had a look in the following thread:
UDF - Error loading libudf There's even some extra documentation in the form of a .pdf-file in there that could help. Did you compile the code yourself? You have to make sure the compiled library matches your 3D solver and 64-bits OS. |
|
March 5, 2017, 09:32 |
|
#10 |
New Member
AMEET KUMAR
Join Date: Feb 2017
Posts: 14
Rep Power: 9 |
I used
#include "udf.h" DEFINE_PROFILE(unsteady_velocity, thread, position) { face_t f; real t = CURRENT_TIME; begin_f_loop(f, thread) { F_PROFILE(f, thread, position) =2.61*sin(152*t); } end_f_loop(f, thread) and error showing is The UDF library you are trying to load (D:\final\final_files\dp0\FFF\Fluent\libudf) is not compiled for 3d on the current platform (win64). The system cannot find the file specified. D:\final\final_files\dp0\FFF\Fluent\D:\final\final _files\dp0\FFF\Fluent\libudf\win64\3d\libudf.dll |
|
March 6, 2017, 04:12 |
|
#11 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
You are still showing the error that you get when you click 'load'. The error is even saying that: "The UDF library you are trying to load ..."
At the moment you click 'build', some text is shown in the text user interface in Fluent. What is that text? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
unable to get parabolic velocity profile with pimplefoam | houkensjtu | OpenFOAM | 4 | October 8, 2012 05:41 |
Velocity profile disturbance due to loss coefficient | rks171 | Main CFD Forum | 3 | May 25, 2012 18:30 |
Variables Definition in CFX Solver 5.6 | R P | CFX | 2 | October 26, 2004 03:13 |
Design Integration with CFD? | John C. Chien | Main CFD Forum | 19 | May 17, 2001 16:56 |
What is the Better Way to Do CFD? | John C. Chien | Main CFD Forum | 54 | April 23, 2001 09:10 |