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

THREAD_STORAGE always == NULL

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By RoM

Reply
 
LinkBack Thread Tools Display Modes
Old   February 7, 2006, 12:47
Default THREAD_STORAGE always == NULL
  #1
Luca
Guest
 
Posts: n/a
Hi all,

I have a udf wherein I impose a mass fraction gradient. Since at the first step the gradient is not defined, I placed a control like this:

if (NULL != THREAD_STORAGE(t,SV_Y_0_G))

dYfdy = C_YI_G(c,t,0)[1];

else

dYfdy = -0.1;

My problem is that THREAD_STORAGE(t,SV_Y_0_G) is ALWAYS equal to zero at every step (not only the first). And if I change my grid it seems to work.

Does anyone have idea why I have this problem?

Thanks guys, keep up the good work.

Luca

  Reply With Quote

Old   February 8, 2006, 02:24
Default Re: THREAD_STORAGE always == NULL
  #2
RoM
Guest
 
Posts: n/a
Try the following TUI commands

//define/models/species/save-gradients? : yes

and

//set/solver/expert "Keep temporary solver memory from beeing freed?" : yes

This should force the fluent solver to store the gradients you want.

RoM
Geng Fu likes this.
  Reply With Quote

Old   February 14, 2006, 14:35
Default Re: THREAD_STORAGE always == NULL
  #3
Luca
Guest
 
Posts: n/a
Thanks a lot RoM, I soved my problem. Could you please tell me the commands to store the thermal gradients also?

Where can I find a list of TUI commands?

Thank you!

Luca
  Reply With Quote

Old   February 15, 2006, 02:53
Default Re: THREAD_STORAGE always == NULL
  #4
rom
Guest
 
Posts: n/a
The //set/solver/expert "Keep temporary solver memory from beeing freed?" should take care of all available gradients including energy. I dont know why there is an extra command for the species gradients.

RoM
  Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluent- Error: Null Domain Pointer Mary FLUENT 9 June 12, 2014 14:37
momentum source in half-cylindrical null objects Noel Phoenics 1 December 16, 2008 06:51
null pointer error Virag FLUENT 0 March 3, 2007 03:12
FSI: null element in coupled-physics yus Main CFD Forum 0 January 11, 2005 09:09
IPALL giving NULL values cfd guy CFX 0 November 29, 2001 11:51


All times are GMT -4. The time now is 14:36.