Particles spurt out from inlet
Hi,
We are trying to simulate the process that using a liquid/gas to exchange the original liquid/gas in a container.
To simplify this process, we use a closed and intercommunicate box like this. Inlet locate at the top border of left box, outlet in right one.
https://forums.dual.sphysics.org/uploads/419/NWF61VH2ZGCK.png https://forums.dual.sphysics.org/uploads/011/WF02P0M60BS4.pngAfter a few steps simulate, the situation become like this:
- the first and most important problem is that particles would spurt out from inlet.
- I tried use a fix value for outlet, but that makes a hole around it. Does that mean use the extrapolated value option is better?
The xml file:
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('2421', 'particles-spurt...', '')
#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 |
Validation error while instantiating embed type image with class Vanilla\EmbeddedContent\Embeds\ImageEmbed and data
{
"embedType": "image",
"url": "https:\/\/forums.dual.sphysics.org\/uploads\/419\/NWF61VH2ZGCK.png",
"name": "box.png",
"attributes": [],
"format": null,
"bodyRaw": null
}
{
"message": "Validation Failed",
"status": 400,
"errors": [
{
"field": "type",
"code": "missingField",
"status": 400,
"message": "type is required."
}
]
}
#0 [internal function]: gdn_ErrorHandler(512, 'Validation erro...', '/var/www/forums...', 217, Array)
#1 /var/www/forums-dual-sphysics-org/library/Vanilla/EmbeddedContent/EmbedService.php(217): trigger_error('Validation erro...', 512)
#2 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Quill/Blots/Embeds/ExternalBlot.php(78): Vanilla\EmbeddedContent\EmbedService->createEmbedFromData(Array)
#3 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Quill/Blots/Embeds/ExternalBlot.php(90): Vanilla\Formatting\Quill\Blots\Embeds\ExternalBlot->getEmbed()
#4 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Quill/BlotGroup.php(170): Vanilla\Formatting\Quill\Blots\Embeds\ExternalBlot->render()
#5 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Quill/BlotGroup.php(151): Vanilla\Formatting\Quill\BlotGroup->renderContent()
#6 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Quill/Renderer.php(25): Vanilla\Formatting\Quill\BlotGroup->render()
#7 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Formats/RichFormat.php(65): Vanilla\Formatting\Quill\Renderer->render(Object(Vanilla\Formatting\Quill\BlotGroupCollection))
#8 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/FormatService.php(34): Vanilla\Formatting\Formats\RichFormat->renderHTML('[{"insert":"Hi,...')
#9 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1730): Vanilla\Formatting\FormatService->renderHTML('[{"insert":"Hi,...', 'rich')
#10 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1479): Gdn_Format::rich('[{"insert":"Hi,...')
#11 /var/www/forums-dual-sphysics-org/applications/vanilla/controllers/class.discussioncontroller.php(197): Gdn_Format::to('[{"insert":"Hi,...', 'Rich')
#12 /var/www/forums-dual-sphysics-org/library/core/class.dispatcher.php(862): DiscussionController->index('2421', 'particles-spurt...', '')
#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} |
| Notice |
Validation error while instantiating embed type image with class Vanilla\EmbeddedContent\Embeds\ImageEmbed and data
{
"embedType": "image",
"url": "https:\/\/forums.dual.sphysics.org\/uploads\/011\/WF02P0M60BS4.png",
"name": "inoutlet.png",
"attributes": [],
"format": null,
"bodyRaw": null
}
{
"message": "Validation Failed",
"status": 400,
"errors": [
{
"field": "type",
"code": "missingField",
"status": 400,
"message": "type is required."
}
]
}
#0 [internal function]: gdn_ErrorHandler(512, 'Validation erro...', '/var/www/forums...', 217, Array)
#1 /var/www/forums-dual-sphysics-org/library/Vanilla/EmbeddedContent/EmbedService.php(217): trigger_error('Validation erro...', 512)
#2 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Quill/Blots/Embeds/ExternalBlot.php(78): Vanilla\EmbeddedContent\EmbedService->createEmbedFromData(Array)
#3 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Quill/Blots/Embeds/ExternalBlot.php(90): Vanilla\Formatting\Quill\Blots\Embeds\ExternalBlot->getEmbed()
#4 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Quill/BlotGroup.php(170): Vanilla\Formatting\Quill\Blots\Embeds\ExternalBlot->render()
#5 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Quill/BlotGroup.php(151): Vanilla\Formatting\Quill\BlotGroup->renderContent()
#6 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Quill/Renderer.php(25): Vanilla\Formatting\Quill\BlotGroup->render()
#7 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Formats/RichFormat.php(65): Vanilla\Formatting\Quill\Renderer->render(Object(Vanilla\Formatting\Quill\BlotGroupCollection))
#8 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/FormatService.php(34): Vanilla\Formatting\Formats\RichFormat->renderHTML('[{"insert":"Hi,...')
#9 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1730): Vanilla\Formatting\FormatService->renderHTML('[{"insert":"Hi,...', 'rich')
#10 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1479): Gdn_Format::rich('[{"insert":"Hi,...')
#11 /var/www/forums-dual-sphysics-org/applications/vanilla/controllers/class.discussioncontroller.php(197): Gdn_Format::to('[{"insert":"Hi,...', 'Rich')
#12 /var/www/forums-dual-sphysics-org/library/core/class.dispatcher.php(862): DiscussionController->index('2421', 'particles-spurt...', '')
#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} |
| 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('2421', 'particles-spurt...', '')
#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 |
Validation error while instantiating embed type image with class Vanilla\EmbeddedContent\Embeds\ImageEmbed and data
{
"embedType": "image",
"url": "https:\/\/forums.dual.sphysics.org\/uploads\/419\/NWF61VH2ZGCK.png",
"name": "box.png",
"attributes": [],
"format": null,
"bodyRaw": null
}
{
"message": "Validation Failed",
"status": 400,
"errors": [
{
"field": "type",
"code": "missingField",
"status": 400,
"message": "type is required."
}
]
}
#0 [internal function]: gdn_ErrorHandler(512, 'Validation erro...', '/var/www/forums...', 217, Array)
#1 /var/www/forums-dual-sphysics-org/library/Vanilla/EmbeddedContent/EmbedService.php(217): trigger_error('Validation erro...', 512)
#2 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Quill/Blots/Embeds/ExternalBlot.php(78): Vanilla\EmbeddedContent\EmbedService->createEmbedFromData(Array)
#3 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Quill/Blots/Embeds/ExternalBlot.php(90): Vanilla\Formatting\Quill\Blots\Embeds\ExternalBlot->getEmbed()
#4 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Quill/BlotGroup.php(170): Vanilla\Formatting\Quill\Blots\Embeds\ExternalBlot->render()
#5 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Quill/BlotGroup.php(151): Vanilla\Formatting\Quill\BlotGroup->renderContent()
#6 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Quill/Renderer.php(25): Vanilla\Formatting\Quill\BlotGroup->render()
#7 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Formats/RichFormat.php(65): Vanilla\Formatting\Quill\Renderer->render(Object(Vanilla\Formatting\Quill\BlotGroupCollection))
#8 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/FormatService.php(34): Vanilla\Formatting\Formats\RichFormat->renderHTML('[{"insert":"Hi,...')
#9 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1730): Vanilla\Formatting\FormatService->renderHTML('[{"insert":"Hi,...', 'rich')
#10 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1479): Gdn_Format::rich('[{"insert":"Hi,...')
#11 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/helper_functions.php(24): Gdn_Format::to('[{"insert":"Hi,...', 'Rich')
#12 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/discussion.php(89): formatBody(Object(stdClass))
#13 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/index.php(31): include('/var/www/forums...')
#14 /var/www/forums-dual-sphysics-org/library/core/class.controller.php(778): include('/var/www/forums...')
#15 /var/www/forums-dual-sphysics-org/library/core/class.controller.php(1382): Gdn_Controller->fetchView('', false, false)
#16 /var/www/forums-dual-sphysics-org/library/core/class.pluggable.php(217): Gdn_Controller->xRender()
#17 /var/www/forums-dual-sphysics-org/applications/vanilla/controllers/class.discussioncontroller.php(310): Gdn_Pluggable->__call('render', Array)
#18 /var/www/forums-dual-sphysics-org/library/core/class.dispatcher.php(862): DiscussionController->index('2421', 'particles-spurt...', '')
#19 /var/www/forums-dual-sphysics-org/library/core/class.dispatcher.php(279): Gdn_Dispatcher->dispatchController(Object(Gdn_Request), Array)
#20 /var/www/forums-dual-sphysics-org/index.php(29): Gdn_Dispatcher->dispatch()
#21 {main} |
| Notice |
Validation error while instantiating embed type image with class Vanilla\EmbeddedContent\Embeds\ImageEmbed and data
{
"embedType": "image",
"url": "https:\/\/forums.dual.sphysics.org\/uploads\/011\/WF02P0M60BS4.png",
"name": "inoutlet.png",
"attributes": [],
"format": null,
"bodyRaw": null
}
{
"message": "Validation Failed",
"status": 400,
"errors": [
{
"field": "type",
"code": "missingField",
"status": 400,
"message": "type is required."
}
]
}
#0 [internal function]: gdn_ErrorHandler(512, 'Validation erro...', '/var/www/forums...', 217, Array)
#1 /var/www/forums-dual-sphysics-org/library/Vanilla/EmbeddedContent/EmbedService.php(217): trigger_error('Validation erro...', 512)
#2 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Quill/Blots/Embeds/ExternalBlot.php(78): Vanilla\EmbeddedContent\EmbedService->createEmbedFromData(Array)
#3 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Quill/Blots/Embeds/ExternalBlot.php(90): Vanilla\Formatting\Quill\Blots\Embeds\ExternalBlot->getEmbed()
#4 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Quill/BlotGroup.php(170): Vanilla\Formatting\Quill\Blots\Embeds\ExternalBlot->render()
#5 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Quill/BlotGroup.php(151): Vanilla\Formatting\Quill\BlotGroup->renderContent()
#6 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Quill/Renderer.php(25): Vanilla\Formatting\Quill\BlotGroup->render()
#7 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Formats/RichFormat.php(65): Vanilla\Formatting\Quill\Renderer->render(Object(Vanilla\Formatting\Quill\BlotGroupCollection))
#8 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/FormatService.php(34): Vanilla\Formatting\Formats\RichFormat->renderHTML('[{"insert":"Hi,...')
#9 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1730): Vanilla\Formatting\FormatService->renderHTML('[{"insert":"Hi,...', 'rich')
#10 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1479): Gdn_Format::rich('[{"insert":"Hi,...')
#11 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/helper_functions.php(24): Gdn_Format::to('[{"insert":"Hi,...', 'Rich')
#12 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/discussion.php(89): formatBody(Object(stdClass))
#13 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/index.php(31): include('/var/www/forums...')
#14 /var/www/forums-dual-sphysics-org/library/core/class.controller.php(778): include('/var/www/forums...')
#15 /var/www/forums-dual-sphysics-org/library/core/class.controller.php(1382): Gdn_Controller->fetchView('', false, false)
#16 /var/www/forums-dual-sphysics-org/library/core/class.pluggable.php(217): Gdn_Controller->xRender()
#17 /var/www/forums-dual-sphysics-org/applications/vanilla/controllers/class.discussioncontroller.php(310): Gdn_Pluggable->__call('render', Array)
#18 /var/www/forums-dual-sphysics-org/library/core/class.dispatcher.php(862): DiscussionController->index('2421', 'particles-spurt...', '')
#19 /var/www/forums-dual-sphysics-org/library/core/class.dispatcher.php(279): Gdn_Dispatcher->dispatchController(Object(Gdn_Request), Array)
#20 /var/www/forums-dual-sphysics-org/index.php(29): Gdn_Dispatcher->dispatch()
#21 {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":"The...')
#4 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/helper_functions.php(24): Gdn_Format::to('[{"insert":"The...', '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('2421', 'particles-spurt...', '')
#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} |
| 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":"Cir...')
#4 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/helper_functions.php(24): Gdn_Format::to('[{"insert":"Cir...', '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), 2)
#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('2421', 'particles-spurt...', '')
#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
These would be my suggestions;
To isolate the problem before you move on to outlet flow definition,
1- Define the kernel size explicitly and make sure that you have enough boundary layers to provide full kernel support.
2- Make sure that the speed of sound is at least an order of magnitude greater than the characteristic speed.
3- Try changing the shifting correction option.
4- Try it with Symplectic for time stepping.
If you see an improvement after these, keep testing the effect of in/out settings.
Circles is completely correct, this is how one should tackle it. One step at a time and not too much of a bite at once. Without knowing better your situation, perhaps OpenFOAM would probably be better for this kind of internal flow simulation.
Kind regards