Solving Phi with finite difference method in Matlab

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
lohanlotter
Messages
5
Reaction score
0
I have a question which states that I have to solve Phi using the finite difference method in matlab.

Phi = Phi_infinity - Phi_t

where Phi_infinity = 1 - e^2

and Phi_t = A(t).B(e)

A has the differential for dA/dt = -c^2. A
and B 1/e.d/de(edB/de)=-c^2.B

where e is a separation constant.

I know the boundary and initial condition
at t = 0 Phi = 0
at e = 0 Phi = 1
at e = 1 Phi = 0

Please help I don't know where to start
 
Physics news on Phys.org
What was the original problem? Separation of variables in order to solve the Fourier equation in one dimension? Initial condition of zero everywhere in domain. Then Dirichlet boundary condition at one end to cause the transcience?