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

Error during interpretation of UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 17, 2018, 00:56
Default Error during interpretation of UDF
  #1
New Member
 
Djphoenix
Join Date: Oct 2018
Posts: 7
Rep Power: 7
Djphx is on a distinguished road
Hi,
I am trying to simulate the Vortex induced vibrations of a cylinder.
Geometry- 2d geometry with a rectangular domain and a circular cylinder wall.
The UDF i am trying to insert:
#include "udf.h"
DEFINE_SDOF_PROPERTIES(sdof_props, prop, dt, time, dtime)
{
real cg;
real k = 1*1.26*1.26;
cg = DT_CG(dt)[1];
prop[SDOF_MASS] = 1;
prop[SDOF_LOAD_F_Y] = -k*cg;
prop[SDOF_ZERO_TRANS_X] = TRUE;
prop[SDOF_ZERO_ROT_X] = TRUE;
prop[SDOF_ZERO_ROT_Y] = TRUE;
}
1. i tried to compile the UDF. The libudf folder was built but is unable to load the file. Error message: libudf.dl file not present.
2. Tried to interpret, error message being displayed: Line 6 structure reference not implemented.
I am new to CFD. I will be thankful for any kind of help.
Thanks
Djphx is offline   Reply With Quote

Old   November 17, 2018, 01:50
Default
  #2
New Member
 
Chen Sihe
Join Date: Sep 2017
Posts: 26
Rep Power: 8
cshsgy is on a distinguished road
Hi Djphx,
I am not quite sure what the problem would be like. But sometimes if you use the ANSYS workbench, the compilation of the udf would be problematic. You may need to write to a standalone case file first and then try to compile... Hope this helps.
cshsgy is offline   Reply With Quote

Old   November 17, 2018, 07:31
Default Tried downloading visual studio
  #3
New Member
 
Djphoenix
Join Date: Oct 2018
Posts: 7
Rep Power: 7
Djphx is on a distinguished road
Fluent is unable to build the necessary files when trying to compile.
Following message being printed in console:

(chdir "libudf")(chdir "win64\2ddp")'nmake' is not recognized as an internal or external command,
operable program or batch file.

Done.


I tried installing the visual studio and running it again (as per the tutorials) but still the problem persists. I am using standalone fluent for the above.

Please help.
Thanks in advance.
Djphx is offline   Reply With Quote

Old   November 17, 2018, 19:24
Default
  #4
New Member
 
Chen Sihe
Join Date: Sep 2017
Posts: 26
Rep Power: 8
cshsgy is on a distinguished road
Hi Djphx,
I think the installation might not be proper.
This website provides some information.
https://www.cfd-online.com/Wiki/Flue...at_is_wrong.3F
cshsgy is offline   Reply With Quote

Old   November 19, 2018, 23:27
Default
  #5
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Quote:
Originally Posted by Djphx View Post
Fluent is unable to build the necessary files when trying to compile.
Following message being printed in console:

(chdir "libudf")(chdir "win64\2ddp")'nmake' is not recognized as an internal or external command,
operable program or batch file.

Done.


I tried installing the visual studio and running it again (as per the tutorials) but still the problem persists. I am using standalone fluent for the above.

Please help.
Thanks in advance.
Compile Fluent UDF with Windows 10

best regards
AlexanderZ 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
UDF: How to load data from an external file into a vector EmiS Fluent UDF and Scheme Programming 17 January 14, 2019 01:55
Help with unsteady calculation with source/sink UDF RobV Fluent UDF and Scheme Programming 3 March 10, 2016 03:45
udf interpretation successful but does't work haoxin Fluent UDF and Scheme Programming 2 September 24, 2013 07:25
Source Term UDF VS Porous Media Model pchoopanya Fluent UDF and Scheme Programming 1 August 28, 2013 06:12
UDF programming fullmonty FLUENT 5 June 30, 2011 02:40


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