Hi all !
I'm in between my university exams right now, and hence won't be able
to spare much time. I'm attaching some Python codes I wrote solving
problems in the book "Elementary Principles of Chemical Processes :
Richard M. Felder, Ronald W. Rousseau". These are very simple codes
and I'll be sending some more better / more challenging codes along
the way.

Thanks.
Regards,
Shubham Singh Tomar
Chemical Engineering


On 4/23/13, Pallav Tinna <[email protected]> wrote:
> Hi Mentors!
>                 Recently, I submitted two patches for the bugs
> http://bugs.ascend4.org/view.php?id=572 and
> http://bugs.ascend4.org/view.php?id=530. I have added the files and notes
> in the tracker itself. Working on these bugs, have made me familiar with
> the coding structure of the pygtk GUI.
>
> I would like to contribute to projects, GUI improvements and GUI update to
> GTK3 as part of GSOC this year. Help me with your guidance.
>
>
> Regards,
>
> Pallav Tinna
> 3rd Year Undergraduate Student
> Computer Science and Engineering
>
> International Institute of Information Technology,Hyderabad
> IIIT-H (India)
>
>
>
> On Thu, Mar 14, 2013 at 4:53 PM, Krishnan Chittur <[email protected]> wrote:
>
>> Download the code, compile - run some models/methods - read some of the
>> documentation
>> and see where you think you can make a contribution ... and good luck!
>>
>> On Thu, Mar 14, 2013 at 12:24 AM, Pallav Tinna
>> <[email protected]
>> > wrote:
>>
>>> Hi,
>>>        This is Pallav Tinna, 3rd Year Computer Science student at
>>> International Institute of Information Technology, Hyderabad (IIIT-H). I
>>> am
>>> planning to apply for GSOC-2013 in ASCEND. I have a sound knowledge and
>>> experience in C, C++, Python and GUI programming. I have already started
>>> familiarizing myself with ascend source code and coding techniques. Just
>>> thought I would introduce myself here. I would be nice if someone can
>>> guide
>>> where to start from.
>>>
>>>
>>>
>>>
>>> Regards,
>>>
>>> Pallav Tinna
>>>
>>> 3rd Year Undergraduate Student
>>>
>>> Computer Science and Engineering
>>>
>>> IIIT-H (India)
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics
>>> Download AppDynamics Lite for free today:
>>> http://p.sf.net/sfu/appdyn_d2d_mar
>>> _______________________________________________
>>> Ascend-sim-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/ascend-sim-users
>>>
>>>
>>
>>
>> --
>> It is OK to print this email.
>>
>>
>>
>>
>
#-------------------------------------------------------------------------------
# Name:        Example 7.2-2
# Purpose:
#
# Author:      Shubham
#
# Created:     24/04/2013
# Copyright:   (c) Shubham 2013
# Licence:     <your licence>
#-------------------------------------------------------------------------------

# Elementry principles of Chemical processes
#Chapter 7: Energy and Energy balances

h = float(input("Enter the height: "))
q = float(input("Enter the flow rate: "))
g = 9.81
print("The power required is",h*q*g,"Watt")
#-------------------------------------------------------------------------------
# Name:        Example 7.2-2
# Purpose:
#
# Author:      Shubham
#
# Created:     24/04/2013
# Copyright:   (c) Shubham 2013
# Licence:     <your licence>
#-------------------------------------------------------------------------------

# Kinetic Energy transported by a Flowing stream

from math import pi
ID = float(input("Enter the Internal diameter of the pipe (cm):"))
Qv = float(input("Enter the Volumetric flow rate(m^3/h):"))
rho = float(input("Enter the density of the flowing liquid(Kg/m^3)"))

velocity = (Qv/3600 * 1/(pi*0.01*0.01))
Mv = (Qv/3600)*rho

print ("Rate at which Kinetic energy is transported by the Fluid, Ek is:", 
Mv*velocity*velocity/2,"Joules/sec")
#-------------------------------------------------------------------------------
# Name:        Example 2.7-3
# Purpose:
#
# Author:      Shubham
#
# Created:     24/04/2013
# Copyright:   (c) Shubham 2013
# Licence:     <your licence>
#-------------------------------------------------------------------------------

# Curve fitting on Semilog and Log plots

from pylab import *
import matplotlib.pyplot  as pyplot
a = [ pow(10,i) for i in range(10) ]
fig = pyplot.figure()
ax = fig.add_subplot(2,1,1)

line, = ax.semilogy(a, color='green', lw=2)
show()
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Ascend-sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ascend-sim-users

Reply via email to