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

Problems hooking up UDS_FLUX

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 17, 2006, 15:33
Default Problems hooking up UDS_FLUX
  #1
CFDTOY
Guest
 
Posts: n/a
Hello all:

I wrote a simple UDS modification for testing and implementation in Fluent as follows

DEFINE_UDS_FLUX(myflux,f,t,i) {

real rhoc;

rhoc = RHOL/RHOL;

return F_FLUX(f,t,)/rhoc; }

When I interpreted the code it went ok. When I initialized the fluent domain, segmentation problem occurred. It did not happen if my UDS_Flux was not interpreted in the UDS model.

Please advise.

CFDtoy
  Reply With Quote

Old   July 18, 2006, 05:59
Default Re: Problems hooking up UDS_FLUX
  #2
RoM
Guest
 
Posts: n/a
There is nothing wrong with your udf, assuming that RHOL holds a valid value. How is RHOL calculated? Did you hook the flux udf in the right panel (define->user-defined->scalars->flux function)?
  Reply With Quote

Old   July 18, 2006, 09:14
Default Re: Problems hooking up UDS_FLUX
  #3
CFDToy
Guest
 
Posts: n/a
RHOL is a constant and is being initialized globally. I am still clueless..

CFDtoy
  Reply With Quote

Old   July 18, 2006, 09:15
Default Re: Problems hooking up UDS_FLUX
  #4
CFDToy
Guest
 
Posts: n/a
Sorry, btw, rhoc = RHOG/RHOL some ratio of densities etc.

CFDtoy
  Reply With Quote

Old   July 19, 2006, 00:22
Default Re: Problems hooking up UDS_FLUX
  #5
rom
Guest
 
Posts: n/a
This is the ufd i used for testing without any problems. This function is not called during initialization, so the cause of your problem is probably somewhere else.


#include <udf.h>

DEFINE_UDS_FLUX(myflux,f,t,i)
{
real rhoc;
rhoc = 1.;
return F_FLUX(f,t)/rhoc;
}

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
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 0 August 5, 2011 16:02
Needed Benchmark Problems for FSI Mechstud Main CFD Forum 4 July 26, 2011 12:13
Problems with hooking UDF whelk123 Fluent UDF and Scheme Programming 1 August 30, 2010 07:39
Some problems with Star CD Micha CD-adapco 0 August 6, 2003 13:55
unstructured grid sreekanth Main CFD Forum 1 August 6, 2001 15:09


All times are GMT -4. The time now is 03:48.