Skip to content

Expanding to 2D wave #3

@ShaikhaTheGreen

Description

@ShaikhaTheGreen

Hi and thank you for your contribution!

I'm trying to expand the 1D wave equation example to 2D with slightly different conditions as follows:

f(x,5,t)=f(0,y,t)=f(5,y,t)=f(x,0,t)=0, where all the boundries are absorbing (zero)
a source function f(0.5,2.5,t)= 2 * sin (2 pi t)
and an initial condition f(x,y,0) = 0

I'm not sure if such a time-dependent source term is possible to implement. This is my attempt, but the results are not really good.

https://colab.research.google.com/drive/1M1asbREhXFwI4eJIzF5kO4PpkL4Bpzv8?usp=sharing

Please assist me with this implementation, as I would love to include the results in my research.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions