How to measure water height

edited September 2013 in Old versions
Hello all

I wanted to get the water height for a X,Y point.

Is it possible?

Regards

Comments

  • Hi Inaki,

    Can you be slightly more specific about when you want the water height of an X,Y point?

    Really, finding the height should just be a case of comparing the location of the particle of interest to an appropriate point of origin.

    Perhaps if you could describe your situation in slightly more detail?
  • Hello SLongshaw

    I meant, considering a tank test, to get the vertical distance from the water surface to a X, Y, Z point.

    Regards
    Iñaki
  • Hi Inaki,

    The easiest way I can suggest is to just extract the position of a particle at the height of the surface, either using a provided post-processing tool or using something like ParaView, then just do a simple distance calculation between the point on the water surface and the point that you are interested in.
  • Hello SLongshaw

    Finally I have got the solution. Very simple:
    - Include a PointsHeights.txt file with this. Please see the comments:

    POINTSLIST #
    7.5 3.5 0
    0.0 0.0 0.01
    1 1 500

    #"POINTSLIST"
    #PosX PosY 0 -> Z has to be zero (0)
    #StepX StepY ResolutionZ -> ResolutionZ is the "resolution" of the measurement
    #CountX CountY CountZ -> CountZ*ResolutionZ is in any way the area to be measured (not sure)

    - Include a Measure.bat file with this:

    ...
    %measuretool% -dirin %dirout% -points PointsHeights.txt -onlytype:-all,+fluid -height -savecsv PointsHeights
    ...

    Hope this helps (^_^)
  • Hi Inaki,

    Glad you found a method that works well for you :)
  • Hi all how to determine numbers for StepsX, Y, Z and CountX, Y, Z positions?

Sign In or Register to comment.

Debug Trace

Notice
rich is deprecated. Use FormatService::renderHtml($content, Formats\RichFormat::FORMAT_KEY) instead.

#0 [internal function]: gdn_ErrorHandler(16384, 'rich is depreca...', '/var/www/forums...', 950, Array)
#1 /var/www/forums-dual-sphysics-org/library/core/functions.general.php(950): trigger_error('rich is depreca...', 16384)
#2 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1729): deprecated('rich', 'FormatService::...')
#3 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1479): Gdn_Format::rich('[{"insert":"Hi ...')
#4 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/helper_functions.php(24): Gdn_Format::to('[{"insert":"Hi ...', 'Rich')
#5 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/helper_functions.php(170): formatBody(Object(stdClass))
#6 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/comments.php(19): writeComment(Object(stdClass), Object(DiscussionController), Object(Gdn_Session), 6)
#7 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/index.php(53): include('/var/www/forums...')
#8 /var/www/forums-dual-sphysics-org/library/core/class.controller.php(778): include('/var/www/forums...')
#9 /var/www/forums-dual-sphysics-org/library/core/class.controller.php(1382): Gdn_Controller->fetchView('', false, false)
#10 /var/www/forums-dual-sphysics-org/library/core/class.pluggable.php(217): Gdn_Controller->xRender()
#11 /var/www/forums-dual-sphysics-org/applications/vanilla/controllers/class.discussioncontroller.php(310): Gdn_Pluggable->__call('render', Array)
#12 /var/www/forums-dual-sphysics-org/library/core/class.dispatcher.php(862): DiscussionController->index('140', 'how-to-measure-...', '')
#13 /var/www/forums-dual-sphysics-org/library/core/class.dispatcher.php(279): Gdn_Dispatcher->dispatchController(Object(Gdn_Request), Array)
#14 /var/www/forums-dual-sphysics-org/index.php(29): Gdn_Dispatcher->dispatch()
#15 {main}