MathOnco / HAL

HAL (Hybrid Automata Library) is the one-stop shop for all of your hybrid modeling needs
MIT License
37 stars 12 forks source link

Can diffusion-decay, advection-diffusion, and advection-diffusion-decay PDEs be modeled? #4

Closed JulianoGianlupi closed 1 month ago

JulianoGianlupi commented 1 month ago

Hello!

Sorry if this is not the most appropriate venue to ask.

Can HAL solve diffusion-decay, advection-diffusion, and advection-diffusion-decay equations? Looking at the source code I can see pure diffusion and pure advection, but nothing with decay or combining diffusion and advection, i.e.,

Thanks!

torococo commented 1 month ago

Hello, yes it can solve diffusion and advection, as well as decay. The correct usage of the PDE Grid in HAL is to call all of the diffusion, advection, reaction functions you want to apply for a given time-step then call the Update function to advance the state of the PDE to the next time-step.

JulianoGianlupi commented 1 month ago

Perfect, thanks! Are there any examples I could look at in the repo?

torococo commented 1 month ago

Sure, there's a demo in the Examples folder that shows how the different PDE functions can be combined. It's called _4PDEexample.java

On Thu, Jul 25, 2024, 12:55 PM Juliano Ferrari Gianlupi < @.***> wrote:

Perfect, thanks! Are there any examples I could look at in the repo?

— Reply to this email directly, view it on GitHub https://github.com/MathOnco/HAL/issues/4#issuecomment-2251084473, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2SVBT2UVNDWJKDY7IEZPTZOE3ZRAVCNFSM6AAAAABLITDXX6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJRGA4DINBXGM . You are receiving this because you commented.Message ID: @.***>

JulianoGianlupi commented 1 month ago

Thanks!