|
[Sponsors] |
|
July 17, 2006, 15:33 |
Problems hooking up UDS_FLUX
|
#1 |
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 |
|
July 18, 2006, 05:59 |
Re: Problems hooking up UDS_FLUX
|
#2 |
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)?
|
|
July 18, 2006, 09:14 |
Re: Problems hooking up UDS_FLUX
|
#3 |
Guest
Posts: n/a
|
RHOL is a constant and is being initialized globally. I am still clueless..
CFDtoy |
|
July 18, 2006, 09:15 |
Re: Problems hooking up UDS_FLUX
|
#4 |
Guest
Posts: n/a
|
Sorry, btw, rhoc = RHOG/RHOL some ratio of densities etc.
CFDtoy |
|
July 19, 2006, 00:22 |
Re: Problems hooking up UDS_FLUX
|
#5 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] Problems with coedge curves and surfaces | tommymoose | ANSYS Meshing & Geometry | 6 | December 1, 2020 11:12 |
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 | Siemens | 0 | August 6, 2003 13:55 |
unstructured grid | sreekanth | Main CFD Forum | 1 | August 6, 2001 15:09 |