Centre of polar surface plot in MATLAB

Hi,
I'm working on a project to model the displacement of a circular trampoline when a load is applied to an arbitrary patch.
I've used pol2cart to wrap initially rectangular arrays into a circle. The displacement for each point in the mesh is calculated by iteration, as an average of the four adjacent points from the previous iteration:
displace_new(rad,ang) = (displace_old(rad+1,ang) + displace_old(rad-1,ang) + displace_old(rad,ang+1) + displace_old(rad,ang-1))/4;
I've got some additional code to set the perimeter displacement to zero, 'stitch' the edges together smoothly, and account for a rip in the trampoline across which stress can't be transferred, which all seems to work nicely.
However, I'm having issues transmitting the displacement across the centre of the circle - as you can see from the screenshots it's behaving like a rectangular surface that's been wrapped around in a circle rather than a true circular surface.
I've been told it should be possible to sort out the centre just by setting the displacement of all the zero-radius (rad=1) points to the mean of all the points one step outwards (rad=2):
if rad == 1 displace_new(rad,ang) = mean(displace_old(rad+1,:)); end
but this isn't working for me - what am I doing wrong?
Thanks in advance!

댓글 수: 2

Curtis Garner
Curtis Garner 2022년 2월 15일
It looks like your 'center' edge on your rectangle is being constrained more than it should be. What method are you using to enforce that all of these point have the same vertical displacement?
DGM
DGM 2022년 2월 15일
편집: DGM 2022년 2월 15일
If you're assuming that your rectangular representation has uniform density, then that would mean that the center of the trampoline is excessively heavy (and probably excessively stiff), simply due to the mesh density. That's just a guess.
EDIT: I totally fell for that.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Polar Plots에 대해 자세히 알아보기

제품

질문:

2015년 3월 27일

편집:

DGM
2022년 2월 15일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by