Skip to content

Instantly share code, notes, and snippets.

View Ulu2005's full-sized avatar

Kowa Ulu2005

View GitHub Profile
@Ulu2005
Ulu2005 / gist:4238410
Created December 8, 2012 03:09
Engineering Thermaldynamics

#工程热力学第9章——气体动力循环笔记

这一章主要讲活塞式内燃机和燃气轮机的燃烧循环,通过合理的简化,得到易于分析却又具备参考价值的理想循环。

##核心概念

###性能参数类

  • 循环净功 = 吸热量 - 放热量
  • 循环热效率 = 净功 / 吸收热 = 1 - (放热量 / 吸热量)
  • 相对内效率
#Newbie programmer
def factorial(x):
if x == 0:
return 1
else:
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal
@Ulu2005
Ulu2005 / app.py
Created November 25, 2012 08:50
A little case of using wxPython with matplotlib
# -*- coding: utf-8 -*-
import os
import wx
from scipy import interpolate
import numpy as np
import matplotlib.pyplot as plt
class MainFrame ( wx.Frame ):