Help with finite difference for matlab

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
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?