CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Problems hooking up UDS_FLUX (http://www.cfd-online.com/Forums/fluent/41755-problems-hooking-up-uds_flux.html)

CFDTOY July 17, 2006 15:33

Problems hooking up UDS_FLUX
 
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

RoM July 18, 2006 05:59

Re: Problems hooking up UDS_FLUX
 
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)?

CFDToy July 18, 2006 09:14

Re: Problems hooking up UDS_FLUX
 
RHOL is a constant and is being initialized globally. I am still clueless..

CFDtoy

CFDToy July 18, 2006 09:15

Re: Problems hooking up UDS_FLUX
 
Sorry, btw, rhoc = RHOG/RHOL some ratio of densities etc.

CFDtoy

rom July 19, 2006 00:22

Re: Problems hooking up UDS_FLUX
 
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


All times are GMT -4. The time now is 17:34.