I have to solve an equation in the form:
d^2(V)/dt^2 = A d^2(V)/dx^2 + B d(V)/dt
x= space
t= time
A,B= constants
How can I get it with matlab?
thanks
|
|
0
|
|
|
|
Reply
|
mail.plutus (24)
|
11/28/2006 2:39:39 PM |
|
matt wrote:
>
>
> pdetool doesn't work?
Hi,
pdetool does not take into account de d/dt term...
|
|
0
|
|
|
|
Reply
|
mail.plutus (24)
|
12/5/2006 2:27:43 PM
|
|
steve wrote:
>
>
> matt wrote:
>>
>>
>> pdetool doesn't work?
>
> Hi,
>
> pdetool does not take into account de d/dt term...
If A and B are constants, than you can solve this PDE in closed form.
Otherwise, why not just use finite differences?
HTH,
Greg
|
|
0
|
|
|
|
Reply
|
gregvwDEL (117)
|
12/5/2006 4:01:50 PM
|
|
Anything available for finite differences using matlab?
Greg von Winckel wrote:
>
>
> steve wrote:
>>
>>
>> matt wrote:
>>>
>>>
>>> pdetool doesn't work?
>>
>> Hi,
>>
>> pdetool does not take into account de d/dt term...
>
>
> If A and B are constants, than you can solve this PDE in closed
> form.
> Otherwise, why not just use finite differences?
>
> HTH,
>
> Greg
|
|
0
|
|
|
|
Reply
|
mail.plutus (24)
|
12/5/2006 5:15:06 PM
|
|
The easiest thing would be to discretize in x using centered
differences and then time-step the resulting system of ODEs using
ode45.
What are your boundary conditions for x? I presume you have initial
data for V(x,0) and Vt(x,0)?
|
|
0
|
|
|
|
Reply
|
gregvwDEL (117)
|
12/5/2006 5:40:39 PM
|
|