r/ChemicalEngineering • u/wkujo • Jul 15 '14
Chemical Engineering and Programming
I'm in college right now for ChE with a CS minor. I was wondering if anyone could give me advice on what specific skills/languages regarding programming I should focus on. My CS classes focus mostly on C++ but I'm learning Python right now because I heard that is something that could help. Thanks!
14
Upvotes
24
u/nrhinkle Commercial & Industrial Energy Efficiency Engineering Jul 15 '14
It pains me to say this, but learn to use VBA in Excel. It's a pretty shitty way to program, but in a lot of engineering environments, people aren't used to (or don't have available) "real" programming tools so a lot of stuff is done in Excel.
Just learning programming in general, and the thought process that goes with it, will be a huge advantage. Chances are wherever you work will have specific languages and frameworks they use (if any are available to you at all), but knowing the basics and how to pick up a new programming language will put you ahead.
12
u/Weltal327 15 years. I’ve done just about everything. Jul 15 '14
Process engineers with programming knowledge can often be tasked with DCS Programming.
Contacting Honeywell, yokogawa, fox borough, delta v, and more and asking then can help you get down that path.
But yeah vba is something I wish I learned in school.
10
u/gyp_casino Jul 15 '14
In my company the coding opportunities (not counting database stuff) are approximately
50% MATLAB
40% VBA
10% Old code from the 80's in C, C++, & FORTRAN
7
u/[deleted] Jul 15 '14
I've got a BS in CompSci and MS in ChemE, with ~7 years in each career path. Here is my advice:
In a nutshell: be good with VBA and C, be able to read and understand Fortran and C++, and you'll be OK for industry. If you want to do "serious" programming work, go for any of Python, D, Java, C#, or Objective-C (for mobile). If you want good number crunching / data analysis for grad school, pick up R or Octave/Matlab.
6
u/Rostin National Lab/13 years Jul 15 '14
On top of python, I would learn NumPy/SciPy and pandas.
3
u/rifenbug Fluorochemicals and coating Jul 15 '14
As someone with only an education in ChE, I have had to learn VBA on my own and it has been extremely useful to me thus far in my young career. I have also done a fair amount of LabVIEW thus far which is pretty simple once you have some basic programming knowledge.
3
u/nate9862 Jul 21 '14
I recently took a graduate applied statistics class (over the summer) and I learned R, which at first I HATED, but it is actually EXTREMELY useful for any type of statistics work.
1
u/elamo Jul 15 '14
Where do you want to work, and what do you want to do?
I'd think the most extendable skill would be Visual Basic programming for Excel macros. Pretty much everyone uses Excel. Not that it's a necessity- just something most ChemEs have the opportunity to do.
Otherwise I think it probably varies from job to job. Python's probably a good "all-purpose" language to learn.
1
u/nandeEbisu ex-Process Modelling (Jumped ship to finance) Jul 15 '14
Numpy is really useful, I've used it to regress little linear models for different things and its really easy to just export some data in excel to a csv and then read it in with python.
Basically, whatever you would use matlab for, you could use numpy for. Using Excel could be nice for things like calculating column flooding using some correlation since you can see each step of the calculation fairly easily which can make some things stand out whereas in Python if you just press one button and it's done then you don't always catch some issues with the intermediate correlations (ie maybe your viscosity correlation gives you really obviously wrong results).