error occur when i programing particle refinement
Hello, everyone.
Recently,i want to achieve the particles refinement technique in this paper: https://www.sciencedirect.com/science/article/pii/S0021999114004033.
But some error occurs:
1. SetArraySize. saying some are used. I deal this error by allocate a big size in ConfigDomain(). Don't know whether that would cause other error. Anyway, not yet at least.
2. some particles excluded with unknown reason. when particles leave the refinement region, the daugther particles should be erased. So, i deal that particles like the rhopout particles. But it still saying exclued with unknown reason and run exception.
3. boundary particles excluded. I did' t figure out what caused this error, physic problem or not.



ask for any advise. Thanks a lot.
jojojojoost.
Recently,i want to achieve the particles refinement technique in this paper: https://www.sciencedirect.com/science/article/pii/S0021999114004033.
But some error occurs:
1. SetArraySize. saying some are used. I deal this error by allocate a big size in ConfigDomain(). Don't know whether that would cause other error. Anyway, not yet at least.
2. some particles excluded with unknown reason. when particles leave the refinement region, the daugther particles should be erased. So, i deal that particles like the rhopout particles. But it still saying exclued with unknown reason and run exception.
3. boundary particles excluded. I did' t figure out what caused this error, physic problem or not.



ask for any advise. Thanks a lot.
jojojojoost.
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('@jojoost Do you...', 'Gdn_Format::for...') #3 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Html/HtmlEnhancer.php(59): Gdn_Format::mentions('@jojoost Do you...') #4 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Formats/TextExFormat.php(40): Vanilla\Formatting\Html\HtmlEnhancer->enhance('@jojoost Do you...') #5 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/FormatService.php(34): Vanilla\Formatting\Formats\TextExFormat->renderHTML('@jojoost Do you...') #6 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1464): Vanilla\Formatting\FormatService->renderHTML('@jojoost Do you...', 'textex') #7 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1479): Gdn_Format::textEx('@jojoost Do you...') #8 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/helper_functions.php(24): Gdn_Format::to('@jojoost Do you...', '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), 4) #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('1556', 'error-occur-whe...', '') #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('@James Ahhh.i ...', 'Gdn_Format::for...') #3 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Html/HtmlEnhancer.php(59): Gdn_Format::mentions('@James Ahhh.i ...') #4 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/Formats/HtmlFormat.php(74): Vanilla\Formatting\Html\HtmlEnhancer->enhance('@James Ahhh.i ...') #5 /var/www/forums-dual-sphysics-org/library/Vanilla/Formatting/FormatService.php(34): Vanilla\Formatting\Formats\HtmlFormat->renderHtml('@James Ahhh.i ...') #6 /var/www/forums-dual-sphysics-org/library/core/class.format.php(769): Vanilla\Formatting\FormatService->renderHTML('@James Ahhh.i ...', 'html') #7 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1479): Gdn_Format::html('@James Ahhh.i ...') #8 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/helper_functions.php(24): Gdn_Format::to('@James Ahhh.i ...', '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('1556', 'error-occur-whe...', '') #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} |
Comments
Note that the implementation of particle refinement will lead to many changes...
fortunately, i solved the problem. it can run without exception now. But i want to know how the excluding process work. i treat the splitted particles who leaves the refinement area just like the rhopout particles.(just for simple, i think) But i found they still exist in fluid.vtk .
So, i think if it is neccessary to exclude splitted particles in memory.