Commit 7c45c96
authored
Update integral length scale function (#376)
Discovered a problem with the original function while conducting data analysis of ADV data from Puget Sound.
Updating this function per the textbook definition of the integral time scale - it is listed as Equation 5.3 in this paper
(http://dx.doi.org/10.1098/rsta.2012.0196). The code I'm replacing defined the integral time scale as when the autocorrelation function decays to 1/e of its original value, which is less robust than finding the first zero-crossing of the autocorrelation function, as is standard.
The integral length scale [m] is simply the average flow speed [m/s] multiplied by the integral time scale [s].1 parent 409822d commit 7c45c96
File tree
2 files changed
+21
-11
lines changed- examples/data/dolfyn/test_data
- mhkit/dolfyn/adv
2 files changed
+21
-11
lines changedBinary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
622 | | - | |
| 622 | + | |
623 | 623 | | |
624 | 624 | | |
625 | 625 | | |
626 | | - | |
627 | | - | |
628 | | - | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
| |||
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
644 | 645 | | |
645 | 646 | | |
646 | 647 | | |
647 | 648 | | |
648 | 649 | | |
649 | 650 | | |
650 | 651 | | |
651 | | - | |
652 | 652 | | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
653 | 664 | | |
654 | | - | |
655 | | - | |
| 665 | + | |
656 | 666 | | |
657 | 667 | | |
658 | 668 | | |
| |||
0 commit comments