CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Flow Depth in VOF open channel flow (https://www.cfd-online.com/Forums/main/161846-flow-depth-vof-open-channel-flow.html)

akjha October 29, 2015 23:24

Flow Depth in VOF open channel flow
 
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,

Sarang V November 2, 2015 18:28

Are you trying to model something like a SVA-postdam propeller ?

akjha November 3, 2015 02:07

Open channel flow (VOF)
 
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 November 5, 2015 03:07

UDF for phase domain
 
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.


All times are GMT -4. The time now is 02:09.