Sorry everybody. I wrote down the equations a little to fast. But here they are again, in proper latex:)
These equation is for large deflection of a flexible beam of length L.
I have got them from an article and trying to figure out how to solve them. In the article they state that they have used finite difference, but give no more information than that.s = position along the beam
x(s) = x position as a function of s
y(s) = y position as a function of s
p(s) = angle as a function of s
k(s) = kurvature as function of s
EI(s) = bending stiffness as a function of s
## \frac{\partial x}{\partial s}=cos(p)\quad x(0)=0 ##
## \frac{\partial y}{\partial s}=sin(p)\quad y(0)=0 ##
## \frac{\partial p}{\partial s}=k\quad\quad p(0)=0,p(L)=p_L ##
## \frac{\partial k}{\partial s}=-\frac{1}{EI(s)}\left\{ k\frac{dEI}{ds}+Fsin(p_{L}+a-p\right\} ##
I have been able to transforme these equations into a finite difference form by using central difference. I do know that they have used central idfference:
## \frac{\partial f}{\partial x} = \frac{f_{i+1}-f_{i-1} }{2h} ##
The first differential equation then become:
## \frac{x_{i+1}-x_{i-1} }{2h} =cos(x_i) ##
I do understand that I probably have a lot of reading to do before I can set up everything correct.
But my main questions is:
1.How can a know that I have enough boundary conditions. As you can see there is no boundary condition for curvature. There is also different number of boundary condition for the different equations. Do I not need at least two conditions for each differential equation?
2.I also struggle a little with how to handle that the differential at i=1 since I need i-1. A trick I have seen is to divide the beam into N+2 points and only use the interior points, but then I need boundary condition on both ends, which I do not have for all equations.
UPDATE
I have manage to set up the whole system for a beam divided into N+2 parts. Have onle set up the equations on the interior points 1 ot N. But I do not have enough boundary conditions to set up the system. For each differential equation f, I need both f_0 and f_(n+1) in order to get a complete system. But I cannot do that here since dx and dy only give med x_0 and y_0 and k do not give med k_0 or k_(n+1).