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

Problem running fluent with udf on supercomputer(batch system)

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By Sept24

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 5, 2012, 16:04
Default Problem running fluent with udf on supercomputer(batch system)
  #1
New Member
 
Join Date: Nov 2012
Posts: 2
Rep Power: 0
Sept24 is on a distinguished road
Hi All,
My udf interpreted well and my simulation runs smoothly on my PC. However, when I try to run the same thing on supercomputer (batch system), it doesn’t work. Is it correct that to run on batch, I set up my problem as usual, interpreted and hooked the udf, initialize and save project (one step less if I want to run on my PC, where after initialization, click run calculation>calculate). Here is my inputfile (connected with PBS submission file at the line: fluent 3d -g -t 4 -i < FlowTestInput.txt > Solution.out)

FlowTestInput.txt :
/define/user-defined/interpreted-functions “UDFSource.c” “cpp” 10000 no
/file/read-case FlowTest.cas.gz
/solve/initialize/initialize-flow
/solve/set/time-step 2
/solve/dual-time-iterate 100 1000
/file/write-data FlowTest.dat.gz
exit
yes

Here are the errors that appeared (cut and paste from .o and .out file)

Error: chip-exec: function "source_C" not found.

Error: UDFSourceTerm.c: line 4: syntax error.
cpp: output pipe has been closed

Error: File E:AC20UDFSourceTerm.c doesn't exist!
Error Object: #f

Primitive Error at Node 2: received Segmentation Violation
Primitive Error at Node 3: received Segmentation Violation
Primitive Error at Node 0: received Segmentation Violation
Primitive Error at Node 1: received Segmentation Violation

Error: Compute node encountered error
Error Object: #f
Primitive Error at Node 2: Update_Time_Level: invalid data
Primitive Error at Node 1: Update_Time_Level: invalid data
Primitive Error at Node 3: Update_Time_Level: invalid data
Primitive Error at Node 0: Update_Time_Level: invalid data
Error: Compute node encountered error
Error Object: #f
Primitive Error at Node 1: Write_Data_Section: uninitialized flow field
Primitive Error at Node 3: Write_Data_Section: uninitialized flow field
Primitive Error at Node 0: Write_Data_Section: uninitialized flow field
Primitive Error at Node 2: Write_Data_Section: uninitialized flow field
56.4%
Error: Compute node encountered error
Error Object: #f
Error: Error writing "| gzip -2cfv > AC20.dat.gz".
Error Object: #f

Please tell me what are the extra steps that should be taken care of when submitting job to batch system involving UDF? Also, please advise me on what causing the errors.
Note: Processing options: serial

Thank you in advance.
Sept24 is offline   Reply With Quote

Old   November 6, 2012, 20:16
Default
  #2
New Member
 
Join Date: Nov 2012
Posts: 2
Rep Power: 0
Sept24 is on a distinguished road
With some helps from my friends, problem solved! The problem occurred because my file was originally created on windows PC whereas the supercomputer system use unix machine. To avoid all the errors, transfer/upload all necessary files to the supercomputer system as usual, but before submitting the job, convert the udf file from dos to unix. To do that, on the unix command line on the supercomputer system type (let say the udf file name is UDFSource.c)

dos2unix UDFSource.c

Good luck everyone
rasoulb, Tarantino and Mbakli like this.
Sept24 is offline   Reply With Quote

Old   May 16, 2013, 14:14
Default
  #3
Senior Member
 
Astio Lamar
Join Date: May 2012
Location: Pipe
Posts: 186
Rep Power: 14
asal is on a distinguished road
Hello.

I try the same command
dos2unix UDFSource.c

But I got this error:
bash: dos2unix: command not found
what should I do?
asal is offline   Reply With Quote

Old   October 15, 2015, 13:50
Default I have the same problem
  #4
Member
 
Rui
Join Date: Apr 2015
Location: Montreal. CA
Posts: 49
Rep Power: 11
roi247 is on a distinguished road
Quote:
Originally Posted by asal View Post
Hello.

I try the same command
dos2unix UDFSource.c

But I got this error:
bash: dos2unix: command not found
what should I do?
First trial: I couldn't use ""sign in the file
second trial: dos2unix command couldnt be found
third trial: I couldn't write dos2unix directly on the super computer
roi247 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
problem with UDF for (v2-f) turbulence model in fluent artemiss1984 Fluent UDF and Scheme Programming 6 January 17, 2014 06:50
Running fluent with udf in batch mode zonexo Fluent UDF and Scheme Programming 2 March 10, 2012 08:50
Problem running fluent with InfiniBand blackpuma FLUENT 10 August 28, 2011 02:16
Problem in running fluent 6.3 (64 bit) on ubuntu 8.1 (64 bit) Mir5 FLUENT 3 April 29, 2009 11:32
UDF problem caused by various version of Fluent Yurong FLUENT 3 January 15, 2006 11:57


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