Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anguilliform Swimmer #24

Open
rohitroxkp7 opened this issue Jul 8, 2022 · 3 comments
Open

Anguilliform Swimmer #24

rohitroxkp7 opened this issue Jul 8, 2022 · 3 comments

Comments

@rohitroxkp7
Copy link

Hey @nickabattista
I have looked at the anguilliform swimmer and went through your publications which are based on the parameter subspaces of the simple Anguilliform swimmer. The Re-in and Re-out depend on the length of the swimmer's body in direct proportion. However, upon closely looking, I noticed that the swimmer's length in certain simulations when I change the Re-in is not exactly the same, instead, It changes quite a bit. [I kept a thread on my screen and actually measured]

The code for testing the swimmer's Lagrangian motion, if studied carefully, reveals that all the endpoints of the head lie in the same straight vertical line instead of moving in a rather circular way. This is changing the length significantly. The interpolation is applied to y only. What about x?. I have attached my revised code in my fork which you may please find in my git hub account. The uploading of simulation results is tough because of the size...however the code can be run.

@rohitroxkp7
Copy link
Author

rohitroxkp7 commented Jul 8, 2022

@nickabattista
Copy link
Owner

nickabattista commented Sep 18, 2022

Hi Rohit,

Thank you for your patience. I have not had a chance to respond to any inquiries. You are correct that the length can vary, unless you modify some of the parameter choices (spring and beam stiffnesses).

Yes, you can also interpolate between the x-values as well. However, if you look at the two states provided, the x-values are the same between them, so if you include the additional interpolation it will not solve this issue. Just a couple things:

  • The purpose of this example was just to create a very idealized, simple anguilliform; it is not meant to provide as robust of dataset as some others (see Borazjani & Sotiropoulos 2009 (link), van Rees et al 2013 (link), or Hamlet et al. 2015 (link) as a few examples).

  • Also, if you include numerous more intermediate interpolate states, you can help preserve the overall length of the swimmer, i.e., interpolate between 200 states rather than 2.

Thanks, and hope that you're enjoying playing with the code!

@rohitroxkp7
Copy link
Author

rohitroxkp7 commented Sep 29, 2022

Instead of creating more interpolate states, I elected to preserve the length of the lagrangian body by one single line of code.
You can find that in lines 99 to 101 in the update non-invariant beams file in the following link:
https://github.com/rohitroxkp7/Swimmer-Modified

There is also a report I generated which can be found in the aforementioned link with two youtube links in it which I am mentioning here as well. The two videos show how your model performs vs the model which I modified for the given input parameters.
I would say amazing work @nickabattista, sir. I have learned a great deal from your resources on interpolation and the IB2d codes. I am also working on parallelizing your code so it can work faster with the parallel computing toolbox in Matlab.
Link to Battista et al model: https://youtu.be/l5gnTvT5rkg
Link to My model: https://youtu.be/pQaPte9zTnU

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants