Help with finite difference for matlab

AI Thread Summary
The discussion focuses on solving the equation for Phi using the finite difference method in MATLAB, with the equation defined as Phi = Phi_infinity - Phi_t. The parameters Phi_infinity and Phi_t are given, along with differential equations for A and B that involve a separation constant e. Initial and boundary conditions are specified: at t = 0, Phi = 0; at e = 0, Phi = 1; and at e = 1, Phi = 0. The user seeks guidance on how to approach the problem, questioning whether it relates to the separation of variables for the Fourier equation in one dimension. The conversation emphasizes the need for clarity on the original problem and the application of finite difference methods.
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?
 
Back
Top