0

I am using Method -> MethodofLines as an NDSolve method. My boss wants me to implement my code to a FEM solver. (I have a very little knowledge of FEM) For that I need to know what step size in time and space is used by NDSolve with MethodofLines. I checked the Method of Lines tutorial and several posts here, but couldn't find anything.

For spatial discretization the tutorial notes that the default value is given as Automatic. Is there a way learn what corresponds to Automatic? And do you know what is the time step for this method?

Thanks!

confused
  • 191
  • 10
  • 3
    We can use Needs["DifferentialEquationsInterpolatingFunctionAnatomy"]. See tutorial on the page Utility Packages for Numerical Differential Equation Solving. – Alex Trounev Feb 26 '21 at 16:03
  • @AlexTrounev thanks! You mean Map[Length, InterpolatingFunctionCoordinates[ifun]] i guess, isn't it? My t=(0,2500) and x= (-200,200) but Map[...] gives {16156, 25}. Does it mean it computes with $\Delta$x=16? That seems too big as a spatial step size. – confused Feb 26 '21 at 19:24
  • 1
    It depends on option what you use. If there are no options, then NDSolve automatically run 25 points for PDE and sends some message about this. – Alex Trounev Feb 26 '21 at 22:05

0 Answers0