CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

UDF for a 3D inlet velocity profile with wave motion

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By kailingkk
  • 1 Post By czhao86

Reply
 
LinkBack Thread Tools Display Modes
Old   September 13, 2013, 06:39
Default UDF for a 3D inlet velocity profile with wave motion
  #1
New Member
 
Kai Ling
Join Date: Sep 2013
Posts: 8
Rep Power: 3
kailingkk is on a distinguished road
Hi,

I am a new user of FLUENT. I am required to do a 3D simulation a immersing a box into the sea.

For testing sake, I have came out with a UDF code for a 3d inlet velocity profile with wave motion in the x-direction with a moving object in the water.
For modelling, I built a small box and a big box encasing it, hoping to be able to simulate the dropping of the small box into the waters (2 phase fluid in the big box). The model was a 3D model.

However, I have encountered this error "The UDF library you are trying to load is not compiled for 3D on the current platform (win64). \libudf\win64\3d\libudf.dll"

Could anyone tell me what went wrong? Would really appreciate it!

Thank you
Attached Files
File Type: c testingudf.c (1.3 KB, 110 views)
mjzganji likes this.
kailingkk is offline   Reply With Quote

Old   September 13, 2013, 08:00
Default
  #2
New Member
 
Giuseppe Tescione
Join Date: Sep 2013
Posts: 2
Rep Power: 0
DartPeppe is on a distinguished road
Hello,
this is my first time on this forum,
please, forgive my ignorance and my poor English.
my problem is basically the same as kailingkk
The question that I propose has already been addressed, I read and followed the discussions but have not been able to solve the problem.
I'm trying to perform an application / tutorial "heave and pitch simulation of ship hull moving through head sea waves."
I Use ansys 14.5 on windows 8 with Visual Sudio 2012,
and are also installed Visual C++ 2005 2008 2010 (all x64)
The problem concerns the Compiled UDFs.
In the tutorial I provided the mesh, the source file (six_dof_property.c) and some case and data.
I put everything in a folder ( C:\Users\giuseppe\Desktop\ansys fluent ship motions)
I load fluent and follow the instructions.
3D, double precision and set the working directory:
C:\Users\giuseppe\Desktop\ansys fluent ship motions (the same of .c)
Read mesh
Set the models file (multiphase and viscous)
Define >> user-defined >> function >> compiled
In the source file add the .c file and build the libduf (defoult librery name)
In the same folder of .c is create the folder libduf
But in the Console messages me an error

Copied C:\Users\giuseppe\Desktop\ansys fluent ship motions/C:\Users\giuseppe\Desktop\ansys fluent ship motions\six_dof_property.c to libudf\src
udf_names.c file in 3ddp is upto date.
(system "copy "C:\Program Files\ANSYS Inc\v145\fluent"\fluent14.5.0\src\makefile_nt.udf "libudf\win64\3ddp\makefile" ")
1 file copiati.
(chdir "libudf")()
(chdir "win64\3ddp")()
"nmake" non Š riconosciuto come comando interno o esterno,
un programma eseguibile o un file batch.
(("nmake" Š not recognized as an internal or external command,
operable program or batch file.))
Done.

And if load:

Opening library "C:\Users\giuseppe\Desktop\ansys fluent ship motions\libudf"...
Error: The UDF library you are trying to load (libudf) is not compiled for 3ddp on the current platform (win64).
Impossibile trovare il file specificato. ((Can not find the file specified.))
C:\Users\giuseppe\Desktop\ansys fluent ship motions\libudf\win64\3ddp\libudf.dll
Error Object: #f

Why?
where is the error ?
thank you
DartPeppe is offline   Reply With Quote

Old   September 13, 2013, 10:38
Default
  #3
Member
 
Rexxar
Join Date: May 2012
Location: Bethlehem, PA
Posts: 36
Rep Power: 4
czhao86 is on a distinguished road
Did you try the SDK for compiling UDF?
andrei110726 likes this.
__________________
Best,

Rexxar
czhao86 is offline   Reply With Quote

Old   September 13, 2013, 11:52
Default
  #4
New Member
 
Giuseppe Tescione
Join Date: Sep 2013
Posts: 2
Rep Power: 0
DartPeppe is on a distinguished road
solution found!
I used VS2012 x64 cross tools command prompt for launch Fluent
is now in run calculation and it seems that is going well ... i tell you if there are problems ...
note: the windows software developement kit for windows8 is installed, probably SDK compiling automatically UDF if i start Fluent from VS command prompt...right?
thanks
DartPeppe is offline   Reply With Quote

Old   September 15, 2013, 00:01
Default
  #5
New Member
 
Kai Ling
Join Date: Sep 2013
Posts: 8
Rep Power: 3
kailingkk is on a distinguished road
Hi, I am still very much stuck with my UDF code. Would really appreciate it if anybody could take a look at my attached c file and tell me what went wrong!
kailingkk is offline   Reply With Quote

Old   June 16, 2014, 04:50
Default FLUENT UDF compilaton
  #6
New Member
 
Join Date: Oct 2012
Posts: 4
Rep Power: 4
andrei110726 is on a distinguished road
I am telling you follow these steps and very easy to set up


install MSVC 2010 Express edition

install windows sdk7.1

and load fluent from sdk command prompt by navigating to you file location

and type the casename.cas

it worked for me after spending 4 fucking days......


take care lads
andrei110726 is offline   Reply With Quote

Old   June 25, 2014, 09:52
Default well same problem as you guy
  #7
New Member
 
hannecart
Join Date: Jun 2014
Posts: 16
Rep Power: 2
Isitv2A is on a distinguished road
only two and a half day on it but still no solution ...



i install Visual studio 2010 than 2013 on my computer as well as SDK 7.0 .i run fluent from cmd shell and compiled but still this error :

The UDF library you are trying to load (libudf) is not compiled for 3d on the current platform (win64).
Le fichier spécifié est introuvable.
Isitv2A is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
unsteady inlet velocity udf jill FLUENT 8 February 10, 2015 07:04
(ask) how to create UDF for inlet velocity profile sincity Fluent UDF and Scheme Programming 43 July 9, 2014 13:01
How to make a UDF to have a velocity profile in a square channel Gigis Fluent UDF and Scheme Programming 8 January 13, 2013 23:20
Velocity inlet boundary condition for porous medium Chander CFX 3 March 11, 2012 22:18
UDF paraboloid velocity inlet rosco FLUENT 5 September 1, 2011 02:29


All times are GMT -4. The time now is 15:15.