deepxde icon indicating copy to clipboard operation
deepxde copied to clipboard

Add additional parameter as input

Open tsarikahin opened this issue 2 years ago • 1 comments

Dear Lu Lu,

first of all, thanks for this unique package. I have one question regarding the addition of a parameter as input. To have a better understanding, I will give the example of Euler Beam .

In line, force is given as 1:

def pde(x, y):
    dy_xx = ddy(x, y)
    dy_xxxx = dde.grad.hessian(dy_xx, x)
    return dy_xxxx + 1

What if I want to give the force as an input? So the architecture will take x and force as an input, which should look like this:

layer_size = [2] + [20] * 3 + [1]

For all examples, input is space or time or a combination of them. How would it be possible? Or in general, is it possible to give the architecture any external input without changing the source code? Thanks in advance!

Best, Tarik

tsarikahin avatar May 10 '22 07:05 tsarikahin

See FAQ "Q: Solve parametric PDEs."

lululxvi avatar May 12 '22 18:05 lululxvi