Moment computation on floatings 2
Dear all,
Following the question i've made in the post :
I re-work, once again , my question. I simulate a stability experience, trying to determine the transversal righting moment value as a function of the heel angle of the hull.
To do so, the boat is free to move along Z, letting the code adjust the displacement. The boat can pitch around the Center of Gravity, which is taken in the YZ plane, in order balance the pitch of the hull. When I compute the Moment of Forces on the hull around the X axis, I do not observe no changes in the sign of the computed moment. Why ?
https://forums.dual.sphysics.org/uploads/444/HMPFYW7ZA8UY.pngHere is the example of 2 simulations made. I represent here the converged state of 2 calculations for two heel angles.
Hull in Green :
+114 520 N.m-1
Hull in pink :
+51 286 N.m-1
The gravity forces induces no moment, since it passes by the origin. Only the buyoant forces shall produce a resulting moment. And because the buyoant center swaps from side to side, I expect the sign of the moment to change.
Can somenone help me, please ? What I am missing ?
Thanks for your attention and your kind help
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":"Dea...') #4 /var/www/forums-dual-sphysics-org/applications/vanilla/controllers/class.discussioncontroller.php(197): Gdn_Format::to('[{"insert":"Dea...', 'Rich') #5 /var/www/forums-dual-sphysics-org/library/core/class.dispatcher.php(862): DiscussionController->index('2328', 'moment-computat...', '') #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\/444\/HMPFYW7ZA8UY.png", "name": "image.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":"Dea...') #9 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1730): Vanilla\Formatting\FormatService->renderHTML('[{"insert":"Dea...', 'rich') #10 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1479): Gdn_Format::rich('[{"insert":"Dea...') #11 /var/www/forums-dual-sphysics-org/applications/vanilla/controllers/class.discussioncontroller.php(197): Gdn_Format::to('[{"insert":"Dea...', 'Rich') #12 /var/www/forums-dual-sphysics-org/library/core/class.dispatcher.php(862): DiscussionController->index('2328', 'moment-computat...', '') #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":"Dea...') #4 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/helper_functions.php(24): Gdn_Format::to('[{"insert":"Dea...', '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('2328', 'moment-computat...', '') #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\/444\/HMPFYW7ZA8UY.png", "name": "image.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":"Dea...') #9 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1730): Vanilla\Formatting\FormatService->renderHTML('[{"insert":"Dea...', 'rich') #10 /var/www/forums-dual-sphysics-org/library/core/class.format.php(1479): Gdn_Format::rich('[{"insert":"Dea...') #11 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/helper_functions.php(24): Gdn_Format::to('[{"insert":"Dea...', '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('2328', 'moment-computat...', '') #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":"I h...') #4 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/helper_functions.php(24): Gdn_Format::to('[{"insert":"I h...', '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('2328', 'moment-computat...', '') #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":"Yes...') #4 /var/www/forums-dual-sphysics-org/applications/vanilla/views/discussion/helper_functions.php(24): Gdn_Format::to('[{"insert":"Yes...', '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('2328', 'moment-computat...', '') #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
I have made a few tests, trying to understand how are computed the moment using computeforce.Exe.
Given these 2 simulations cases, which differ only by their initial rotation along X. Movements of the floatings are, in the two cases, limited to a Z translation ( see below), I want to compute the moment of the Archimedian force along ... watever....
<floating mkbound="20">
<massbody value="1829" />
<center x="-0.492" y="0.0" z="1.385" />
<translationDOF x="0" y="0" z="1" />
<rotationDOF x="0" y="1" z="0" />
</floating>
Small maths .... I writhe the Buyoancy moment as M (a,O) in reference with "O", the origin of the referential, "ᴧ" is the cross product. Bold letters represent fthe forces a : buyoancy w : weight
∑ M = M (a,O) + M (g,O)
Here, CoG is vertical to the origin so M (g,O) = O
∑ M = M (a,O)
= (OG + GA)ᴧa
= OGᴧa + GAᴧa
∑ M = M (a,G) + GAᴧa
It seems that computeforce.Exe computes only OGᴧa. In that case, this routine is not able to compute the total moment applied on floatings. It lacks one term, GAᴧa.
Is there any output of the coordinates of the Center of Buoyancy ?
Thanks for your attention and your kind help.
Yes, it seems there is an issue there.
Can you email us using dualsphysics@gmail.com so we will check it carefully before next release
Regards