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

UDF for a 3D inlet velocity profile with wave motion

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By kailingkk
  • 1 Post By czhao86

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2013, 07: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: 13
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, 263 views)
mjzganji and saghi123 like this.
kailingkk is offline   Reply With Quote

Old   September 13, 2013, 09: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, 11:38
Default
  #3
Member
 
Rexxar
Join Date: May 2012
Location: Bethlehem, PA
Posts: 36
Rep Power: 14
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, 12: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, 01:01
Default
  #5
New Member
 
Kai Ling
Join Date: Sep 2013
Posts: 8
Rep Power: 13
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, 05:50
Default FLUENT UDF compilaton
  #6
New Member
 
Join Date: Oct 2012
Posts: 4
Rep Power: 14
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, 10:52
Default well same problem as you guy
  #7
New Member
 
hannecart
Join Date: Jun 2014
Posts: 16
Rep Power: 12
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

Old   August 4, 2017, 15:39
Default six dof property in UDF (ship hull simulation
  #8
New Member
 
Prasanna Ramanathan
Join Date: Nov 2016
Posts: 2
Rep Power: 0
Prasanna Ramanathan is on a distinguished road
hello,

can anyone send me the six_dof_property.c file mentioned in the ship hull tutorial for fluent.

thanks and regards,
Prasanna Ramanathan
Prasanna Ramanathan is offline   Reply With Quote

Old   January 5, 2019, 08:16
Default
  #9
New Member
 
Tough Luck
Join Date: Oct 2016
Posts: 14
Rep Power: 10
nTTs is on a distinguished road
If anyone still has them, can I have the files needed for the heave tutorial please? My email is kinsasa04@gmail.com. Thank you in advance.
nTTs is offline   Reply With Quote

Old   May 26, 2021, 08:33
Default
  #10
New Member
 
Join Date: May 2021
Posts: 1
Rep Power: 0
whkhor3 is on a distinguished road
Hi, Prasanna Ramanathan

Did you receive any reply regarding the six_dof_property.c file?
Mind sharing it?
Thanks

Regards,
whkhor3
whkhor3 is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
(ask) how to create UDF for inlet velocity profile sincity Fluent UDF and Scheme Programming 83 May 16, 2022 14:04
UDF paraboloid velocity inlet rosco FLUENT 10 June 2, 2017 09:01
unsteady inlet velocity udf jill FLUENT 8 February 10, 2015 07:04
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


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