Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Lazy composed PDE Operators #9

Closed
ChrisRackauckas opened this issue Jun 8, 2017 · 2 comments
Closed

Lazy composed PDE Operators #9

ChrisRackauckas opened this issue Jun 8, 2017 · 2 comments

Comments

@ChrisRackauckas
Copy link
Member

A nice feature would be able to compose these lazy operators. This will be difficult though. It would be killer to be able to support intermediates of scalars, functions, and AbstractArrays so that way something like

u_t = a(t,x)u_xx + b(t,x)u_x

will compose to a single operator on the LHS, or

u_t = (D*u_x)_x

where D is some vector of diffusion constants.

The composition should include the ability to combine with I, so that way I - gamma*L works.

Of course, we'd have to start with a simpler version, but this kind of composition would be absolutely awesome for using stiff integrators.

@shivin9
Copy link
Contributor

shivin9 commented Jun 10, 2017

@ChrisRackauckas Do you mean that the elements of the Transformation map will become functions now (say 2+x+sin(x))?

@ChrisRackauckas
Copy link
Member Author

ChrisRackauckas commented Jun 10, 2017

They probably shouldn't output the function, but instead should evaluate all of the proper functions so that way it outputs the solution.

If you have a design go ahead an implement, though I'm not entirely sure what the correct design for this is right now anyways. Instead of hanging on this, you might want to work on something more clear like boundary conditions while thinking about how to design this. It likely needs to be its own wrapper type which can wraper scalars, AbstractMatrixs, Functions, and LinearOperators, and then somehow "recall" how they should be put together.

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

No branches or pull requests

2 participants