|
[Sponsors] |
January 23, 2011, 04:09 |
How to access VOF of a face
|
#1 |
Member
Sandeep
Join Date: Jul 2010
Posts: 48
Rep Power: 16 |
Hi all,
I want to access volume of fluid value of a face on a boundary and store it in a array. My following code says access violation error. It would be great if anyone can point out my mistake int y, j; float c[200]; face_t f; for (j=0;j<200;j++) { c[j]=j; } y = 0; begin_f_loop(f,t) { c[y]=F_VOF(f,t); y = y+1; } end_f_loop(f,t) Thanks Sandeep |
|
February 2, 2011, 22:24 |
|
#2 | |
Senior Member
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 16 |
This sounds silly, but is your code being passed a pointer to a face thread which exists on a multiphase cell? A little more definition (elaboration) of the code would be helpful.
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Netgen] Import netgen mesh to OpenFOAM | hsieh | OpenFOAM Meshing & Mesh Conversion | 32 | September 13, 2011 06:50 |
[blockMesh] BlockMeshmergePatchPairs | hjasak | OpenFOAM Meshing & Mesh Conversion | 11 | August 15, 2008 08:36 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 05:15 |