Método de Verlet: mudanças entre as edições

De Física Computacional
Ir para navegação Ir para pesquisar
Jhordan (discussão | contribs)
Criou página com '= Principais materiais utilizados = # [https://math.libretexts.org/Bookshelves/Calculus/Book%3A_Active_Calculus_(Boelkins_et_al)/01%3A_Understanding_the_Derivative/1.06%3A_Th...'
 
Jhordan (discussão | contribs)
Sem resumo de edição
Linha 1: Linha 1:
Para o [[método de Euler]] implícito havíamos utilizado a derivada a esquerda:
<math display="block">f'\left(t\right)\approx\frac{f\left(t\right)-f\left(t-\Delta t\right)}{\Delta t}</math>
Então se <math display="inline">y\left(t\right)=f'\left(t\right)</math> a segunda derivada é <math display="inline">y'\left(t\right)=f''\left(t\right)</math>, pela definição, da derivada a direita:
<math display="block">y'\left(t\right)=\lim_{\Delta t\rightarrow0}\frac{y\left(t+\Delta t\right)-y\left(t\right)}{\Delta t}=\lim_{\Delta t\rightarrow0}\frac{f'\left(t+\Delta t\right)-f'\left(t\right)}{\Delta t}</math>
Logo utilizando as aproximações:
<math display="block">\begin{align}
f''\left(t\right) & \approx\frac{1}{\Delta t}\left(f'\left(t+\Delta t\right)-f'\left(t\right)\right)\\
& \approx\frac{1}{\Delta t}\left(\frac{f\left(t+\Delta t\right)-f\left(t+\Delta t-\Delta t\right)}{\Delta t}-\frac{f\left(t\right)-f\left(t-\Delta t\right)}{\Delta t}\right)\\
& \approx\frac{f\left(t+\Delta t\right)+f\left(t-\Delta t\right)-2f\left(t\right)}{\left(\Delta t\right)^{2}}\end{align}</math>
Isolando então <math display="inline">f\left(t+\Delta t\right)</math>:
<math display="block">\begin{align}
f\left(t+\Delta t\right) & =\left(\Delta t\right)^{2}f''\left(t\right)-f\left(t-\Delta t\right)+2f\left(t\right)\end{align}</math>
Temos o método de Verlet. Podemos notar que precisamos conhecer <math display="inline">f\left(t\right)</math> em dois tempos anteriores. Podemos utilizar outro algoritmo para o primeiro passo. Se <math display="inline">f\left(t\right)=x\left(t\right)</math> é posição, então <math display="inline">f''\left(t\right)=\ddot{x}\left(t\right)=a\left(x,t\right)</math> logo podemos reescrever:
<math display="block">\begin{align}
x\left(t+\Delta t\right) & =a\left(x,t\right)\left(\Delta t\right)^{2}-x\left(t-\Delta t\right)+2x\left(t\right)\end{align}</math>
Para calcular a energia, podemos obter a velocidade então utilizando a derivada centrada: <math display="block">v\left(t\right)=\dot{x}\left(t\right)=\frac{x\left(t+\Delta t\right)-x\left(t-\Delta t\right)}{2\Delta t}</math>
= Principais materiais utilizados =
= Principais materiais utilizados =


# [https://math.libretexts.org/Bookshelves/Calculus/Book%3A_Active_Calculus_(Boelkins_et_al)/01%3A_Understanding_the_Derivative/1.06%3A_The_Second_Derivative The Second Derivative] (Matthew Boelkins, David Austin & Steven Schlicker; LibreTexts)
# [https://math.libretexts.org/Bookshelves/Calculus/Book%3A_Active_Calculus_(Boelkins_et_al)/01%3A_Understanding_the_Derivative/1.06%3A_The_Second_Derivative The Second Derivative] (Matthew Boelkins, David Austin & Steven Schlicker; LibreTexts)

Edição das 04h19min de 18 de fevereiro de 2022

Para o método de Euler implícito havíamos utilizado a derivada a esquerda:

f(t)f(t)f(tΔt)Δt

Então se y(t)=f(t) a segunda derivada é y(t)=f(t), pela definição, da derivada a direita:

y(t)=limΔt0y(t+Δt)y(t)Δt=limΔt0f(t+Δt)f(t)Δt

Logo utilizando as aproximações:

f(t)1Δt(f(t+Δt)f(t))1Δt(f(t+Δt)f(t+ΔtΔt)Δtf(t)f(tΔt)Δt)f(t+Δt)+f(tΔt)2f(t)(Δt)2

Isolando então f(t+Δt):

f(t+Δt)=(Δt)2f(t)f(tΔt)+2f(t)

Temos o método de Verlet. Podemos notar que precisamos conhecer f(t) em dois tempos anteriores. Podemos utilizar outro algoritmo para o primeiro passo. Se f(t)=x(t) é posição, então f(t)=x¨(t)=a(x,t) logo podemos reescrever:

x(t+Δt)=a(x,t)(Δt)2x(tΔt)+2x(t)

Para calcular a energia, podemos obter a velocidade então utilizando a derivada centrada: v(t)=x˙(t)=x(t+Δt)x(tΔt)2Δt


Principais materiais utilizados

  1. The Second Derivative (Matthew Boelkins, David Austin & Steven Schlicker; LibreTexts)