Register to reply 
Numerical Solutions for Mixed Boundary Condition 
Share this thread: 
#1
Mar1612, 11:29 PM

P: 30

Hi All,
I was reading this paper the other day and I've been trying to find the numerical techniques its mentions but have been thus far unsuccessful. The authors simply state that is well know and straightforward, and they believe this so much that they don't even include a reference. Ok, sorry about the rant. The general problem they are trying to solve is for the rmode oscillations of Neutron Stars. They get everything down to a 2nd order 1d differential equation. They say the solution is zero at r=0, and at the surface they say it obeys something like A[r] * δρ[r] + B[r] * ∂ δρ[r] / ∂r =0. They they say they integrate from r=0 with the condition that δρ [0] =0, and from the surface with the condition A[r] * δρ[r] + B[r] * ∂ δρ[r] / ∂r =0 and they match the solutions at some specified point, and they use the frequency of the mode as the parameter they mess with to match the solution. I understand how one can integrate out to the surface with the condition that δρ [0] , but how do they does the integration from the surface to the interior work when one has a Mixed boundary condition? Any help is greatly appreciated. Thanks. 


#2
Mar2212, 07:21 AM

HW Helper
P: 1,583

One possible method is Newton's method but with this methods you have to made an initial stab at the solution in the first place (asymptotic analysis perhaps?) It works very well when it works and then you can just code up the BCs without a problem.
I have some initial matlab code you can have if you want. Mat 


#3
Mar2212, 10:09 AM

P: 30

Hey Mat,
Thanks very much for the response. So if I understand what you are saying. I should just finite difference the boundary condition have have a an algebraic equation for the boundary. Then solve this equation and all the equations I got from the interior using a NewtonRaphson iteration scheme. And I need to find some way to find an initial guess for the iteration. Is this what you mean? I'm basically trying to do something like this now within Mathematica, and I just wasn't sure how to incorporate the surface BC. Is there a specific Finite Difference scheme to use at the boundary because let say I use central differencing. Won't that take me outside my boundary? I'd like to see you're code if that's ok. Thanks again for the help. 


#4
Mar2212, 12:12 PM

HW Helper
P: 1,583

Numerical Solutions for Mixed Boundary Condition
Essentially that is the thing I am saying, the only other thing is the BC on the boundary, so split your interval up into N pieces and you want to know how to compute your derivative on the boundary point [itex]x_{N}[/itex]. The wa yto go about this is to examine the point [itex]x_{N\frac{1}{2}}[/itex].
The derivative is given by: [tex] \frac{dy}{dx}\Big_{x_{N\frac{1}{2}}}=\frac{y_{N}y_{N1}}{h} [/tex] Now the value of the derivative at [itex]N1/2[/itex] is approximately the average of the derivatives at each side, so: [tex] \frac{dy}{dx}\Big_{x_{N\frac{1}{2}}}=\frac{1}{2}\left(\frac{dy}{dx}\Big_{x_{N}}+\frac{dy}{dx} \Big_{x_{N1}}\right) [/tex] Then you use: [tex] \frac{dy}{dx}\Big_{x_{N1}}=\frac{y_{N}y_{N2}}{2h} [/tex] You solve for the thing you want [tex] \frac{dy}{dx}\Big_{x_{N}}=\frac{3y_{N}4y_{N1}+y_{N2}}{2h} [/tex] I have sent you my programs. 


#5
Mar2712, 03:42 PM

P: 2

Thanks for explaination. It helps me to solve manually.
Would you share with me matlab code. Because of i couldnt write. 


#6
Mar2712, 04:46 PM

HW Helper
P: 1,583

Check your mail on this site, I sent you the programs there.



#7
Mar2712, 05:15 PM

P: 2

:( there isnt any new message in my mail or site private message inbox :( Would you send again



#8
Mar2812, 01:52 AM

HW Helper
P: 1,583

I am at a conference currently and I will post it here so there is no mistakes.



Register to reply 
Related Discussions  
Classical solution of PDE with mixed boundary conditions  Differential Equations  5  
Poisson Equation with Mixed Boundary Condition  MatlaB  Math & Science Software  0  
1D Wave equation with mixed boundary conditions  Calculus & Beyond Homework  2  
Laplace's equation on a rectangle with mixed boundary conditions  Calculus & Beyond Homework  2 