<filename>_build/jupyter_execute/Sensitivity_5/Sensitivity_1_ngspice's.py
#!/usr/bin/env python
# coding: utf-8

# Just Exploring

# In[1]:


from skidl.pyspice import *
#can you say cheeky 
import PySpice as pspice
#becouse it's written by a kiwi you know
import lcapy as kiwi

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import sympy as sym


from IPython.display import YouTubeVideo, display

import traceback
import warnings


# In[2]:


from DC_1_Codes import get_skidl_spice_ref
from AC_2_Codes import *

sym.init_printing()

#notebook specific loading control statements 
get_ipython().run_line_magic('matplotlib', 'inline')
#tool to log notebook internals
#https://github.com/jrjohansson/version_information
get_ipython().run_line_magic('load_ext', 'version_information')
get_ipython().run_line_magic('version_information', 'skidl, PySpice,lcapy, sympy, numpy, matplotlib, pandas, scipy')


# In[3]:


#instatate the rc_lowpass filter to 
lowpassF=rlc_parallel_highpass()
lowpassF.lcapy_self()


# In[4]:


reset()
#create the nets
net_in=Net('In'); net_out=Net('Out'); 

#create a 1V AC test source and attache to nets
vs=SINEV( ac_magnitude=1@u_V); vs['p', 'n']+=net_in, gnd

#attaceh term_0 to net_in and term_2 to net_out per scikit-rf convention all 
#other terminals are grounded
lowpassF.SKiDl(net_in, gnd, net_out, gnd)

circ=generate_netlist()
print(circ)


# In[5]:


sim=circ.simulator()


# In[6]:


res=sim.ac_sensitivity('V(Out)', 'lin', 10, 1@u_Hz, 10@u_MHz)


# In[7]:


res.elements


# In[8]:


res=sim.dc_sensitivity('V(Out)')


# In[9]:


res.branches


# In[10]:


res.elements


# In[21]:


res.internal_parameters


# In[ ]:


res.nodes


# In[11]:


circ.element_names


# In[14]:


for e in circ.element_names:
    print(e.lower())
    


# In[ ]:





<filename>_build/jupyter_execute/Sensitivity_5/Sensitivity_1_ngspice's.py
#!/usr/bin/env python
# coding: utf-8

# Just Exploring

# In[1]:


from skidl.pyspice import *
#can you say cheeky 
import PySpice as pspice
#becouse it's written by a kiwi you know
import lcapy as kiwi

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import sympy as sym


from IPython.display import YouTubeVideo, display

import traceback
import warnings


# In[2]:


from DC_1_Codes import get_skidl_spice_ref
from AC_2_Codes import *

sym.init_printing()

#notebook specific loading control statements 
get_ipython().run_line_magic('matplotlib', 'inline')
#tool to log notebook internals
#https://github.com/jrjohansson/version_information
get_ipython().run_line_magic('load_ext', 'version_information')
get_ipython().run_line_magic('version_information', 'skidl, PySpice,lcapy, sympy, numpy, matplotlib, pandas, scipy')


# In[3]:


#instatate the rc_lowpass filter to 
lowpassF=rlc_parallel_highpass()
lowpassF.lcapy_self()


# In[4]:


reset()
#create the nets
net_in=Net('In'); net_out=Net('Out'); 

#create a 1V AC test source and attache to nets
vs=SINEV( ac_magnitude=1@u_V); vs['p', 'n']+=net_in, gnd

#attaceh term_0 to net_in and term_2 to net_out per scikit-rf convention all 
#other terminals are grounded
lowpassF.SKiDl(net_in, gnd, net_out, gnd)

circ=generate_netlist()
print(circ)


# In[5]:


sim=circ.simulator()


# In[6]:


res=sim.ac_sensitivity('V(Out)', 'lin', 10, 1@u_Hz, 10@u_MHz)


# In[7]:


res.elements


# In[8]:


res=sim.dc_sensitivity('V(Out)')


# In[9]:


res.branches


# In[10]:


res.elements


# In[21]:


res.internal_parameters


# In[ ]:


res.nodes


# In[11]:


circ.element_names


# In[14]:


for e in circ.element_names:
    print(e.lower())
    


# In[ ]:





#!/usr/bin/env python # coding: utf-8 # Just Exploring # In[1]: #can you say cheeky #becouse it's written by a kiwi you know # In[2]: #notebook specific loading control statements #tool to log notebook internals #https://github.com/jrjohansson/version_information # In[3]: #instatate the rc_lowpass filter to # In[4]: #create the nets #create a 1V AC test source and attache to nets #attaceh term_0 to net_in and term_2 to net_out per scikit-rf convention all #other terminals are grounded # In[5]: # In[6]: # In[7]: # In[8]: # In[9]: # In[10]: # In[21]: # In[ ]: # In[11]: # In[14]: # In[ ]: