weymouth / lily-pad

Real-time two-dimensional fluid dynamics simulations in Processing. Initiated by Dr G D Weymouth:
https://github.com/weymouth/
MIT License
162 stars 78 forks source link

Added WaveyDuncan #13

Closed weymouth closed 5 years ago

weymouth commented 5 years ago

BC flag waveInlet was added to Field which is the same as gradientExit but also avoids overwritting the inlet velocity.

Class WaveyDuncan extends Duncan by adding a linear wave velocity profile to the inlet bval. The function takes in the dimensionless wave number kL and wave steepness ak, but I haven't checked how well these correspond to the measured values.