MethodOfLines.jl icon indicating copy to clipboard operation
MethodOfLines.jl copied to clipboard

Passing boundary condition which depends on x

Open SourabhJadhav2 opened this issue 2 years ago • 1 comments

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

SourabhJadhav2 avatar Oct 19 '22 06:10 SourabhJadhav2

Could you please post some code showing what you mean?

xtalax avatar Oct 20 '22 17:10 xtalax

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.

SourabhJadhav2 avatar Nov 04 '22 06:11 SourabhJadhav2

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?

xtalax avatar Nov 07 '22 15:11 xtalax