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

UDF value to large for defined data type

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By HAshemi.9637

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 3, 2013, 13:27
Default UDF value to large for defined data type
  #1
New Member
 
anna
Join Date: Jun 2013
Posts: 1
Rep Power: 0
Anna73 is on a distinguished road
Hi everyone,

I'm new to Fleunt and this is my first time interpreting a UDF. When using the Interpreted UDFs dialogue in Fluent version 14.5 I get the following error:
cpp -I "/usr/css/apps/ansys_inc/v145/fluent/Fleunt14.5.0/src" ...
: Value too large for defined data type
cpp: netudf.c: Value too large for defined data type
Error: "netudf.c": line 1: syntax error.

Anyone know what this means? My UDF, netudf.c, is below:

# include "udf.h"
DEFINE_PROFILE(ICA,thread,position)
{
face_t f;
real t = CURRENT_TIME;
begin_f_loop(f,thread)
{
F_PROFILE(f,thread,position)=(1/11.716310)*(4.600000/3.8909)*(3.8909-(0.0725*cos(2*3.14*(0.9-t)/0.9))-(0.1920*cos(2*2*3.14*(0.9-t)/0.9))-(0.4004*cos(2*3*3.14*(0.9-t)/0.9))-(0.2157*cos(2*4*3.14*(0.9-t)/0.9))-(0.2692*cos(2*5*3.14*(0.9-t)/0.9))-(0.0699*cos(2*6*3.14*(0.9-t)/0.9))+(0.0607*cos(2*7*3.14*(0.9-t)/0.9))+(0.0140*cos(2*8*3.14*(0.9-t)/0.9))+(0.0409*cos(2*9*3.14*(0.9-t)/0.9))-(0.0015*cos(2*10*3.14*(0.9-t)/0.9))-(0.0193*cos(2*11*3.14*(0.9-t)/0.9))-(0.0312*cos(2*12*3.14*(0.9-t)/0.9))-(0.0571*cos(2*13*3.14*(0.9-t)/0.9))-(0.0205*cos(2*14*3.14*(0.9-t)/0.9))-(0.0070*cos(2*15*3.14*(0.9-t)/0.9))-(0.9802*sin(2*3.14*(0.9-t)/0.9))-(0.5866*sin(2*2*3.14*(0.9-t)/0.9))-(0.2279*sin(2*3*3.14*(0.9-t)/0.9))-(0.0648*sin(2*4*3.14*(0.9-t)/0.9))+(0.0212*sin(2*5*3.14*(0.9-t)/0.9))+(0.2039*sin(2*6*3.14*(0.9-t)/0.9))+(0.0433*sin(2*7*3.14*(0.9-t)/0.9))+(0.0093*sin(2*8*3.14*(0.9-t)/0.9))-(0.0109*sin(2*9*3.14*(0.9-t)/0.9))-(0.0527*sin(2*10*3.14*(0.9-t)/0.9))-(0.0299*sin(2*11*3.14*(0.9-t)/0.9))-(0.0355*sin(2*12*3.14*(0.9-t)/0.9))-(0.0001*sin(2*13*3.14*(0.9-t)/0.9))+(0.0283*sin(2*14*3.14*(0.9-t)/0.9))+(0.0127*sin(2*15*3.14*(0.9-t)/0.9)));
}
end_f_loop(f,thread)
}

Thanks for the help,
Anna
Anna73 is offline   Reply With Quote

Old   September 5, 2013, 05:10
Default
  #2
New Member
 
Pasquale Natale
Join Date: Feb 2012
Posts: 6
Rep Power: 14
xmaspako is on a distinguished road
Quote:
Originally Posted by Anna73 View Post
Hi everyone,

I'm new to Fleunt and this is my first time interpreting a UDF. When using the Interpreted UDFs dialogue in Fluent version 14.5 I get the following error:
cpp -I "/usr/css/apps/ansys_inc/v145/fluent/Fleunt14.5.0/src" ...
: Value too large for defined data type
cpp: netudf.c: Value too large for defined data type
Error: "netudf.c": line 1: syntax error.

Anyone know what this means? My UDF, netudf.c, is below:

# include "udf.h"
DEFINE_PROFILE(ICA,thread,position)
{
face_t f;
real t = CURRENT_TIME;
begin_f_loop(f,thread)
{
F_PROFILE(f,thread,position)=(1/11.716310)*(4.600000/3.8909)*(3.8909-(0.0725*cos(2*3.14*(0.9-t)/0.9))-(0.1920*cos(2*2*3.14*(0.9-t)/0.9))-(0.4004*cos(2*3*3.14*(0.9-t)/0.9))-(0.2157*cos(2*4*3.14*(0.9-t)/0.9))-(0.2692*cos(2*5*3.14*(0.9-t)/0.9))-(0.0699*cos(2*6*3.14*(0.9-t)/0.9))+(0.0607*cos(2*7*3.14*(0.9-t)/0.9))+(0.0140*cos(2*8*3.14*(0.9-t)/0.9))+(0.0409*cos(2*9*3.14*(0.9-t)/0.9))-(0.0015*cos(2*10*3.14*(0.9-t)/0.9))-(0.0193*cos(2*11*3.14*(0.9-t)/0.9))-(0.0312*cos(2*12*3.14*(0.9-t)/0.9))-(0.0571*cos(2*13*3.14*(0.9-t)/0.9))-(0.0205*cos(2*14*3.14*(0.9-t)/0.9))-(0.0070*cos(2*15*3.14*(0.9-t)/0.9))-(0.9802*sin(2*3.14*(0.9-t)/0.9))-(0.5866*sin(2*2*3.14*(0.9-t)/0.9))-(0.2279*sin(2*3*3.14*(0.9-t)/0.9))-(0.0648*sin(2*4*3.14*(0.9-t)/0.9))+(0.0212*sin(2*5*3.14*(0.9-t)/0.9))+(0.2039*sin(2*6*3.14*(0.9-t)/0.9))+(0.0433*sin(2*7*3.14*(0.9-t)/0.9))+(0.0093*sin(2*8*3.14*(0.9-t)/0.9))-(0.0109*sin(2*9*3.14*(0.9-t)/0.9))-(0.0527*sin(2*10*3.14*(0.9-t)/0.9))-(0.0299*sin(2*11*3.14*(0.9-t)/0.9))-(0.0355*sin(2*12*3.14*(0.9-t)/0.9))-(0.0001*sin(2*13*3.14*(0.9-t)/0.9))+(0.0283*sin(2*14*3.14*(0.9-t)/0.9))+(0.0127*sin(2*15*3.14*(0.9-t)/0.9)));
}
end_f_loop(f,thread)
}

Thanks for the help,
Anna
Maybe have you edited .c file by windows and are you running on linux platform?
I have had the same problem and I've solved it by using of dos2unix command.
The problem, sometimes, is due to LF and CR special characters misunderstanding between the two O.S. and dos2unix helps to fix it.
xmaspako is offline   Reply With Quote

Old   October 28, 2013, 08:33
Default
  #3
New Member
 
Pasquale Natale
Join Date: Feb 2012
Posts: 6
Rep Power: 14
xmaspako is on a distinguished road
Quote:
Originally Posted by Anna73 View Post
Hi everyone,

I'm new to Fleunt and this is my first time interpreting a UDF. When using the Interpreted UDFs dialogue in Fluent version 14.5 I get the following error:
cpp -I "/usr/css/apps/ansys_inc/v145/fluent/Fleunt14.5.0/src" ...
: Value too large for defined data type
cpp: netudf.c: Value too large for defined data type
Error: "netudf.c": line 1: syntax error.

Anyone know what this means? My UDF, netudf.c, is below:

# include "udf.h"
DEFINE_PROFILE(ICA,thread,position)
{
face_t f;
real t = CURRENT_TIME;
begin_f_loop(f,thread)
{
F_PROFILE(f,thread,position)=(1/11.716310)*(4.600000/3.8909)*(3.8909-(0.0725*cos(2*3.14*(0.9-t)/0.9))-(0.1920*cos(2*2*3.14*(0.9-t)/0.9))-(0.4004*cos(2*3*3.14*(0.9-t)/0.9))-(0.2157*cos(2*4*3.14*(0.9-t)/0.9))-(0.2692*cos(2*5*3.14*(0.9-t)/0.9))-(0.0699*cos(2*6*3.14*(0.9-t)/0.9))+(0.0607*cos(2*7*3.14*(0.9-t)/0.9))+(0.0140*cos(2*8*3.14*(0.9-t)/0.9))+(0.0409*cos(2*9*3.14*(0.9-t)/0.9))-(0.0015*cos(2*10*3.14*(0.9-t)/0.9))-(0.0193*cos(2*11*3.14*(0.9-t)/0.9))-(0.0312*cos(2*12*3.14*(0.9-t)/0.9))-(0.0571*cos(2*13*3.14*(0.9-t)/0.9))-(0.0205*cos(2*14*3.14*(0.9-t)/0.9))-(0.0070*cos(2*15*3.14*(0.9-t)/0.9))-(0.9802*sin(2*3.14*(0.9-t)/0.9))-(0.5866*sin(2*2*3.14*(0.9-t)/0.9))-(0.2279*sin(2*3*3.14*(0.9-t)/0.9))-(0.0648*sin(2*4*3.14*(0.9-t)/0.9))+(0.0212*sin(2*5*3.14*(0.9-t)/0.9))+(0.2039*sin(2*6*3.14*(0.9-t)/0.9))+(0.0433*sin(2*7*3.14*(0.9-t)/0.9))+(0.0093*sin(2*8*3.14*(0.9-t)/0.9))-(0.0109*sin(2*9*3.14*(0.9-t)/0.9))-(0.0527*sin(2*10*3.14*(0.9-t)/0.9))-(0.0299*sin(2*11*3.14*(0.9-t)/0.9))-(0.0355*sin(2*12*3.14*(0.9-t)/0.9))-(0.0001*sin(2*13*3.14*(0.9-t)/0.9))+(0.0283*sin(2*14*3.14*(0.9-t)/0.9))+(0.0127*sin(2*15*3.14*(0.9-t)/0.9)));
}
end_f_loop(f,thread)
}

Thanks for the help,
Anna
Have you solved this issue? In some cases... it does not work for me.
xmaspako is offline   Reply With Quote

Old   August 27, 2014, 12:23
Default
  #4
New Member
 
Jens
Join Date: Aug 2014
Posts: 1
Rep Power: 0
J.Leypoldt is on a distinguished road
Dear Anna,

I have encountered the same error on our system. I also tried to use dos2unix to resolve it, but it didn't work. So far, I suspect that it is related to
a) the mounting of the file system that holds my working directory, or
b) the C-preprocessor version used by Fluent.

In my case, the file system is a non-unix (Windows), mounted using cifs-mount package.

Working with Fluent 15 on some older SuSE 11 system, the error does not occur. On our newer Linux OS (SuSE Enterprise ...) the mount options are slightly different (due to the newer cifs package) and the error occurs. So I am convinced at least it has nothing to do with the source code of your UDF.

If you have resolved the problem in the meantime, please let me know. Hopefully it will work here, too.

Many thanks for a brief reply.
Jens.
J.Leypoldt is offline   Reply With Quote

Old   November 18, 2015, 15:24
Default
  #5
New Member
 
Join Date: Nov 2015
Posts: 4
Rep Power: 10
silvi is on a distinguished road
Quote:
Originally Posted by J.Leypoldt View Post
Dear Anna,

I have encountered the same error on our system. I also tried to use dos2unix to resolve it, but it didn't work. So far, I suspect that it is related to
a) the mounting of the file system that holds my working directory, or
b) the C-preprocessor version used by Fluent.

In my case, the file system is a non-unix (Windows), mounted using cifs-mount package.

Working with Fluent 15 on some older SuSE 11 system, the error does not occur. On our newer Linux OS (SuSE Enterprise ...) the mount options are slightly different (due to the newer cifs package) and the error occurs. So I am convinced at least it has nothing to do with the source code of your UDF.

If you have resolved the problem in the meantime, please let me know. Hopefully it will work here, too.

Many thanks for a brief reply.
Jens.
I have the same problem and I don't know what to do
silvi is offline   Reply With Quote

Old   November 18, 2015, 15:38
Default
  #6
New Member
 
Join Date: Nov 2015
Posts: 4
Rep Power: 10
silvi is on a distinguished road
Quote:
Originally Posted by xmaspako View Post
Have you solved this issue? In some cases... it does not work for me.
Did you solve your problem?
silvi is offline   Reply With Quote

Old   April 10, 2017, 03:36
Default Hello, did anyone find a way to solve this problem?
  #7
New Member
 
Join Date: May 2016
Posts: 11
Rep Power: 9
BlueCat is on a distinguished road
Quote:
Originally Posted by J.Leypoldt View Post
Dear Anna,

I have encountered the same error on our system. I also tried to use dos2unix to resolve it, but it didn't work. So far, I suspect that it is related to
a) the mounting of the file system that holds my working directory, or
b) the C-preprocessor version used by Fluent.

In my case, the file system is a non-unix (Windows), mounted using cifs-mount package.

Working with Fluent 15 on some older SuSE 11 system, the error does not occur. On our newer Linux OS (SuSE Enterprise ...) the mount options are slightly different (due to the newer cifs package) and the error occurs. So I am convinced at least it has nothing to do with the source code of your UDF.

If you have resolved the problem in the meantime, please let me know. Hopefully it will work here, too.

Many thanks for a brief reply.
Jens.
Hello, did anyone find a way to solve this problem?
BlueCat is offline   Reply With Quote

Old   November 9, 2017, 16:59
Default Possible workaround
  #8
New Member
 
Bharat R Agrawal
Join Date: Sep 2012
Posts: 2
Rep Power: 0
bharatr is on a distinguished road
Try these cases: 1) run the case in a directory that has the shortest possible path length, least depth in directory recursion and least possible number of non-alphanumeric characters in the path. 2) use the same cpp file that compiles the UDF file outside of Fluent but with the full command that Fluent uses, you may have to copy and modify a bunch of things.
bharatr is offline   Reply With Quote

Old   December 12, 2017, 14:23
Default
  #9
New Member
 
Thessaloniki
Join Date: Dec 2017
Posts: 1
Rep Power: 0
AgisM is on a distinguished road
Hello!

I have exactly the same problem with the error below .
Basically i am trying to start a computation via a journal file ,in which i try to interpret a udf. In windows i have no problem with execution but in cluster i get the error below . Is there anyone with a solution?

1. Dos2unix didn't help
2. #define _LARGEFILE_SOURCE 1
#define _LARGEFILE64_SOURCE 1
#define _FILE_OFFSET_BITS 64
#define FILESIZE ((int64_t)NUMINTS * sizeof(int))
didn't help either.

Code:
cpp -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/main" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/addon-wrapper" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/io" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/species" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/pbns" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/numerics" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/sphysics" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/storage" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/mphase" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/bc" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/models" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/material" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/amg" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/util" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/mesh" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/udf" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/ht" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/dx" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/turbulence" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/parallel" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/etc" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/ue" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/dpm" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/dbns" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/tgrid/src" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/cortex/src" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/client/src" -I"/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/multiport/src" -I. -DUDFCONFIG_H="<udfconfig-host.h>" "1L_complete_UDF.c"
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/main/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/addon-wrapper/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/io/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/species/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/pbns/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/numerics/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/sphysics/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/storage/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/mphase/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/bc/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/models/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/material/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/amg/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/util/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/mesh/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/udf/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/ht/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/dx/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/turbulence/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/parallel/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/etc/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/ue/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/dpm/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/src/dbns/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/tgrid/src/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/cortex/src/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/client/src/.: Value too large for defined data type
/opt/exp_soft/ansys_inc/v180/fluent/fluent18.0.0/multiport/src/.: Value too large for defined data type
: Value too large for defined data type
cpp: 1L_complete_UDF.c: Value too large for defined data type
Error: "1L_complete_UDF.c": line 1: syntax error.
Thanks in advance!!
AgisM is offline   Reply With Quote

Old   September 30, 2018, 22:18
Default Value too large for defined data type
  #10
New Member
 
Javad Hashemi
Join Date: Jun 2017
Posts: 1
Rep Power: 0
HAshemi.9637 is on a distinguished road
The cpp that distributed with FLUENT is 32bit.
The error shown is typically associated to problems accessing specific directories in the fluent installation.
It is a random failure, based on where Fluent is installed.

You can solve this if you use /usr/bin/cpp instead of the cpp provided with installation, by setting the full path to cpp in GUI or TUI command.
bestucan likes this.
HAshemi.9637 is offline   Reply With Quote

Reply

Tags
defined data type, large value, 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
ERCOFTAC Centrifugal Pump with kOmegaSST Model marcelgt87 OpenFOAM Running, Solving & CFD 4 March 13, 2013 10:49
[swak4Foam] Air Conditioned room groovyBC Sebaj OpenFOAM Community Contributions 7 October 31, 2012 14:16
Instable natural convection case Peter88 OpenFOAM 5 August 18, 2011 01:23
turbulent jet simulation antonio_ing OpenFOAM Running, Solving & CFD 5 September 16, 2010 02:31
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15


All times are GMT -4. The time now is 22:50.