{"id":66,"date":"2010-09-10T00:56:50","date_gmt":"2010-09-10T00:56:50","guid":{"rendered":"http:\/\/morganredfield.com\/blog\/?p=66"},"modified":"2022-11-21T01:22:21","modified_gmt":"2022-11-21T01:22:21","slug":"surfing-the-shockwave","status":"publish","type":"post","link":"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/","title":{"rendered":"Surfing the shockwave"},"content":{"rendered":"<p>I&#8217;m went on a road trip to San Diego a few weeks ago. When I got there I went straight to the beach for some hard core surfing. It was cloudy, but I ended up having fun anyway.<\/p>\n<p>The thing about surfing is that it really makes you think about waves. Is this next wave worth catching? What about that one? But when I&#8217;m just sitting out in the water waiting for a wave, I start thinking about waves themselves.<\/p>\n<p>The question that came to my mind was: why do waves crest as the get closer to the beach? When waves are far from shore, they approximate a sine wave. The amplitude of the wave is the distance away from sea level.<\/p>\n<p><a href=\"https:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/wave-013.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-69\" title=\"Wave\" src=\"https:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/wave-013-300x75.jpg\" alt=\"A wave in deep water.\" width=\"300\" height=\"75\" srcset=\"https:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/wave-013-300x75.jpg 300w, https:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/wave-013.jpg 800w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><br \/>\nThe equation for this wave is <span class=\"katex-eq\" data-katex-display=\"false\">D = D_0 + A\\sin(\\omega t-kx) <\/span>. D here is depth, and <span class=\"katex-eq\" data-katex-display=\"false\">D_0 <\/span> is sea level. A is the maximum height of the wave, <span class=\"katex-eq\" data-katex-display=\"false\">\\omega <\/span> is the angular frequency <span class=\"katex-eq\" data-katex-display=\"false\">2\\pi f <\/span>, t is the time, k is the wave number <span class=\"katex-eq\" data-katex-display=\"false\">2\\pi \/\\lambda <\/span>, and x is the distance away from shore.<\/p>\n<p>As you can see in that equation, the depth varies with time and distance. The distance here doesn&#8217;t really have anything to do with the beach though. What could be causing the waves to break? So I did some research.<\/p>\n<p>According to wikipedia, waves on a beach are <a href=\"http:\/\/en.wikipedia.org\/wiki\/Shock_wave#Due_to_nonlinear_steepening\">shock waves<\/a>. That&#8217;s right, just like the shock wave from a plane. These shock waves work slightly differently.<\/p>\n<p>Here&#8217;s what happens:<\/p>\n<p>The speed of a wave in water depends on the depth of the water. When a wave is in deep water far from the beach, slight changes in depth due to the wave itself have a tiny effect. When the wave nears the beach, the water is shallower and the wave itself has a larger effect.<\/p>\n<p>Near the beach, the peaks of a wave travel faster than the troughs. That means that high points catch up to low points. The wave loses its sinusoidal shape and starts turning into a sawtooth wave, and sawtooth waves have discontinuities. Discontinuities manifest themselves strangely in nature. In this case, they&#8217;re manifested as the crests of the wave.<\/p>\n<figure id=\"attachment_68\" aria-describedby=\"caption-attachment-68\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/shockwave.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-68\" title=\"shockwave\" src=\"https:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/shockwave-300x60.jpg\" alt=\"Shockwave\" width=\"300\" height=\"60\" srcset=\"https:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/shockwave-300x60.jpg 300w, https:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/shockwave.jpg 1000w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-68\" class=\"wp-caption-text\">The shock appears as the wave travels to the right.<\/figcaption><\/figure>\n<p>I modeled this by changing the wave number, k as a function of the previous amplitude. Basically, I assumed that the water got shallower as the wave moved to the right. Since I only changed the wave number and left the frequency the same, the speed of the wave changed with amplitude.<\/p>\n<p>The problem with my approach is that I changed wave speed linearly, and shock waves are by nature a non-linear problem. My model worked well for small changes in the wavespeed, but large changes caused a breakdown that manifested itself as spurious peaks. I could make a better model, but right now I don&#8217;t really feel like going through all of the calculus that would require. The <a href=\"http:\/\/en.wikipedia.org\/wiki\/Nonlinear_acoustics\">KZK equation<\/a> is for physicists.<\/p>\n<figure id=\"attachment_67\" aria-describedby=\"caption-attachment-67\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/model_breakdown.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-67\" title=\"model_breakdown\" src=\"https:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/model_breakdown-300x60.jpg\" alt=\"Model Breakdown\" width=\"300\" height=\"60\" srcset=\"https:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/model_breakdown-300x60.jpg 300w, https:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/model_breakdown.jpg 1000w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-67\" class=\"wp-caption-text\">You can&#8217;t model a non-linear process very well with linear tools.<\/figcaption><\/figure>\n<p><a href=\"https:\/\/github.com\/mogar\/PuzzleViz\/tree\/main\/shock_waves\">Find the code here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m went on a road trip to San Diego a few weeks ago. When I got there I went straight to the beach for some hard core surfing. It was cloudy, but I ended up having fun anyway. The thing about surfing is that it really makes you think about waves. Is this next wave &hellip; <a href=\"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Surfing the shockwave&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7,6],"class_list":["post-66","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-math","tag-processing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Surfing the shockwave - Theory and Practice<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Surfing the shockwave - Theory and Practice\" \/>\n<meta property=\"og:description\" content=\"I&#8217;m went on a road trip to San Diego a few weeks ago. When I got there I went straight to the beach for some hard core surfing. It was cloudy, but I ended up having fun anyway. The thing about surfing is that it really makes you think about waves. Is this next wave &hellip; Continue reading &quot;Surfing the shockwave&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/\" \/>\n<meta property=\"og:site_name\" content=\"Theory and Practice\" \/>\n<meta property=\"article:published_time\" content=\"2010-09-10T00:56:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-21T01:22:21+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/wave-013-300x75.jpg\" \/>\n<meta name=\"author\" content=\"morgan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"morgan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/\"},\"author\":{\"name\":\"morgan\",\"@id\":\"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd\"},\"headline\":\"Surfing the shockwave\",\"datePublished\":\"2010-09-10T00:56:50+00:00\",\"dateModified\":\"2022-11-21T01:22:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/\"},\"wordCount\":544,\"publisher\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd\"},\"image\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/wave-013-300x75.jpg\",\"keywords\":[\"math\",\"Processing\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/\",\"url\":\"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/\",\"name\":\"Surfing the shockwave - Theory and Practice\",\"isPartOf\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/wave-013-300x75.jpg\",\"datePublished\":\"2010-09-10T00:56:50+00:00\",\"dateModified\":\"2022-11-21T01:22:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/#primaryimage\",\"url\":\"http:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/wave-013-300x75.jpg\",\"contentUrl\":\"http:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/wave-013-300x75.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/morganredfield.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Surfing the shockwave\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/morganredfield.com\/blog\/#website\",\"url\":\"https:\/\/morganredfield.com\/blog\/\",\"name\":\"Theory and Practice\",\"description\":\"Exploring life through science and art.\",\"publisher\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/morganredfield.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd\",\"name\":\"morgan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0da7fa0a0a07a8497d51de4300111d978b649e254fc1afa26dc67f3b83d24c38?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0da7fa0a0a07a8497d51de4300111d978b649e254fc1afa26dc67f3b83d24c38?s=96&d=mm&r=g\",\"caption\":\"morgan\"},\"logo\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/morganredfield.com\/blog\/author\/morgan\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Surfing the shockwave - Theory and Practice","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/","og_locale":"en_US","og_type":"article","og_title":"Surfing the shockwave - Theory and Practice","og_description":"I&#8217;m went on a road trip to San Diego a few weeks ago. When I got there I went straight to the beach for some hard core surfing. It was cloudy, but I ended up having fun anyway. The thing about surfing is that it really makes you think about waves. Is this next wave &hellip; Continue reading \"Surfing the shockwave\"","og_url":"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/","og_site_name":"Theory and Practice","article_published_time":"2010-09-10T00:56:50+00:00","article_modified_time":"2022-11-21T01:22:21+00:00","og_image":[{"url":"http:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/wave-013-300x75.jpg","type":"","width":"","height":""}],"author":"morgan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"morgan","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/#article","isPartOf":{"@id":"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/"},"author":{"name":"morgan","@id":"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd"},"headline":"Surfing the shockwave","datePublished":"2010-09-10T00:56:50+00:00","dateModified":"2022-11-21T01:22:21+00:00","mainEntityOfPage":{"@id":"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/"},"wordCount":544,"publisher":{"@id":"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd"},"image":{"@id":"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/#primaryimage"},"thumbnailUrl":"http:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/wave-013-300x75.jpg","keywords":["math","Processing"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/","url":"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/","name":"Surfing the shockwave - Theory and Practice","isPartOf":{"@id":"https:\/\/morganredfield.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/#primaryimage"},"image":{"@id":"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/#primaryimage"},"thumbnailUrl":"http:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/wave-013-300x75.jpg","datePublished":"2010-09-10T00:56:50+00:00","dateModified":"2022-11-21T01:22:21+00:00","breadcrumb":{"@id":"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/#primaryimage","url":"http:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/wave-013-300x75.jpg","contentUrl":"http:\/\/morganredfield.com\/blog\/wp-content\/uploads\/2010\/09\/wave-013-300x75.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/morganredfield.com\/blog\/2010\/09\/surfing-the-shockwave\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/morganredfield.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Surfing the shockwave"}]},{"@type":"WebSite","@id":"https:\/\/morganredfield.com\/blog\/#website","url":"https:\/\/morganredfield.com\/blog\/","name":"Theory and Practice","description":"Exploring life through science and art.","publisher":{"@id":"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/morganredfield.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd","name":"morgan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0da7fa0a0a07a8497d51de4300111d978b649e254fc1afa26dc67f3b83d24c38?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0da7fa0a0a07a8497d51de4300111d978b649e254fc1afa26dc67f3b83d24c38?s=96&d=mm&r=g","caption":"morgan"},"logo":{"@id":"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/image\/"},"url":"https:\/\/morganredfield.com\/blog\/author\/morgan\/"}]}},"_links":{"self":[{"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/posts\/66","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/comments?post=66"}],"version-history":[{"count":6,"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/posts\/66\/revisions"}],"predecessor-version":[{"id":660,"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/posts\/66\/revisions\/660"}],"wp:attachment":[{"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/media?parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/categories?post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/tags?post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}