Bone remodeling
Problem setting
Import modules :
Coefficients :
Initial condition :
Time stepping options :
Part 1 : Solving the problem
Implement and solve the problem using your own functions for the backward Euler's method and Newton's method.
Part 2 : Convergence Assessment
Compute successive numerical solutions as you increase the number of time steps Ntsteps
You can use 1D piecewise linear interpolation directly from SciPy:
Compute and plot (in double logarithmic scale) the rmse(m) by increasing m until you consider that your solution is accurate enough.
Part 3
Solve the same problem using SciPy's function solve_ivp from the integrate submodule