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

Flow Depth in VOF open channel flow

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2015, 23:24
Default Flow Depth in VOF open channel flow
  #1
New Member
 
amit
Join Date: Mar 2014
Posts: 13
Rep Power: 12
akjha is on a distinguished road
hi, can somebody help me with finding depth of water in an open channel. there is no option of finding and exporting depth of water in open channel.

Thanks,
akjha is offline   Reply With Quote

Old   November 2, 2015, 18:28
Default
  #2
New Member
 
Sarang
Join Date: Oct 2015
Posts: 22
Rep Power: 10
Sarang V is on a distinguished road
Are you trying to model something like a SVA-postdam propeller ?
Sarang V is offline   Reply With Quote

Old   November 3, 2015, 02:07
Default Open channel flow (VOF)
  #3
New Member
 
amit
Join Date: Mar 2014
Posts: 13
Rep Power: 12
akjha is on a distinguished road
I am simulating a simple double phase (air water) open channel flow on stepped channels and spill ways. I need to see the froud plot for which I need the water depths.
akjha is offline   Reply With Quote

Old   November 5, 2015, 03:07
Default UDF for phase domain
  #4
New Member
 
amit
Join Date: Mar 2014
Posts: 13
Rep Power: 12
akjha is on a distinguished road
hi,
to get the fraud number profile, I got this idea to get the coordinates of the cell centers by using DEFINE_ON_DEMAND subroutine. But I don't know exactly how to do it.
I have 2 fluids with Phase ids 1 and 2.
I have a 2d model vof open channel flow.
I am using the following UDF

#include "udf.h"

FILE *fout;

void Print_Thread_Face_Centroids(Domain *domain, int id)
{
real FC[1];
face_t f;
Thread *t = Lookup_Thread(domain, id);
fprintf(fout,"thread id %d\n", id);
begin_f_loop(f,t)
{
F_CENTROID(FC,f,t);
fprintf(fout, "f%d %g %g\n", f, FC[0], FC[1]);
}
end_f_loop(f,t)
fprintf(fout, "\n");
}

DEFINE_ON_DEMAND(get_coords)
{
Domain *domain;
domain = Get_Domain(1);
fout = fopen("faces.out", "w");
Print_Thread_Face_Centroids(domain, 1);
Print_Thread_Face_Centroids(domain, 2);
fclose(fout);
}
should I load it as a journal file or I should use paste in TUI.

Please suggest.

Thanks.
akjha 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
reverse flow occur while activating open channel flow boundary? mariam.sara Fluent Multiphase 7 April 26, 2015 07:24
open channel flow model VOF in fluent yasar248 FLUENT 0 April 13, 2015 03:26
Open Channel Flow ElanMorin FLUENT 4 February 25, 2015 16:26
VOF Open Channel Flow: Two Liquids Jan90 Fluent Multiphase 0 May 16, 2014 05:41
Open Channel Flow forsumit FLUENT 0 October 1, 2009 02:01


All times are GMT -4. The time now is 05:40.