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

scimloperators with multiple input/outputs #25

Open
vpuri3 opened this issue Jul 15, 2022 · 1 comment
Open

scimloperators with multiple input/outputs #25

vpuri3 opened this issue Jul 15, 2022 · 1 comment

Comments

@vpuri3
Copy link
Member

vpuri3 commented Jul 15, 2022

I am defining the gradient operator as follows:

Dx = F \ Dxh * F
Dy = F \ Dyh * F

grad = [Dx, Dy]

where F is the Fourier transform wrapped in a FunctionOperator, and Dx, Dy are DiagonalOperators. I want to effectively share the work of applying the Fourier transform. The order of operations should be:

function grad(u)
mul!(uh, F, u)

mul!(uxh, Dxh, uh)
mul!(uxh, Dxh, uh)

ldiv!(ux, F, uxh)
ldiv!(uy, F, uyh)

ux, uy
end

So effectively, I want a SciMLOperators that accepts/returns arrays of inputs like F*u, F*u = FF(u). This would be useful for working with coupled equations like the Navier Stokes where you would want to define operators on (component) vectors like (vx, vy, vz, p).

@vpuri3
Copy link
Member Author

vpuri3 commented Jul 15, 2022

more about sharing work here: SciML/SciMLOperators.jl#86

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

1 participant