Coastal engineering involves the design and protection of coastal areas against natural hazards. Theoretically analyze the processes of wave transformation, including refraction, diffraction, and breaking, as waves propagate from deep to shallow waters. Discuss the mathematical models used to describe these processes and their application in the design of coastal structures such as breakwaters and seawalls. How do engineers account for the variability and uncertainty in wave characteristics when developing these models?