|
[Sponsors] |
May 20, 2005, 03:21 |
UDF ERROR - is it possible
|
#1 |
Guest
Posts: n/a
|
Hai Fluent Users
Is it possible to acess volume fraction (C_VOF(c,pt[0])) inside DEFINE_SOURCE macro. see this example #include "udf.h" DEFINE_SOURCE(heatgen,c,t,dS,eqn) { Thread **pt; real x[ND_ND],y,vol; y=x[1]; C_CENTROID(x,c,t); vol=C_VOF(c,pt[0]); } This get compiled with out error, but when i try to iterate it gives error. Error: FLUENT received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error Object: () What fluent exactly says, if i iterate with out volume fraction it is running. Please suggest to get volume fraction insie DEFINE_SOURCE macro |
|
May 20, 2005, 14:26 |
Re: UDF ERROR - is it possible
|
#2 |
Guest
Posts: n/a
|
I hope you are using the segregated solver and I think you should include sg_mphase.h along with udf.h.
Instead of #include "udf.h" Use: #include "udf.h" #include "sg_mphase.h" |
|
May 21, 2005, 11:08 |
Re: UDF ERROR - is it possible
|
#3 |
Guest
Posts: n/a
|
I tried that, but that also gives same error message(The program get compiled but showing error during itration)
I think there should be some multi phase loop. can you sugess any solutions |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 08:37 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 22:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 05:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |