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

IS1 not contributing to action density spectrum #1386

Open
Biao-Zhao opened this issue Mar 7, 2025 · 2 comments
Open

IS1 not contributing to action density spectrum #1386

Biao-Zhao opened this issue Mar 7, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@Biao-Zhao
Copy link
Contributor

Biao-Zhao commented Mar 7, 2025

In w3srcemd.F90, it appears that the ice scattering source term calculated by IS1 is not contributing to the increment of the action density spectrum (SPEC).

Image

Image

From the two screenshots above, we can see that ATT expects VDIR from the call to W3SIS1. However, W3SIS1 does not return it.

From an energy conservation perspective, even if W3SIS1 were to return VDIR, I believe it would still be inappropriate to consider the ice scattering term as dissipation. Based on my understanding, it might be better to redistribute SPEC in different directions, following the same approach as IS2. Alternatively, we could include VSIR in VS, such as:

VS(IS) = VS(IS) + VSIR(IS)

Anyway, I might have misunderstood some details, and I appreciate any corrections or clarifications. Please feel free to share your thoughts.

@Biao-Zhao Biao-Zhao added the bug Something isn't working label Mar 7, 2025
@NickSzapiro-NOAA
Copy link
Contributor

@cmbitz reports the same in #1305

@Biao-Zhao
Copy link
Contributor Author

Biao-Zhao commented Mar 7, 2025

@cmbitz reports the same in #1305

Hi Nick,

Thanks for sharing the information. I hadn't noticed it before. Personally, I’m not particularly interested in wave-ice interaction, but I came across this bug while reviewing

w3srcemd.F90

As @cmbitz said, it is easy to fix it. I shared this here as a reminder for anyone working on this topic. Since scattering doesn’t dissipate wave energy, I believe the correct solution is to redistribute the scattered energy to other directions, similar to IS2. In this sense, adding the following line should solve the problem

SPEC(1+(IK-1)*NTH:NTH+(IK-1)*NTH) = SPEC(1+(IK-1)*NTH:NTH+(IK-1)*NTH) + VSIR(IS) * DTMIN

Of course, the following line must be commented out accordingly. Not only because it doesn’t work, but also for physical considerations

`!/IS1             ATT=ATT*EXP(ICE*VDIR(IS)*DTG)`

If anyone thinks it’s necessary, I would be happy to submit a pull request

Biao-Zhao added a commit to Biao-Zhao/WW3 that referenced this issue Mar 7, 2025
I reported a bug in NOAA-EMC#1386, the current IS1 is not contributing to action density spectrum. Since scattering doesn’t dissipate wave energy, I believe the correct solution is to redistribute the scattered energy to other directions, similar to IS2.
Biao-Zhao added a commit to Biao-Zhao/WW3 that referenced this issue Mar 7, 2025
…g of IS1

I reported a bug NOAA-EMC#1386, the current IS1 is not contributing to action density spectrum. Since scattering doesn’t dissipate wave energy, I believe the correct solution is to redistribute the scattered energy to other directions, similar to IS2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants