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

Salinity drifting when there is no salinity forcing #666

Open
fabien-roquet opened this issue Nov 4, 2024 · 3 comments
Open

Salinity drifting when there is no salinity forcing #666

fabien-roquet opened this issue Nov 4, 2024 · 3 comments

Comments

@fabien-roquet
Copy link

When there is no salinity forcing, salinity is still drifting.
We believe it happens with the implicit diffusion scheme which produces noise which accumulates over time, but we are not sure exactly why. Because salinity is used in the equation of state, that creates disturbances on the dynamics that will increase over time.
It would be best to enforce/control salinity conservation. Some similar bug might be affecting temperature as well.

@dionhaefner
Copy link
Collaborator

Can you share more details about your setup? How can I reproduce this?

@Titouan-Moulin
Copy link

neverworld2.zip
We use this neverworld2 setup inspired from the acc setup and we ran it for 1d before plotting a salinity profile

ds_snap = xr.open_dataset(neverworld2.snapshot.nc)
SA = (ds_snap["salt"].isel(Time=0)-35)
SA.isel(xt=30).plot()

@dionhaefner
Copy link
Collaborator

Some numerical noise is certainly expected. Your reproducer outputs salinity fluctuations on the order of 10^-14 which is well below the noise threshold and should not lead to significant model drift.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants