MethodOfLines.jl
MethodOfLines.jl copied to clipboard
Passing boundary condition which depends on x
How can we pass a dictionary with key as distance in x direction and value is respect to distance while solving PDE. I tried with separate function with input x from PDE and dictionary but getting error as follows: global method should be placed at the top level, etc. please help with this
Could you please post some code showing what you mean?
example:
I am finding variation of u
with time and space.
initially value of u
over space x
direction is variable, but it will going to change with time.
How to pass this u
initial vector to PDE solver?
if you have any example code then please share.
Please post the code that you were trying with before, i.e. the code that gives you this error, then I can help you. I don't really understand what you're asking.
The allocation of any vectors of values will be handled for you. MethodOfLines is a discretizer package, so it works with continuous inputs. If you have
Have you read the documentation? There are a few tutorials to help you get started. See also the juliacon talk.
Which PDE are you trying to solve?