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

Expressing equations as the sum of a linear and a nonlinear operator. #95

Closed
ali-ramadhan opened this issue Feb 28, 2019 · 1 comment
Closed
Labels
abstractions 🎨 Whatever that means feature 🌟 Something new and shiny

Comments

@ali-ramadhan
Copy link
Member

ali-ramadhan commented Feb 28, 2019

Building on what @jm-c said, I think we want to design an interface in which an equation is expressed as something like

φ_t = Lφ + Ν(φ)

where φ is the solution (an array of fields in this case, probably), L is a linear operator that can be treated implicitly (depending on the time-stepping scheme), and N(φ) is a nonlinear operator.

The challenge is including the pressure correction in this paradigm. I think it should be possible --- we may just have to consider only time-steppers that invoke the special pressure correction substep.

I think the design should be about more than just 'marking' the terms. We can tackle the problem of designing a time-stepper to step forward an equation of a certain form completely independent from the development of an algorithm to calculate nonlinear terms, pressure corrections, and linear terms for a specific kind of equation. Then we put the pieces together to solve the problem.

Originally posted by @glwagner in https://github.com/ali-ramadhan/Oceananigans.jl/issues/49#issuecomment-463209211

@ali-ramadhan
Copy link
Member Author

Superseded by #259.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
abstractions 🎨 Whatever that means feature 🌟 Something new and shiny
Projects
None yet
Development

No branches or pull requests

1 participant