I am using ANSYS Fluent. I want to define an interface between air and water in open-channel and define a profile for this interface. How can i do this?
As I understood, it is just a matter of defining the water volume fraction in your initial condition. To do it manually, you may use the function mark/adapt cells for that and select the regions you may want to specify as intially filled with liquid or gas.
Using the open channel flow setup, a flat surface is rather simple and there are some wave profiles avaiable as well. Please check the attached material.
If you need something more complex than that, you may need a UDF. People here in the RG may help you more if you describe what kind of profile do you intend to represent.
Yes, Daniel Fonseca de Carvalho e Silva is saying correct. I may further add that you should use patch function after initialize you case. ( see supported picture)
I want to define a UDF for the interface between air and water (i.e free surface level), for example, a sinusoidal transient motion.
When i use Wave Boundary Condition, surface waves dissipate along the channel. I want to define a wave for the free surface that doesn't dissipate.
There is a UDF in "Fluent Users Guide" about "Transient Profile for Free Surface Level", that Daniel send. But i don't actually realize that. If i want to define a sinusoidal transient motion, how the UDF code should be look like?