|
[Sponsors] |
April 22, 2016, 13:59 |
function "CX_Message0" not found
|
#1 |
Senior Member
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17 |
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.
|
|
April 22, 2016, 17:25 |
|
#2 | |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
Quote:
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(""); |
||
April 22, 2016, 20:21 |
|
#3 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
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? |
|
April 24, 2016, 23:32 |
|
#4 |
Senior Member
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17 |
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.
|
|
|
|
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 |