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

UDF ERROR - is it possible

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 20, 2005, 02:21
Default UDF ERROR - is it possible
  #1
M.Sundar
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

  Reply With Quote

Old   May 20, 2005, 13:26
Default Re: UDF ERROR - is it possible
  #2
pUl|
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"
  Reply With Quote

Old   May 21, 2005, 10:08
Default Re: UDF ERROR - is it possible
  #3
M.Sundar
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

  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
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 21:38
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 01:27
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


All times are GMT -4. The time now is 22:11.