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

How to access VOF of a face

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

Reply
 
LinkBack Thread Tools 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: 7
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: 180
Rep Power: 7
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

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
Import netgen mesh to OpenFOAM hsieh Open Source Meshers: Gmsh, Netgen, CGNS, ... 32 September 13, 2011 05:50
BlockMeshmergePatchPairs hjasak OpenFOAM Native Meshers: blockMesh 11 August 15, 2008 07:36
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15


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