CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

How to access VOF of a face

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 23, 2011, 04:09
Default How to access VOF of a face
  #1
Member
 
Sandeep
Join Date: Jul 2010
Posts: 48
Rep Power: 16
gandesk is on a distinguished road
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
gandesk is offline   Reply With Quote

Old   February 2, 2011, 22:24
Default
  #2
Senior Member
 
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 16
ComputerGuy is on a distinguished road
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:
Originally Posted by gandesk View Post
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
ComputerGuy is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 19:33.