Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMR at inflow not working #735

Closed
marchdf opened this issue Nov 29, 2022 · 1 comment · Fixed by #743
Closed

AMR at inflow not working #735

marchdf opened this issue Nov 29, 2022 · 1 comment · Fixed by #743
Assignees
Labels
bug:amr-wind Something isn't working

Comments

@marchdf
Copy link
Contributor

marchdf commented Nov 29, 2022

Having AMR levels touch an inflow BC leads to spurious velocity at the AMR corners. This input file illustrates the issue: freestream-amr.inp.txt. Inflow at xlo and ylo with vx = vy = 1.0.

Screen Shot 2022-11-29 at 13 17 00

This is probably related to #174 as well.

@marchdf marchdf self-assigned this Nov 29, 2022
@marchdf marchdf added the bug:amr-wind Something isn't working label Nov 29, 2022
@marchdf
Copy link
Contributor Author

marchdf commented Nov 29, 2022

Notes from debugging:

  • Setting incflo.do_initial_proj = 0 "solves" the issue
  • So does commenting out L353 (nodal_projector->project(options.rel_tol, options.abs_tol); in incflo_apply_nodal_projection.cpp
  • Printing BC values seems like they are being set correctly
  • Increasing verbosity shows that the initial projection is clearly doing something strange:
L-inf norm summary: before projection
..............................................................................
Level 0
  velocity                           0                   1                   0
  gp                                 0                   0                   0

Level 1
  velocity                           0                   1                   0
  gp                                 0                   0                   0
..............................................................................


  Nodal_projection               6           10.66666667       3.186236706e-06

L-inf norm summary: after projection
..............................................................................
Level 0
  velocity                0.4114862791        0.9991017265      1.77245633e-09
  gp                      0.4114862791        0.4158892159      1.77245633e-09

Level 1
  velocity                0.7211184444        0.9973798597     4.089097209e-09
  gp                      0.7211184444        0.5491720972     4.089097209e-09
..............................................................................

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:amr-wind Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant