visualSHysics foamsimulator
Hi to everybody.
I' tryng to use Freecad Pre19 to make some first analysis, and I should like to render results with visualSHysics in Blender.
Anything seams to work well, except FoamSimulator: it fails saying that .xml file isn't of the right release.
Because Freecad add-on release is v4 (or v4.4, I don't know exactly) , is this the problem?
Many thanks
Piero
Comments
Hi Piero,
could you please share a screenshot of the error message?
Regards!
Thank you for your fast replay.
Here is the copy of command shell (it was made in Ubuntu 18.04, using Blender 2.91):
I tried two times to start the Run Foam Simulation command, but I don't know why the error message was duplicated for each execution attempt.
Again, I'm attaching the starting Float2_def.xml file, made using Freecad 0.19 pre.
---------------------------------------------------------------------------------------------------------------------------------------------------------
-pici->blender
Read prefs: /home/pici/.config/blender/2.91/config/userpref.blend
found bundled python: /snap/blender/65/2.91/python
Register
Read blend: /home/pici/FreeCAD_test/Float2/Float2.blend
Python: Traceback (most recent call last):
File "/home/pici/.config/blender/2.91/scripts/addons/VisualSPHysics.py", line 500, in execute
showPopup("Error: the XML cannot be loaded. Make sure to choose the XML file generated by the gencase tool.", "Error", "ERROR")
File "/home/pici/.config/blender/2.91/scripts/addons/VisualSPHysics.py", line 194, in showPopup bpy.context.window_manager.popup_menu(draw, title = title, icon = icon)
File "/snap/blender/65/2.91/scripts/modules/bpy_types.py", line 159, in popup_menu draw_func(popup, bpy.context)
File "/home/pici/.config/blender/2.91/scripts/addons/VisualSPHysics.py", line 193, in draw self.layout.label(text)
TypeError: UILayout.label(): required parameter "text" to be a keyword argument!
location: <unknown location>:-1
Errore: Python: Traceback (most recent call last):
File "/home/pici/.config/blender/2.91/scripts/addons/VisualSPHysics.py", line 500, in execute
showPopup("Error: the XML cannot be loaded. Make sure to choose the XML file generated by the gencase tool.", "Error", "ERROR")
File "/home/pici/.config/blender/2.91/scripts/addons/VisualSPHysics.py", line 194, in showPopup
bpy.context.window_manager.popup_menu(draw, title = title, icon = icon)
File "/snap/blender/65/2.91/scripts/modules/bpy_types.py", line 159, in popup_menu
draw_func(popup, bpy.context)
File "/home/pici/.config/blender/2.91/scripts/addons/VisualSPHysics.py", line 193, in draw
self.layout.label(text)
TypeError: UILayout.label(): required parameter "text" to be a keyword argument!
location: <unknown location>:-1
Python: Traceback (most recent call last):
File "/home/pici/.config/blender/2.91/scripts/addons/VisualSPHysics.py", line 500, in execute
showPopup("Error: the XML cannot be loaded. Make sure to choose the XML file generated by the gencase tool.", "Error", "ERROR")
File "/home/pici/.config/blender/2.91/scripts/addons/VisualSPHysics.py", line 194, in showPopup
bpy.context.window_manager.popup_menu(draw, title = title, icon = icon)
File "/snap/blender/65/2.91/scripts/modules/bpy_types.py", line 159, in popup_menu
draw_func(popup, bpy.context)
File "/home/pici/.config/blender/2.91/scripts/addons/VisualSPHysics.py", line 193, in draw
self.layout.label(text)
TypeError: UILayout.label(): required parameter "text" to be a keyword argument!
location: <unknown location>:-1
Errore: Python: Traceback (most recent call last):
File "/home/pici/.config/blender/2.91/scripts/addons/VisualSPHysics.py", line 500, in execute
showPopup("Error: the XML cannot be loaded. Make sure to choose the XML file generated by the gencase tool.", "Error", "ERROR")
File "/home/pici/.config/blender/2.91/scripts/addons/VisualSPHysics.py", line 194, in showPopup
bpy.context.window_manager.popup_menu(draw, title = title, icon = icon)
File "/snap/blender/65/2.91/scripts/modules/bpy_types.py", line 159, in popup_menu
draw_func(popup, bpy.context)
File "/home/pici/.config/blender/2.91/scripts/addons/VisualSPHysics.py", line 193, in draw
self.layout.label(text)
TypeError: UILayout.label(): required parameter "text" to be a keyword argument!
location: <unknown location>:-1
Hi Piero, I think that the problem is that you are using the Float2_Def.xml file instead of the Float2.xml file generated by the gencase tool. The second one has some calculated constants needed for the foam simulation.