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

function "CX_Message0" not found

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 22, 2016, 13:59
Default function "CX_Message0" not found
  #1
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
macfly is on a distinguished road
Hi, I'm trying to display only one message with Message0 but I always get the following error message: function "CX_Message0" not found. I get the same error whether I interpret or compile the udf.
macfly is offline   Reply With Quote

Old   April 22, 2016, 17:25
Default
  #2
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13
Bruno Machado is on a distinguished road
Quote:
Originally Posted by macfly View Post
Hi, I'm trying to display only one message with Message0 but I always get the following error message: function "CX_Message0" not found. I get the same error whether I interpret or compile the udf.
Never came across this Message0 macro. what it does?

if you want to print the message only 1 message, you can add a if condition that matches your cell condition like the one above

if ((c%10000)==0)
Message("");
Bruno Machado is offline   Reply With Quote

Old   April 22, 2016, 20:21
Default
  #3
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
Message0 is a modification of Message which only executes on compute node-0 (and also runs in serial). For printing a message only once per compute node, you could use a flag which switches off after the first message is printed (see a similar example here).

What is your full source code of the user-defined function?
`e` is offline   Reply With Quote

Old   April 24, 2016, 23:32
Default
  #4
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
macfly is on a distinguished road
Thanks for the suggestions e and Bruno. My udf is very simple. In the end restarting Fluent did the trick, Message0 works, I don't know what was wrong before.
macfly 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
[Other] How to create an MRF zone ? aminem OpenFOAM Meshing & Mesh Conversion 2 December 8, 2014 11:45
8x icoFoam speed up with Cufflink CUDA solver library kmooney OpenFOAM Running, Solving & CFD 42 November 6, 2012 12:37
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 10:31
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00


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