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

heat source UDF error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 13, 2004, 12:02
Default heat source UDF error
  #1
co2
Guest
 
Posts: n/a
Hi,

I interprete a UDF for heat source in tank walls ( Solid zone) -- The udf reads a file for heat source data.

When I try to select the udf as the heat source term in the solid zone I get the following error -- My simulation is running ok, but I am wondering if the radiation UDF is gettting properly hooked up. Please let me know as soon possible.

Error: GENERAL-CAR-CDR: invalid argument [1]: improper list Error Object: #f

  Reply With Quote

Old   May 14, 2004, 01:19
Default Re: heat source UDF error
  #2
FJ
Guest
 
Posts: n/a
Hi,

Did you do including radiation in a solid region? and is the radiation model discrete ordinates?.

If it is, did you check the check box "Participates in Radiation" in the panel of BC?.

FJ
  Reply With Quote

Old   May 14, 2004, 10:47
Default Re: heat source UDF error
  #3
co2
Guest
 
Posts: n/a
well, i am not using radiation model. the udf only specifies heat source terms that have been calculated outside fluent. They are all constant values changing with time. thus the udf just reads these values from a file and specifies them as heat source terms W/m3

  Reply With Quote

Old   May 17, 2004, 01:06
Default Re: heat source UDF error
  #4
FJ
Guest
 
Posts: n/a
Hi,co2

Is it used only DEFINE_SOURCE?.

FJ
  Reply With Quote

Old   May 17, 2004, 07:16
Default Re: heat source UDF error
  #5
kethireddy
Guest
 
Posts: n/a
hi... check out the udf function once again.If the solver dont have the values eg c_vof etc it may also give error.check whether all the where the variables from ur udf are being catched etc. ok ......... kethireddy
  Reply With Quote

Old   May 17, 2004, 11:20
Default Re: heat source UDF error
  #6
co2
Guest
 
Posts: n/a
my udf is very simple. It is as follows. It is very repetative as I have to write the same code for 2 different zones.

#include "udf.h" /*#include "stdio.h" */

FILE *streamtank; FILE *streamtankslant;

real arrayqvoltank[2929]; real arrayqvoltankslant[2929];

DEFINE_INIT(my_init_func, domain) /* read the data */ {

int i;

real valuetank;

real valuetankslant;

streamtank = fopen( "filetank.txt", "r" );

streamtankslant = fopen( "filetankslant.txt", "r" );

for(i=0;i<2929;i++)

{

fscanf( streamtank, "%f", &valuetank);

fscanf( streamtankslant, "%f", &valuetankslant);

arrayqvoltank[i]=valuetank;

arrayqvoltankslant[i]=valuetankslant;

}

/* thus in the end arrays qvol will have the W/m3 value */

fclose( streamtank );

fclose( streamtankslant ); }

DEFINE_SOURCE(heattank, c, t, dS, eqn) {

real stdtime = RP_Get_Real("flow-time"); /* this data will be obtained from fluent solver */

int hourint;

real qvoltank;

hourint = ((int)stdtime)/3600;

qvoltank = arrayqvoltank[hourint+1];

return qvoltank; }

DEFINE_SOURCE(heattankslant, c, t, dS, eqn) {

real stdtime = RP_Get_Real("flow-time"); /* this data will be obtained from fluent solver */

int hourint;

real qvoltankslant;

hourint = ((int)stdtime)/3600;

qvoltankslant = arrayqvoltankslant[hourint+1];

return qvoltankslant; }

  Reply With Quote

Old   May 17, 2004, 11:21
Default Re: heat source UDF error
  #7
co2
Guest
 
Posts: n/a
thus although my simulation is running fine, does this mean that results can be possibly incorrect if i dont make sure that the error is removed.

- Co2
  Reply With Quote

Old   May 18, 2004, 05:06
Default Re: heat source UDF error
  #8
FJ
Guest
 
Posts: n/a
Hi,

I've tried to reproduce the error with my UDF like yours and I've got it. This error has sometimes occurred by the sequence of solver settings. If a certain sequence is changed, there is no error. Whether this error is occurred or not, both results are the same.

You maybe don't need to take serious this error if the calculation is running fine.

FJ
  Reply With Quote

Old   May 18, 2004, 07:47
Default Re: heat source UDF error
  #9
co2
Guest
 
Posts: n/a
FJ:

Thank you very much. I have also contacted fluent inc. about this error, they have not gotten back with me for almost 5 days now. So this error has to be unusual and unknown to them.

I will let you know once I hear from them.
  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
polynomial thermophysical properties II sebastian OpenFOAM Running, Solving & CFD 54 November 21, 2019 07:12
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 18:44
checking the system setup and Qt version vivek070176 OpenFOAM Installation 22 June 1, 2010 12:34
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." sega OpenFOAM Community Contributions 12 February 17, 2010 09:30
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32


All times are GMT -4. The time now is 07:32.