26
3 Basics of Geophysical Fluid Dynamics
3.6.3 Sample Script
The SciLab script for this exercise, called “interference.sce” can be found in the
folder “Exercise 2” on the CD-ROM.
3.6.4 A Glimpse of Results
Figure 3.4 shows a snapshot result for the last scenario. It took me a while to achieve
what I wanted in terms of graphical display and, perhaps, the reader will come up
with a better solution. It can be seen that, at some locations, wave disturbances add
up to create a signal of doubled amplitude, whereas, in other regions, the waves
compensate each other such that the resultant wave signal almost vanishes.
Fig. 3.4 Snapshot results of Scenario 6
3.6.5 A Rule of Thumb
The wave period should be resolved by at least 10 time steps. Otherwise details of
the wave evolution can get lost. In the following SciLab script, I used 20 time steps
in a period. Adequate choices of time steps and grid spacings play an important role
in the modelling of dynamical processes in fluids
Précédent

- 40/185

Suivant