Skip to content
Snippets Groups Projects
calculations.ipynb 4.52 KiB
Newer Older
  • Learn to ignore specific revisions
  • Will Langford's avatar
    Will Langford committed
    {
      "cells": [
        {
          "cell_type": "code",
          "source": [
            "import numpy as np"
          ],
          "outputs": [],
          "execution_count": 1,
          "metadata": {
            "collapsed": false,
            "outputHidden": false,
            "inputHidden": false
          }
        },
        {
          "cell_type": "code",
          "source": [
            "# gate resistor power dissipation\n",
            "V = 12 #V\n",
            "Ciss = 2600e-12 #F\n",
            "f = 50e3 #Hz\n",
            "\n",
            "P_avg = V**2 * Ciss * f\n",
            "P_avg"
          ],
          "outputs": [
            {
              "output_type": "execute_result",
              "execution_count": 58,
              "data": {
                "text/plain": [
                  "0.01872"
                ]
              },
              "metadata": {}
            }
          ],
          "execution_count": 58,
          "metadata": {
            "collapsed": false,
            "outputHidden": false,
            "inputHidden": false
          }
        },
        {
          "cell_type": "code",
          "source": [
            "t_r = 56e-9 #s\n",
            "Q_g = 56e-9 #C\n",
            "I_peak = Q_g/t_r\n",
            "I_peak"
          ],
          "outputs": [
            {
              "output_type": "execute_result",
              "execution_count": 59,
              "data": {
                "text/plain": [
                  "1.0"
                ]
              },
              "metadata": {}
            }
          ],
          "execution_count": 59,
          "metadata": {
            "collapsed": false,
            "outputHidden": false,
            "inputHidden": false
          }
        },
        {
          "cell_type": "code",
          "source": [
            "P_avg = V*Q_g*f\n",
            "P_avg"
          ],
          "outputs": [
            {
              "output_type": "execute_result",
              "execution_count": 60,
              "data": {
                "text/plain": [
                  "0.0672"
                ]
              },
              "metadata": {}
            }
          ],
          "execution_count": 60,
          "metadata": {
            "collapsed": false,
            "outputHidden": false,
            "inputHidden": false
          }
        },
        {
          "cell_type": "code",
          "source": [
            "I_avg = Q_g*f\n",
            "I_avg"
          ],
          "outputs": [
            {
              "output_type": "execute_result",
              "execution_count": 61,
              "data": {
                "text/plain": [
                  "0.0028"
                ]
              },
              "metadata": {}
            }
          ],
          "execution_count": 61,
          "metadata": {
            "collapsed": false,
            "outputHidden": false,
            "inputHidden": false
          }
        },
        {
          "cell_type": "code",
          "source": [
            "I_peak = Q_g/t_r\n",
            "I_peak"
          ],
          "outputs": [
            {
              "output_type": "execute_result",
              "execution_count": 11,
              "data": {
                "text/plain": [
                  "1.0"
                ]
              },
              "metadata": {}
            }
          ],
          "execution_count": 11,
          "metadata": {
            "collapsed": false,
            "outputHidden": false,
            "inputHidden": false
          }
        },
        {
          "cell_type": "code",
          "source": [
    
    Will Langford's avatar
    Will Langford committed
            "V_th = 4\n",
            "V = 12\n",
            "Rgeq = 10\n",
    
    Will Langford's avatar
    Will Langford committed
            "# Vc = V*(1-np.exp(-t/Rgeq*Ciss))\n",
            "t_r = Rgeq*Ciss*-np.log(1-V_th/V)\n",
            "print('t_switch = ', t_r*1e9,'ns') #ns\n",
            "print('f_max = ', 1/t_r*1e-6,'MHz') #ns\n",
            "I_peak = Q_g/t_r\n",
            "print('I_peak = ',I_peak,'A')"
          ],
          "outputs": [
            {
              "output_type": "stream",
              "name": "stdout",
              "text": [
    
    Will Langford's avatar
    Will Langford committed
                "t_switch =  10.5420928108 ns\n",
                "f_max =  94.857825476 MHz\n",
                "I_peak =  5.31203822666 A\n"
    
    Will Langford's avatar
    Will Langford committed
              ]
            }
          ],
    
    Will Langford's avatar
    Will Langford committed
          "execution_count": 65,
    
    Will Langford's avatar
    Will Langford committed
          "metadata": {
            "collapsed": false,
            "outputHidden": false,
            "inputHidden": false
          }
        },
        {
          "cell_type": "code",
          "source": [],
          "outputs": [],
          "execution_count": null,
          "metadata": {
            "collapsed": false,
            "outputHidden": false,
            "inputHidden": false
          }
        }
      ],
      "metadata": {
        "kernel_info": {
          "name": "python3"
        },
        "kernelspec": {
          "name": "python3",
          "language": "python",
          "display_name": "Python 3"
        },
        "language_info": {
          "mimetype": "text/x-python",
          "file_extension": ".py",
          "nbconvert_exporter": "python",
          "codemirror_mode": {
            "version": 3,
            "name": "ipython"
          },
          "version": "3.5.1",
    
    Will Langford's avatar
    Will Langford committed
          "pygments_lexer": "ipython3",
    
    Will Langford's avatar
    Will Langford committed
          "name": "python"
        },
        "nteract": {
          "version": "0.8.4"
        }
      },
      "nbformat": 4,
      "nbformat_minor": 4
    }