Skip to content
Snippets Groups Projects

Bugfix inc hyd

Merged Alexander BREUGEM requested to merge bugfixIncHyd into main
All threads resolved!

This fixes issues #972 (closed) The solution is to allow vertical diffusion even in cells that are distorted. If not, effects of bottom friction are correctly taken into account and velocities are completely wrong. I think that for prisms, it is not a problem to allow vertical diffusion, as this happens in a vertical profile only, so it should not be affected by hydrostatically inconsistent elements.

A few notes: I only tested for prismatic elements, not for tetraëders (so i do not know whether also changes are needed to mt02_tt.f). I only tested with hydrostatic flow.

I found that the V test case is affected. Now some spurious currents (with velocities 1E-7 m/s) are generated. That's why I changed the coefficients in the vnv.py file. the currents are weaker though than without the use of the hydrostatic inconsistencies filter.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Hello Alexander,

    Thanks for you suggestion. I have to think deeper but I am quite busy for the next 10 days.

    If your suggestion modifies the results, it is normal that the values of the epsilons have changed. You should first update the reference files and then the epsilons should better work (in particular the comparisons between results in scalar or parallel and the new reference file). When updating the reference file, do not forget to only keep the last time step (see run_telfile.py alter -s -1 etc).

    Maybe other reference files of the TELEMAC-3D examples should be updated as well (and epsilons also). You should run the validation with tag "telemac3d" to check: validate_telemac.py --tags='telemac3d' as described in the Software Quality Plan (see e.g. the checklist in appendix C).

    Chi-Tuân

  • Hi Chi-Tuan,

    I have had a further look at this case. I wrote out the matrix with and without the fix in the V case, and found no differences in that, so the results should be the same. I think the different epsilons were probably due to a compiler setting (-ffast-math). I will revert the epsilons, rerun the validation for telemac3d and if it is then ok, update the merge request.

    Note that there are some interesting things in the V test case. The test case is intended to show, that no flow develops in this configuration, but actually there is some flow. Strangely, the flow disappears by setting horizontal diffusion for tracers to zero.

    Kind regards

    Alexander

    P.s. Do you know how much disk space a full test run takes? I recently had a crash because a partition on our cluster was completely filled after trying to run a test.

  • added 76 commits

    Compare with previous version

  • In the modified headline, after "Application of the filter leads to completely different tidal signal with and without", you can add the argument given in the additionnal comments: (bottom friction not taken into account correctly)

  • added 1 commit

    • 12b150e1 - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • added 1 commit

    • dc527f0c - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • added 1 commit

    • 982416d8 - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • added 1 commit

    • 3403adcc - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • added 1 commit

    • 472a1439 - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • added 1 commit

    • 917db02b - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • added 18 commits

    • 917db02b...db3408ae - 9 commits from branch main
    • c633c832 - adding bugfix for wrong velocities/water levels with inchyd
    • c272d9b4 - Apply 1 suggestion(s) to 1 file(s)
    • fd4c0840 - Apply 1 suggestion(s) to 1 file(s)
    • 0faab2fa - Apply 1 suggestion(s) to 1 file(s)
    • a50f508b - Apply 1 suggestion(s) to 1 file(s)
    • 6bba890f - Apply 1 suggestion(s) to 1 file(s)
    • c0b4fddc - Apply 1 suggestion(s) to 1 file(s)
    • 70214f84 - adding suggestions chi-tuân
    • 8ee2dcfc - adding news

    Compare with previous version

  • Alexander BREUGEM resolved all threads

    resolved all threads

  • added 1 commit

    Compare with previous version

  • mentioned in commit 521e08b7

  • Please register or sign in to reply
    Loading