The Wave Calculator GUI is a MATLAB-based GUI tool designed to compute various wave parameters such as wave length, wave speed, wave height, and others based on user-provided inputs. The tool provides an interactive interface for entering wave properties and displays calculated results dynamically.
This application is useful for students, researchers, and engineers working in fields such as oceanography, coastal engineering, and marine structures.
-
Interactive GUI:
A user-friendly interface with input fields, dropdown menus, and buttons for calculations. -
Customizable Inputs:
Enter wave height, period or frequency, wave angle, and local water depth. -
Calculated Parameters:
- Wave length (
L
) - Wave number (
k
) - Wave speed (
C
) - Group velocity (
Cg
) - Shoaling coefficient (
Ks
) - Refraction coefficient (
Kr
) - Resultant wave height (
H
) - Bottom orbital velocity (
u_b
) - more Parameters
- Wave length (
-
Error Handling:
Input validation ensures that only valid numeric values are accepted. Errors are displayed via pop-up dialogs. -
Reset Functionality:
Resets all inputs and outputs to their default values.
Users can input or select:
- Wave Height (m): Enter the initial wave height (default:
1.0
). - Period or Frequency:
- Choose between period (seconds) or frequency (Hz).
- Enter the corresponding value (default:
12.0
seconds).
- Wave Angle (°): Enter the wave propagation angle (default:
0.0
). - Local Depth (m): Enter the depth of the water body (default:
5.0
).
- Calculate:
Computes all wave parameters using the entered inputs. Results are displayed in the results section. - Reset:
Clears all results and restores default input values.
The results section displays the calculated wave parameters in a read-only format. Parameters include wave length, wave speed, and more.
- Download or clone this repository.
- Open the
waveCalculatorGUI.m
file in MATLAB. - Run the script to launch the GUI.
This program requires MATLAB R2017b or later. No additional toolboxes are necessary.
- Run the script in MATLAB to launch the GUI.
- Enter the desired wave parameters in the input fields.
- Click Calculate to compute wave parameters.
- Review results in the output section.
- Click Reset to clear fields and start a new calculation.
- Replace placeholder functions (
waveNumber
,groupVelocity
, etc.) with accurate scientific equations. - Add visualization of wave characteristics (e.g., wave propagation or refraction).
- Implement more advanced error handling and validation.
This project is licensed under the MIT License. See the LICENSE
file for details.
For questions or feedback, please reach out to pouyazarbipour@gmail.com.