nickabattista / IB2d

An easy to use immersed boundary method in 2D, with full implementations in MATLAB and Python that contains over 75 built-in examples, including multiple options for fiber-structure models and advection-diffusion, Boussinesq approximations, and/or artificial forcing.
GNU General Public License v3.0
164 stars 90 forks source link

Heat tube example under asymmetric deformation #28

Open dongdong970310 opened 1 year ago

dongdong970310 commented 1 year ago

Use the example of heat tube to introduce pumping by changing the spring length. Try to introduce a specific deformation only along one side by establishing target points at other side. However the code cannot run under this situation. Would be great if there is any explanations or insight into this problem. Thanks.

nickabattista commented 1 year ago

I'm not sure which specific example you're referring to; however, now that you're combining boundary motion through changing spring resting lengths with holding boundaries nearly fixed using target points there are numerous things that could have went awry. Without knowing exactly what you're doing, my best guess would be that the points that you're trying to hold nearly stationary using target points (say the bottom of the tube) are also simultaneously getting pulled across the heart tube by changing the resting lengths of the springs that attach the bottom of the tube to the top of the tube (assuming the top is what you're trying to introduce the specific deformation to).

If you are currently using changing resting lengths of springs to still induce deformations while using target points to hold one side nearly fixed, I would suggest getting rid of the spring connections between the sides and inducing boundary motion by changing target point positions on the one side only.