How to disable calculating net moments

30 views
Skip to first unread message

Oscar Jin

unread,
May 7, 2025, 2:48:07 PMMay 7
to IBAMR Users
Hi all,
I'm not simulating the self-propelled swimming of a fish, and found that the fish was not swimming straight forward, i.e. it had a deviation in the y direction. I would suppose the total moments on the fish were not zero when it started, when the motion was unstable. My friend told me there's a way to force the moments to zero in IBAMR. How can I do that? Thanks.

Screenshot 2025-05-07 at 1.44.49 PM.png

Amneet Bhalla

unread,
May 12, 2025, 12:40:01 AMMay 12
to ibamr...@googlegroups.com
You can set the y translational momentum to zero in the input file, e.g.,  change this line


to 

calculate_translational_momentum = 1,0,0



--
You received this message because you are subscribed to the Google Groups "IBAMR Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ibamr-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ibamr-users/6a0c9314-e2e2-4afc-83de-9742187a68c8n%40googlegroups.com.


--
--Amneet 



Oscar Jin

unread,
May 27, 2025, 10:52:52 AMMay 27
to IBAMR Users
Hi Amneet,

I'm using the IBFE method. Are there any similar flag options? Thanks!

Boyce Griffith

unread,
May 27, 2025, 11:07:42 AMMay 27
to IBAMR Users

On May 27, 2025, at 10:52 AM, Oscar Jin <oscarj...@gmail.com> wrote:

Hi Amneet,

I'm using the IBFE method. Are there any similar flag options? Thanks!

I don’t know of a canned way to do this in IBAMR, but it is easy to add point wise forces to IBFE models. In this case, I think that you should be able to add an additional uniform body force that acts to constrain unwanted y-displacements of the COM. Let me know if it is unclear how to get started. I think that the main difficulty will be in computing the position of the COM.

Reply all
Reply to author
Forward
0 new messages