I am using a VOF simulation containing two phases. I have initialized the domain with volume fraction of secondary phase=1 in liquid region and 0 in vapor region.
I wanted to incorporate a source term like below:
if (C_VOF(cell,cell_thread)!=0.0 && C_VOF(cell,cell_thread)!=1.0)
When I print the value of source, I am getting a value of zero. If I remove the term (C_VOF_G(cell,cell_thread)), then I get non-zero values.
I request any one to let me know why gradient is returning a value of zero.
Thanks & Regards,