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

ERROR in complex function in Boundary condition

Open mohsenhos opened this issue 3 years ago • 4 comments

when I add just complex in boundary condition the code work like this : bcs = [Dx(u(-1,y)) ~ 1im ,...] but when i want to add complex cross parameters like x , y the code doesnt work like this bcs = [Dx(u(-1,y)) ~ 1im*y , ...] and the error is: LoadError: MethodError: no method matching decompose(::Num) what can i do for solve this problem and add this boundary condition: qq

mohsenhos avatar Nov 07 '21 19:11 mohsenhos

@mohsenhos look it https://github.com/SciML/NeuralPDE.jl/issues/387

KirillZubov avatar Nov 08 '21 15:11 KirillZubov

complex numbers are not supported but interesting why bcs = [Dx(u(-1,y)) ~ 1im ,...] isn't failed.

KirillZubov avatar Nov 08 '21 15:11 KirillZubov

@KirillZubov tank you for your response yes i see #387 but whats your suggestion for me to add this condition

mohsenhos avatar Nov 09 '21 14:11 mohsenhos

when the complex num lonely working it seems that we can add parameters to it

mohsenhos avatar Nov 09 '21 14:11 mohsenhos