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

access violation on periodic conditions

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 7, 2007, 12:35
Default access violation on periodic conditions
  #1
John Deas
Guest
 
Posts: n/a
Hi,

I would like to write flow fields values (for an unsteady case) using an "execute at end" user defined function so I can have a sequence and look at the evolution. I really would like to implement this with an UDF.

If the boundary over which I loop to get the C_U values is a velocity inlet, it works and I get the value I put in the boundary condition panel. But, if I want to loop over a periodic boundary condition, with the same code, I get an ACCESS VIOLATION

Here is the small code I wrote to test the loop. thread_id=5 correspond to the boundary condition.

#include "udf.h"

DEFINE_EXECUTE_AT_END(execute_at_end) { Thread *th = NULL; Domain *domain = Get_Domain(1); int thread_id = 5; cell_t c; float speed = 0;

th = Lookup_Thread(domain,thread_id) ; begin_c_loop(c,th)

{ speed = C_U(c,th); printf("%f\n",speed); } end_c_loop(c,th)

}

However, I can get other value in the periodic case (for example, the centroid position): only retrieving the speed components is not working.

Thanks,

John

  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
HELP,how to define the periodic boudary conditions using the icem mesh? dada1204 FLUENT 2 May 1, 2012 17:06
Setting turbulent plane poiseuille model to periodic boundary conditions. QBeast FLUENT 0 July 17, 2011 10:08
rotational periodic boundary conditions in ICEM user0314 ANSYS Meshing & Geometry 1 June 21, 2011 01:57
periodic conditions, temperature not converging Husain CFX 3 April 29, 2007 19:21
Urgent: periodic boundary conditions ck1973 FLUENT 3 July 5, 2006 11:32


All times are GMT -4. The time now is 20:37.