|
[Sponsors] |
May 13, 2004, 13:02 |
heat source UDF error
|
#1 |
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 |
|
May 14, 2004, 02:19 |
Re: heat source UDF error
|
#2 |
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 |
|
May 14, 2004, 11:47 |
Re: heat source UDF error
|
#3 |
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
|
|
May 17, 2004, 02:06 |
Re: heat source UDF error
|
#4 |
Guest
Posts: n/a
|
Hi,co2
Is it used only DEFINE_SOURCE?. FJ |
|
May 17, 2004, 08:16 |
Re: heat source UDF error
|
#5 |
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
|
|
May 17, 2004, 12:20 |
Re: heat source UDF error
|
#6 |
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; } |
|
May 17, 2004, 12:21 |
Re: heat source UDF error
|
#7 |
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 |
|
May 18, 2004, 06:06 |
Re: heat source UDF error
|
#8 |
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 |
|
May 18, 2004, 08:47 |
Re: heat source UDF error
|
#9 |
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
polynomial thermophysical properties II | sebastian | OpenFOAM Running, Solving & CFD | 54 | November 21, 2019 08:12 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 19:44 |
checking the system setup and Qt version | vivek070176 | OpenFOAM Installation | 22 | June 1, 2010 13:34 |
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." | sega | OpenFOAM Community Contributions | 12 | February 17, 2010 10:30 |
Installation OF1.5-dev | ttdtud | OpenFOAM Installation | 46 | May 5, 2009 03:32 |