Hello mfasano
Thank you very much for your hint! I didn't know that I have to set the initial values each time the case is opened. It works fine now. It was due to the absence of the derivative tolerance.
Best regards
Hai Li
Moderator: bernd
Code: Select all
'Traceback (most recent call last):
14:21:41 File "E:\FreeCAD\0.19\FreeCAD_0.19.22522-Win-Conda_vc14.x-x86_64\Mod\MBDynFCwb-asm4\MBDyn_guitools\External_Ui\gravity_field.py", line 29, in accept
14:21:41 createGravity(grav_parameters)
14:21:41 File "E:\FreeCAD\0.19\FreeCAD_0.19.22522-Win-Conda_vc14.x-x86_64\Mod\MBDynFCwb-asm4\MBDyn_objects\MBDynObjectFactory\LoadsCreation.py", line 7, in createGravity
14:21:41 MBDynGravity(gravity, grav_parameter)
14:21:41 TypeError: __init__() takes 2 positional arguments but 3 were given
Code: Select all
Traceback (most recent call last):
14:36:42 File "E:\FreeCAD\0.19\FreeCAD_0.19.22522-Win-Conda_vc14.x-x86_64\Mod\MBDynFCwb-asm4\MBDyn_guitools\External_Ui\MBDynFreeCAD.py", line 163, in outputMessage
14:36:42 proc = subprocess.Popen(args)
14:36:42 File "E:\FreeCAD\0.19\FreeCAD_0.19.22522-Win-Conda_vc14.x-x86_64\bin\lib\subprocess.py", line 854, in __init__
14:36:42 self._execute_child(args, executable, preexec_fn, close_fds,
14:36:42 File "E:\FreeCAD\0.19\FreeCAD_0.19.22522-Win-Conda_vc14.x-x86_64\bin\lib\subprocess.py", line 1307, in _execute_child
14:36:42 hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
14:36:42 OSError: [WinError 87] The parameter is incorrect
I suspect this is due to gravity.MBDyn - MultiBody Dynamics 1.7.3
configured on Oct 15 2017 at 15:04:55
Copyright 1996-2017 (C) Paolo Mantegazza and Pierangelo Masarati,
Dipartimento di Ingegneria Aerospaziale <http://www.aero.polimi.it/>
Politecnico di Milano <http://www.polimi.it/>
MBDyn is free software, covered by the GNU General Public License,
and you are welcome to change it and/or distribute copies of it
under certain conditions. Use 'mbdyn --license' to see the conditions.
There is absolutely no warranty for MBDyn. Use "mbdyn --warranty"
for details.
reading from file "E:\1st.mbd"
Creating scalar solver with Naive linear solver
Reading Structural(1)
Reading Structural(2)
Reading Body(1)
Reading Body(2)
Reading Joint(1)
Reading Joint(2)
error: 1 elements are missing;
1 Force
An error occurred during the execution of MBDyn; aborting...
I made changes that I think will work(commit 153). I will not be able to test it until tonight.
Code: Select all
joint: 3, in line,
3,
position, null,
orientation, , 0.0, 0.0, 0.0,
2,
offset, 0.0, 0.0, -3.0;
There is a bug with the offset for the inline joint I just got fixed. I have not updated it. I should probably test it more before committing it. The offset is optional, but it may work best to have it. The MBDyn input manual T-Gannier referred to has a nice diagram to help explain how the inline joint works. Most joints use the node position (Programmed to be the center of mass for the rigid bodies.) and a position often away from the node position given in a reference frame relative the the node's frame. I think the offset could have been named "position" for the second node.carno wrote: ↑Tue Nov 03, 2020 2:14 pmOkay, I will try new commit.
Another feedback is, it is putting a word 'offset' in the 'In-line Joint' script. This seems to be a syntax error. Let me know if I am wrong.
Code: Select all
joint: 3, in line, 3, position, null, orientation, , 0.0, 0.0, 0.0, 2, offset, 0.0, 0.0, -3.0;