Animation of ocean wave surface. How can I create a filled waterbody with oscillating surface?
Show older comments
Hey out there.
I am working on wave modelling and wave propagation trough the sea surface. A numerical wave model, generates a matlab file, representing the oscillation of the sea surface. The mentioned matlab file, is a 3D matrix where each layer is a time step- Imagine a wave traveling along a confined wave flume, moving from an end to the other.
The same file represents the water surface. However I need to show a nice animation file, representing the confined water body, with fixed later walls but oscillating top (the surface, with the traveling wave). That is a box with fixed lateral coordinates and bottom (coinciding with flume bed) but where the surface of that body is moving, as the animation presents each frame of the animation.
So: if I know the lower coordinates of the vertical wall, in other words the water depth where water intercepts bottom level, how can create this animation??
Imagine I want to draw the first time-step. Available data is:
- Two matrices, of size S, representing X and Y coordinates
- A matrix W, of size S, representing the surface elevation for time t=0.
by issuing:
mesh(X,Y,W) I only see the water surface.
What I want is something like:
meshfill(X,Y,[W 0])
so that would draw a curtain at the boundary of matrix W, down to a reference level (in this case 0).
Any help is greatly appreciated. Thank you
Marco
Answers (0)
Categories
Find more on Oceanography and Hydrology in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!