|
[Sponsors] |
June 7, 2007, 13:35 |
access violation on periodic conditions
|
#1 |
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 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 18:06 |
Setting turbulent plane poiseuille model to periodic boundary conditions. | QBeast | FLUENT | 0 | July 17, 2011 11:08 |
rotational periodic boundary conditions in ICEM | user0314 | ANSYS Meshing & Geometry | 1 | June 21, 2011 02:57 |
periodic conditions, temperature not converging | Husain | CFX | 3 | April 29, 2007 20:21 |
Urgent: periodic boundary conditions | ck1973 | FLUENT | 3 | July 5, 2006 12:32 |