RLC Circuit Driven by Periodic Signal and White Noise

Consider an electrical circuit consisting of a resistor, inductor, and capacitor connected in series. The circuit is under external voltage, which is a superposition of a periodic signal and a white noise.

    
In[49]:=
Click for copyable input
Out[49]=
Define the parameters of the model:
In[50]:=
Click for copyable input
Compute the mean function, i.e. the mean value of the charge of the capacitor as a function of time:
In[51]:=
Click for copyable input
Out[51]=
Solve the deterministic problem in the absence of noise and compare with the mean function:
In[52]:=
Click for copyable input
In[53]:=
Click for copyable input
Out[53]=
Compute the variance function:
In[54]:=
Click for copyable input
Out[54]=
Simulate the model using a strong order 1.5 Kloeden-Platen-Schurz scheme:
In[55]:=
Click for copyable input
Out[55]=
Visualize simulated paths:
In[56]:=
Click for copyable input
Out[56]=
Visualize the mean function and its one standard deviation band:
In[57]:=
Click for copyable input
Out[57]=
Combine plots:
In[58]:=
Click for copyable input
Out[58]=
New to Mathematica? Find your learning path »
Have a question? Ask support »