Error encountered while using MeasureTools in FreeCAD
Hello, I'm a fairly new user to DualSPHysics. I'm doing a regular wave simulation of a wave tank and I was trying to determine the wave elevation at a specific length along the wave tank. I was following the video guide of "DualSPHysics Plotting Height" and I was tweaking around with the values in the "grid of points" button.
After the first export, I tried changing some values of the grid points but now it kept giving me errors. The error text shown in the error window:
17:49:32 File "C:\Users\TYK\AppData\Roaming\FreeCAD\Mod\DesignSPHysics-master\mod\widgets\postprocessing\measuretool_dialog.py", line 173, in on_mtool_export 17:49:32 measuretool_export(export_parameters, Case.the(), self.post_processing_widget) 17:49:32 File "C:\Users\TYK\AppData\Roaming\FreeCAD\Mod\DesignSPHysics-master\mod\post_processing_tools.py", line 199, in measuretool_export 17:49:32 exported_parts: int = get_total_exported_parts_from_disk(case.get_out_folder_path()) 17:49:32 File "C:\Users\TYK\AppData\Roaming\FreeCAD\Mod\DesignSPHysics-master\mod\file_tools.py", line 54, in get_total_exported_parts_from_disk 17:49:32 return int(re.search("Part_(.*).bi4", files_glob[-1]).group(1)) 17:49:32 IndexError: list index out of range 17:49:59 Traceback (most recent call last): 17:49:59 File "C:\Users\TYK\AppData\Roaming\FreeCAD\Mod\DesignSPHysics-master\mod\widgets\postprocessing\measuretool_dialog.py", line 173, in on_mtool_export 17:49:59 measuretool_export(export_parameters, Case.the(), self.post_processing_widget) 17:49:59 File "C:\Users\TYK\AppData\Roaming\FreeCAD\Mod\DesignSPHysics-master\mod\post_processing_tools.py", line 199, in measuretool_export 17:49:59 exported_parts: int = get_total_exported_parts_from_disk(case.get_out_folder_path()) 17:49:59 File "C:\Users\TYK\AppData\Roaming\FreeCAD\Mod\DesignSPHysics-master\mod\file_tools.py", line 54, in get_total_exported_parts_from_disk 17:49:59 return int(re.search("Part_(.*).bi4", files_glob[-1]).group(1)) 17:49:59 IndexError: list index out of range 17:59:20 Traceback (most recent call last):
I tried closing and reopening FreeCAD but the values of the grid points that generated the error stayed, can't change it. I have no idea what to do now. Any help is appreciated, thanks
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":"Hel...') #4 /var/www/forums-dual-sphysics-org/applications/vanilla/controllers/class.discussioncontroller.php(197): Gdn_Format::to('[{"insert":"Hel...', 'Rich') #5 /var/www/forums-dual-sphysics-org/library/core/class.dispatcher.php(862): DiscussionController->index('2592', 'error-encounter...', '') #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":"Hel...') #4 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/helper_functions.php(24): Gdn_Format::to('[{"insert":"Hel...', '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('2592', 'error-encounter...', '') #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":"If ...') #4 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/helper_functions.php(24): Gdn_Format::to('[{"insert":"If ...', '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('2592', 'error-encounter...', '') #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
If you are a beginner, but you have not followed any of our courses before where we use FreeCAD: https://dual.sphysics.org/training/
then it is better if you start working directly with the pacakge:
Regards