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

UDF is working in Laptop, but not working in Serial Cluster

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 20, 2013, 21:42
Default UDF is working in Laptop, but not working in Serial Cluster
  #1
Senior Member
 
Tanjina Afrin
Join Date: May 2013
Location: South Carolina
Posts: 169
Rep Power: 12
Tanjina is on a distinguished road
Hello everyone,

I am facing a weird problem. This is the UDF for assign hydrostatic pressure on one face.

#include "udf.h"

DEFINE_PROFILE(pressure_profile,t,i)
{
real x[ND_ND];
real y;
face_t f;
begin_f_loop(f,t)
{
F_CENTROID(x,f,t);
y=x[1];
F_PROFILE(f,t,i)=(0.4898-y)*998.2*9.81;
}
end_f_loop(f,t)
}

It is working properly when I run it on my Laptop. But it's not working on Cluster, even I select serial processor. it gives me the following error.


cpp -I"/opt/ansys_inc/v145/fluent/fluent14.5.0/src" -I"/opt/ansys_inc/v145/fluent/fluent14.5.0/cortex/src" -I"/opt/ansys_inc/v145/fluent/fluent14.5.0/client/src" -I"/opt/ansys_inc/v145/fluent/fluent14.5.0/multiport/src" -I. -DUDFCONFIG_H="<udfconfig.h>" "/home/tafrin/side_inlet_wide_12_8.75_files/dp0/FFF/Fluent/hello.c"
Error: /home/tafrin/side_inlet_wide_12_8.75_files/dp0/FFF/Fluent/hello.c: line 2: syntax error.

For parallel processor, it also gives gives the same error. I can understand that for parallel, it needs some modification, but for serial why it is not working on cluster, I don't understand. I didn't use C language before, so facing difficulties to debug the problem.

Could anyone please help me in this regard?

Thanks in advance.

Regards,
Tanjina

Last edited by Tanjina; December 21, 2013 at 00:43. Reason: adding appropriate word
Tanjina is offline   Reply With Quote

Reply

Tags
cluster, parallel computation, serial, udf


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
problem loading UDF library in parallel cluster Veera Gutti FLUENT 8 July 26, 2016 07:24
Differences between serial and parallel runs carsten OpenFOAM Bugs 11 September 12, 2008 11:16
UDF Working At The Same Time Carlos V. FLUENT 0 March 21, 2006 11:30
compiling my UDF Seyed Farid Hosseinizadeh FLUENT 22 February 14, 2006 10:19
DEFINE_DPM_OUTPUT macro UDF HELP Puneet FLUENT 3 November 28, 2003 10:55


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