Pipe Flow
Update ↓
Wow, it has been a while since I checked this out! This was a COVID project for me in undergrad where I frankly just wanted an internal flow simulator and found an app online to modify. Looking back at my writing and the project itself, I would probably give myself a C+, and that is being generous. I am keeping the writing as it is for posterity. I find it very endearing to see what I used to do and hope it serves as an example of improvement over time.
Speaking of that improvement, I have decided to make some updates to the app itself now that I am a bit more capable at what I do. I have made the calculations significantly faster by assigning float-specific arrays where applicable, reworking a couple of calls to work better together, and refining the resolution. I have also added the ability to change the resolution and included some pre-made obstacles. The obstacles should all work with the base initial conditions, so feel free to mess with them and break it. You can break it quite quickly on the forward-facing step!
Foreword ↓
What is happening? ↓
How was this made? ↓
Disclaimer ↓
Copyright 2013, Daniel V. Schroeder
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of the author shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization.
References ↓
- Dr. Schroeder’s Website
- Dr. Shroeder’s Simulation
- Other JavaScript Apps
- Dr. Shroeder’s Paper on LBM
- Workshop on how to create apps
- Dr. Shroeder’s Book on JavaScript Physics
- Dr. Wagner’s introduction to LBM
- My fluid mechanics book: Fundamentals of Fluid Mechanics. B. R. Munson, T. H. Okiishi, W. W. Huebsch, and A. P.Rothmayer. Hoboken, NJ: John Wiley & Sons, Inc., 2013.
- 12 Steps to Navier Stokes by Dr. Barba
- While I have used many CFD guides, I personally think this one by Dr. Makky is the best for my level of understanding.
- Also, this introduction by Dr. Bhaskaran and Dr. Collins is fantastic
- W3Schools’ extensive resources on web development
Lastly, thank you to my professors who have given me the foundation of knowledge and interest to learn more about all of this.