Skip to content

1d boundary conditions and equations setup #1

@uliw

Description

@uliw

Looking at the examples, I get the idea of how fastfd defines a model, but I struggle to transfer this to a 1D setup. I am trying to model something like this

$$\frac{d C}{d t} = D_x \frac{d^2 C}{d x^2} - \omega \frac{d C}{d x} -f(x)$$

how would I define this equation, and how would I add a Dirichlet boundary condition for x = 0, and a Neuman condition for x[-1] ?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions