How to create a shaking container
Hi,
I'm trying to set up a shaking container (cylinder) of fluid using DualSPHysics. I created a volume with min (-0.05,-0.05,-0.5) max (0.25, 0.25, 0.5) containing a cylinder of radius 0.04 and points (0.05, 0.05, 0.0), (0.05, 0.05, 0.08), and used a fillbox to create some fluid inside the container:
<setshapemode>actual | dp | bound</setshapemode> <setmkbound mk="0" /> <setdrawmode mode="face" /> <drawcylinder radius="0.04" objname="Container"> <point x="0.05" y="0.05" z="0.0" /> <point x="0.05" y="0.05" z="0.08" /> </drawcylinder> <setmkfluid mk="0" /> <fillbox x="0.05" y="0.05" z="0.015" objname="FillBox"> <modefill>void</modefill> <point x="0" y="0" z="0" /> <size x="0.1" y="0.1" z="0.031" /> </fillbox>
I tried to apply a sinusoidal rectilinear motion to the boundary particles to make them "shake", but I think I'm misunderstanding how the motion works. I tried this motion type:
<motion> <objreal ref="0"> <begin mov="1" start="0" /> <mvrectsinu id="1" duration="1.0" anglesunits="degrees" next="1"> <freq x="0.0" y="0.0" z="1.0" units_comment="1/s" /> <ampl x="0.0" y="0.0" z="0.0001" units_comment="metres (m)" /> <phase x="0.0" y="0.0" z="0.0" units_comment="degrees" /> </mvrectsinu> </objreal> </motion>
which my understanding would result in a shake with frequency 1 Hz and a maximum amplitude of 0.0001m/s^2, which I think should also result in a maximum displacement of 0.0001m (well within the bounds of 0.5 in the z axis).
When I run this case, after 0.07120s simulation time the simulation halts with the error:
Excluded for: position=20073 rhop=0 velocity=0 Some boundary particle exceeded the +Z limit (top limit) of the simulation domain.*** Exception (JSphCpuSingle::AbortBoundOut) Text: Fixed, moving or floating particles were excluded. Check VTK file Error_BoundaryOut.vtk with excluded particles.
which suggests somehow some of the boundary particles make it outside the domain super quickly, and I can't understand why. Is there something wrong with my motion understanding (or boxsize or something) that makes this go wrong?
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/controllers/class.discussioncontroller.php(197): Gdn_Format::to('[{"insert":"Hi,...', 'Rich') #5 /var/www/forums-dual-sphysics-org/library/core/class.dispatcher.php(862): DiscussionController->index('1734', 'how-to-create-a...', '') #6 /var/www/forums-dual-sphysics-org/library/core/class.dispatcher.php(279): Gdn_Dispatcher->dispatchController(Object(Gdn_Request), Array) #7 /var/www/forums-dual-sphysics-org/index.php(29): Gdn_Dispatcher->dispatch() #8 {main} |
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/discussion.php(89): formatBody(Object(stdClass)) #6 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/index.php(31): include('/var/www/forums...') #7 /var/www/forums-dual-sphysics-org/library/core/class.controller.php(778): include('/var/www/forums...') #8 /var/www/forums-dual-sphysics-org/library/core/class.controller.php(1382): Gdn_Controller->fetchView('', false, false) #9 /var/www/forums-dual-sphysics-org/library/core/class.pluggable.php(217): Gdn_Controller->xRender() #10 /var/www/forums-dual-sphysics-org/applications/vanilla/controllers/class.discussioncontroller.php(310): Gdn_Pluggable->__call('render', Array) #11 /var/www/forums-dual-sphysics-org/library/core/class.dispatcher.php(862): DiscussionController->index('1734', 'how-to-create-a...', '') #12 /var/www/forums-dual-sphysics-org/library/core/class.dispatcher.php(279): Gdn_Dispatcher->dispatchController(Object(Gdn_Request), Array) #13 /var/www/forums-dual-sphysics-org/index.php(29): Gdn_Dispatcher->dispatch() #14 {main} |
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), 1) #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('1734', 'how-to-create-a...', '') #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} |
Comments
Hi,
I think it is a classic case of:
You can also check which and where particle are out by looking at the Error_boundaryOut.vtk file in paraview.
Basically, the simulation domain is computed at the start of the simulation after all part are generated, it contains all particles but no more (and it is different from the limits of gencase you enter in .xml). So as soon as your cylinder goes up or down it goes outside this domain, hence the error.
Bye