필터 지우기
필터 지우기

Plotting a fluid field on a grid

조회 수: 3 (최근 30일)
Anton Dor
Anton Dor 2020년 4월 17일
댓글: Anton Dor 2020년 4월 17일
Hi, quite new to Matlab.
I have an assignment to draw 2D fluid fields on a grid.
I have the following mathematical functions of a sea wave:
eta (x,t) - surface function
u (x,z,t) - horizontal component of the water particles velocity
w (x,z,t) - vertical component of the water particles velocity
a_x (x,z,t) - horizontal component of the water particles acceleration
a_z (x,z,t) - vertical component of the water particles acceleration
tseta (x,z,t) - horizontal ordinate of the particles displacement
epsilon(x,z,t) - vertical ordinate of the particles displacement
I have been able to draw these functions and run an animation in respect to time.
What I'm required to do now is to draw for each of these a 2D fluid field on a grid, so that the z axis goes from the seabed (z=h, h is given) up to one wavelength under the sea surface (wavelength is given).
I have been trying to do this with "quiver" but I keep getting results which are not logical.
Any help is appreciated.
Thanks.
  댓글 수: 8
darova
darova 2020년 4월 17일
I mean use code button for code inserting
I still don't understand your question. You attached samle code but i can't run it
Anton Dor
Anton Dor 2020년 4월 17일
I don't understand.
I've uploaded the entire code, can you run it?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Fluid Dynamics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by