Include Air in the simulation

edited January 2019 in DualSPHysics v4.2
How can we include air in the simulation? For example, if we want to consider the air lift of a floating body. Is this can be done?

Do I need to create two fluids (one for air, another for water) and one floating body in the tool? For the most example cases such as sloshing, why there is no air defined?

Comments

  • You have to do a multi-phase simulation to include air, since in single phase the pressure equation is only valid for liquids and not gasses. In the multi-phase simulation you can specify a single fluid (like air) for your simulation. To do this you have to spend some time inside the multi-phase documentation and examples.

    I would assume that in sloshing case, since the air has a density which 1/1000 of water it can be done with only water. You can always include it, if you want.

    Kind regards
  • Thanks @ Asalih3d , do you know whether this can be done in ver 4.2 or it has to be done through earlier version DualSPHysics4.0_LiquidGas.exe?
  • You have to go into examples folder and find the multi-phase examples and run through them and the documentation to get the best overview of possibilities and setup.

    Kind regards
  • edited February 2019
    I think Ver 4.2 should include the multi-phase functions.
  • @ Kevin, The DualSPHysics package v4.2 contains DualSPHysics4.0_LiquidGas.exe, this is the latest public/stable version. The numbering might be confusing, but everything is in order.
  • edited February 2019
    @bladomas1 Thanks. Just to double confirm- I can use the DSPH 4.2 exe for Liquid-Gas analysis and ignore the DualSPHysics4.0_LiquidGas.exe in the pacage, is this correct?
  • edited February 2019
    No, use DualSPHysics4.0_LiquidGas.exe for Liquid-Gas. If you work single phase only then use DSPH 4.2 exe.

    Edit: Follow the example .xml file. Or even read the manual for DualSPH 4.0 LiquidGas. The setup is a bit different. The .sh /.bat file is very similar, only the compute part uses a different command (different solver).
Sign In or Register to comment.

Debug Trace

Notice
Cannot assign an empty string to a string offset

#0 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1203): gdn_ErrorHandler(2, 'Cannot assign a...', '/var/www/forums...', 1203, Array)
#1 /var/www/forums-dual-sphysics-org/library/core/class.format.php(958): Gdn_Format::formatMentionsCallback('')
#2 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1292): Gdn_Format::tagContent('@ Kevin, The Du...', 'Gdn_Format::for...')
#3 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Html/HtmlEnhancer.php(59): Gdn_Format::mentions('@ Kevin, The Du...')
#4 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Formats/HtmlFormat.php(74): Vanilla\Formatting\Html\HtmlEnhancer->enhance('@ Kevin, The Du...')
#5 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/FormatService.php(34): Vanilla\Formatting\Formats\HtmlFormat->renderHtml('@ Kevin, The Du...')
#6 /var/www/forums-dual-sphysics-org/library/core/class.format.php(769): Vanilla\Formatting\FormatService->renderHTML('@ Kevin, The Du...', 'html')
#7 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1479): Gdn_Format::html('@ Kevin, The Du...')
#8 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/helper_functions.php(24): Gdn_Format::to('@ Kevin, The Du...', 'Html')
#9 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/helper_functions.php(170): formatBody(Object(stdClass))
#10 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/comments.php(19): writeComment(Object(stdClass), Object(DiscussionController), Object(Gdn_Session), 5)
#11 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/index.php(53): include('/var/www/forums...')
#12 /var/www/forums-dual-sphysics-org/library/core/class.controller.php(778): include('/var/www/forums...')
#13 /var/www/forums-dual-sphysics-org/library/core/class.controller.php(1382): Gdn_Controller->fetchView('', false, false)
#14 /var/www/forums-dual-sphysics-org/library/core/class.pluggable.php(217): Gdn_Controller->xRender()
#15 /var/www/forums-dual-sphysics-org/applications/vanilla/controllers/class.discussioncontroller.php(310): Gdn_Pluggable->__call('render', Array)
#16 /var/www/forums-dual-sphysics-org/library/core/class.dispatcher.php(862): DiscussionController->index('1502', 'include-air-in-...', '')
#17 /var/www/forums-dual-sphysics-org/library/core/class.dispatcher.php(279): Gdn_Dispatcher->dispatchController(Object(Gdn_Request), Array)
#18 /var/www/forums-dual-sphysics-org/index.php(29): Gdn_Dispatcher->dispatch()
#19 {main}
Notice
Cannot assign an empty string to a string offset

#0 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1203): gdn_ErrorHandler(2, 'Cannot assign a...', '/var/www/forums...', 1203, Array)
#1 /var/www/forums-dual-sphysics-org/library/core/class.format.php(958): Gdn_Format::formatMentionsCallback('')
#2 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1292): Gdn_Format::tagContent('@bladomas1 Than...', 'Gdn_Format::for...')
#3 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Html/HtmlEnhancer.php(59): Gdn_Format::mentions('@bladomas1 Than...')
#4 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Formats/TextExFormat.php(40): Vanilla\Formatting\Html\HtmlEnhancer->enhance('@bladomas1 Than...')
#5 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/FormatService.php(34): Vanilla\Formatting\Formats\TextExFormat->renderHTML('@bladomas1 Than...')
#6 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1464): Vanilla\Formatting\FormatService->renderHTML('@bladomas1 Than...', 'textex')
#7 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1479): Gdn_Format::textEx('@bladomas1 Than...')
#8 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/helper_functions.php(24): Gdn_Format::to('@bladomas1 Than...', 'TextEx')
#9 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/helper_functions.php(170): formatBody(Object(stdClass))
#10 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/comments.php(19): writeComment(Object(stdClass), Object(DiscussionController), Object(Gdn_Session), 6)
#11 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/index.php(53): include('/var/www/forums...')
#12 /var/www/forums-dual-sphysics-org/library/core/class.controller.php(778): include('/var/www/forums...')
#13 /var/www/forums-dual-sphysics-org/library/core/class.controller.php(1382): Gdn_Controller->fetchView('', false, false)
#14 /var/www/forums-dual-sphysics-org/library/core/class.pluggable.php(217): Gdn_Controller->xRender()
#15 /var/www/forums-dual-sphysics-org/applications/vanilla/controllers/class.discussioncontroller.php(310): Gdn_Pluggable->__call('render', Array)
#16 /var/www/forums-dual-sphysics-org/library/core/class.dispatcher.php(862): DiscussionController->index('1502', 'include-air-in-...', '')
#17 /var/www/forums-dual-sphysics-org/library/core/class.dispatcher.php(279): Gdn_Dispatcher->dispatchController(Object(Gdn_Request), Array)
#18 /var/www/forums-dual-sphysics-org/index.php(29): Gdn_Dispatcher->dispatch()
#19 {main}