Patching Volume Fraction in a sloped channel
Hello. I'm running an open channel VOF model of a sloped channel and would like to be able to patch a volume fraction of 1 for the area under the water surface. I understand how to do this in a flat channel using region adaption in Fluent. I can't however figure out how to do this for a sloped channel in which the water surface is also sloped at approximately the same angle as the channel bottom.
any suggestions? |
Hi Katey,
you can do that with a simple UDF with DEFINE_INIT macro. loop over all cells and set a condition over y-coordinate .... |
Thanks. I will look into that. I'm pretty new at this but I'm finding if I can't intialize the volume fraction for the water portion of the problem it takes a long time to get water through the channel.
|
Use of VOF Multiphase Macro
So in order to use the DEFINE_INIT macro I need to find the correct cell macro to initialize the volume fraction in the cell. I believe this is the C_VOF(c,t) macro but I'm a little confused about how to apply it...or I should say how to indicate which phase i'm changing, 1 or 2.
Any help is much appreciated. |
Quote:
the similar code is available in UDF manual that you can use it but your procedure is simpler: Code:
/***************************************************************** |
Thanks. I just found that and I'm running it now. Crossing fingers.
|
All times are GMT -4. The time now is 19:21. |