# measure the water depth in cylinder

 Register Blogs Members List Search Today's Posts Mark Forums Read

 May 29, 2021, 17:32 measure the water depth in cylinder #1 New Member   hamid Join Date: May 2021 Posts: 5 Rep Power: 4 Hi all How can I measure the water depth in a cylinder in the two-phase model in the CFX post?

 May 30, 2021, 02:57 #2 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 17,728 Rep Power: 143 Define "depth". Where the free surface is along a line? Volume of water? Averaged free surface height on some defined plane? The volume of water is easy - volumeInt(Water phase)@Domain __________________ Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.

 May 31, 2021, 01:23 #3 Senior Member   M Join Date: Dec 2017 Posts: 644 Rep Power: 12 Create a surface where the phase volume fraction is 0.5. Assuming your z-coordinate is along the vertical axis, you can then get the average z value at your surface and subtract the bottom z coordinate.

June 15, 2021, 13:36
#4
New Member

hamid
Join Date: May 2021
Posts: 5
Rep Power: 4
Quote:
 Originally Posted by AtoHM Create a surface where the phase volume fraction is 0.5. Assuming your z-coordinate is along the vertical axis, you can then get the average z value at your surface and subtract the bottom z coordinate.
Thank you for your kind answer; I wanted to do it with an expression, not manually

June 15, 2021, 13:37
#5
New Member

hamid
Join Date: May 2021
Posts: 5
Rep Power: 4
Quote:
 Originally Posted by ghorrocks Define "depth". Where the free surface is along a line? Volume of water? Averaged free surface height on some defined plane? The volume of water is easy - volumeInt(Water phase)@Domain
Thank you for your kind answer; I wanted to find where the volume fraction is 0.5 in line,
and do it with an expression

 June 15, 2021, 20:16 #6 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 17,728 Rep Power: 143 The average depth of water is easy: volumeInt(Water phase)@domain/area()@Bottom Surface Is that useful? If not, please define exactly how you define the depth. There are many ways of measuring the depth. Consider a swimming pool - how deep is it? (It depends on how you measure it) aero_head likes this. __________________ Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.

June 16, 2021, 02:43
#7
Senior Member

M
Join Date: Dec 2017
Posts: 644
Rep Power: 12
Quote:
 Originally Posted by hm____reza Thank you for your kind answer; I wanted to do it with an expression, not manually

Thats easily implemented in a function and Glenn already spoiled part of it. You can do this!

 Tags cfd - post, cfx & air content