Showing posts with label school. Show all posts
Showing posts with label school. Show all posts

19 November 2011

Color spacing out

On certain pages---and only certain pages---of my LaTeX-written dissertation, sub-pixel anti-aliasing was strangely unavailable. On these pages, where I'd embedded PDFs created in Illustrator, the print quality would also suffer. And this behavior only appeared in documents generated on one computer, which has pdftex-1.40.12; not my other, which has pdftex-1.40.11. Moving the PDF file from one computer to the other preserved the behavior of that PDF.

After a little hunting, I determined the problem to occur only when Illustrator saved its PDFs in a CMYK color space, which were then embedded in the newer pdftex-generated document. Telling Illustrator to use an RGB color space for that document fixed the problem.

The things you learn as a nuclear engineer.

12 October 2011

Captions

The Rackham dissertation requirements state that "at least" the first sentence of all figure captions must appear in the "List of figures" at the beginning of the thesis. I follow the stylistic convention of having a brief description of the figure as the first sentence, and a sometimes lengthy elaboration afterward. It is unwieldy to have a paragraph of explanatory text appear in the index at the beginning, so I've been using the \caption[as it appears in index]{as it appears on the page} feature of LaTeX captions to have only the first sentence show in the index. To prevent the duplication of text, and to comply with the requirement that the first sentence must exactly match, I wrote the following simple but very useful LaTeX macro:

\newcommand{\Caption}[2]{\caption[#1]{#1#2}}

Now, I can write my caption as \Caption{Cross-sections in my test problem.}{Light regions have $\sigma=1$.} without having to manually duplicate the first sentence.

23 April 2011

Research code is now open sourced

Well, after talking with a group of nuclear engineers who are interested in open sourcing their codes, and after being persuaded by my friend Mike that it was justifiable to return some of my tools to the taxpayers who've sponsored my education, I have decided to open up my research code. The project is called PyTRT, and it's available at GitHub under a Simplified BSD license. Documentation for PyTRT is available, but it is probably overwhelming. We'll see if this ever amounts to anything.

04 April 2011

Red hell and death and taxes

Well, I broke down and spent the morning investigating my tax situation, which was rather confused at the end of last year. After some burrowing, I found that TurboTax was surprisingly right after all. Scholarships and fellowships that are reported on Form 1098-T rather than Form W-2 count neither for "earned income credit" (on Schedule M) nor for IRA purposes.

As regards Schedule M, which covered 2009's "Making Work Pay" credit, the "Earned Income Worksheet" line 4a specifically subtracts scholarship income: so people who rely solely on fellowships for their income are not eligible for earned income credits.

Finding out eligibility for Roth IRAs took considerably more digging, because on some portions of the 1040A instruction sheet, it says that scholarships count as "earned income." If you look at Publication 590, it says under "What is compensation?" that "Scholarship and fellowship payments are compensation for IRA purposes only if shown in box 1 of Form W-2." You can only contribute to an IRA if you have a non-zero "compensation."

So there you have it. This is not official tax advice, but you should look at the linked forms and draw the same conclusions that both TurboTax and I did. I'm glad the situation is clearer now, though of course I wish our tax system weren't such a mess.

02 March 2011

Sharing research code

The more I work on my research code, PyTRT (a research code with several dozen transport methods—diffusion, Monte Carlo, P1, SN, IMC, etc.—implemented in 1D and 2D), the more I'm convinced this could be a useful tool to many people in methods development. I'm forced to ask myself what I should do with it after I graduate. It's entirely likely that I will continue to use it in my next career, but should I release it to the public, or to my department, or to whom? Should I try to sell it?

It was developed using funds from an NSF GRF, which "encourages Fellows to share software and inventions, once appropriate protection for them has been secured, and otherwise act to make the innovations they embody widely useful and usable," and from an NEUP fellowship, under which the "DOE claims no rights to any inventions or writings that might result from its fellowship awards." That seems to leave me all the flexibility I need.

Does anyone have an opinion to offer?

09 December 2010

Tradeoffs everywhere

Among the benefits of being a grad student is the ability to do literature review in one's hot tub.

Among the drawbacks of being in Ann Arbor is waking up to find the ambient temperature outside to be 5 °F.

12 March 2010

It's science, ok

Today I had a little fun with my code. As I've mentioned too often, it's written with a Python front end. That means I can very easily interact with the hundreds of Python modules out there. Well, this being a Friday afternoon, I decided to tie it into an image processing library, which will let me turn an image into a series of values, which I can then define as a field on my mesh (e.g., the total cross section). So I did that with a test image, and ran it through my transport code.

The code to load an image as grayscale, create the mesh, and set the cross sections:

    im = Image.open(fname).convert("L").transpose(Image.FLIP_TOP_BOTTOM )
    values = ( (255.0 - x) / 255.0 for x in im.getdata() )
    args = list(im.size) + list( 10.0 * float(i) / max(im.size)
                                  for i in im.size )
    mesh = meshlib.Mesh(*args)
    sigma_t = meshlib.CellFieldFloat(mesh, meshlib.VectorFloat(values) )

I also did this with a picture of my advisor.

15 January 2010

ANS transaction summary example

It's "call to papers" time for the ANS transactions, and a number of hits regarding a LaTeX template for it are increasing. (For whatever reason, the ANS only provides an example file in MS Word.)  I've had a request for an example file showing how to use them; for any other interested parties, the example has now been uploaded.

18 February 2009

CC license

I'm LaTeXing my class notes, and I plan on distributing them in some sense. Here's the Creative Commons license in LaTeX that I came up with (which puts CC in a circle and uses the hyperref package to hyperlink it):
\newcommand{\cclicense}{%
\smash{\raisebox{-0.45ex}{%
\setlength{\unitlength}{1em}%
\begin{picture}(1,1)%
\put(0.5,0.5){\circle{1}}
\put(0.5,0.5){\hbox to 0pt{%
\hss\raisebox{-.45ex}{\tiny\textsf{CC}}\hss}}%
\end{picture}%
}}%
\hskip -1em%
\href{http://creativecommons.org/licenses/by-sa/3.0/}%
{\ \hskip 1em \textsf{BY-SA}}%
}
Update: thanks are due to Mike for pointing out my use of an externally defined term, which I thought was in base/latex.ltx but was actually defined elsewhere.

10 December 2008

A lot of effort went into this

The first shareable version of mcgeometry, the general combinatorial geometry code for transport, is finished.

22 September 2008

What the functor?

Today I did the most advanced C++ programming that I've ever done. It's a recursively templated function that checks for soft equivalence of two doubles, or two vectors of doubles, or two vectors of vectors of doubles, or so on and so on.

This evening, I took that design and added functors to it, so that it can do any arbitrary comparison. I'd just read about them yesterday and gone, "Huh. What kind of weird application could those have?"

19 April 2008

Modern research technology

My class was assigned a sort of literature review project for our nuclear fuels class. I'd been to a presentation by Argonne on fast reactors, and one of the things they mentioned was how metallic fuels would probably be superior to metal oxide fuels in a sodium-cooled reactor.

So my partner and I chose metallic fuels for our topic. Well, basically, thanks to the amazing technology that's only shown up in recent years in available consumer technology, my life and ability to communicate information was fantastically simplified.

The first step was to use Google Scholar to find some good references. So I searched for "metallic fuel" fast reactor and found a few to start with. There's an option in the preferences to show a link to import the bibliography information into BibTeX format (like so). With Michigan's library subscriptions I was able to follow the link to ScienceDirect and other sites and actually download a digital copy of the article as a PDF. [Brief aside: I just realized that PDF format is one of those redundant acronyms.] So with the copied BibTeX information, I opened up BibDesk, created a new entry that now has all of the bibliography data, and dragged in the PDF. From this, I can automatically generate a bibliography in the report and citations and so forth (which, with LaTeX using BibTeX, is a piece of cake).

In short, I was able to easily find a lot of useful references, organize them, and use them. But one of the coolest things actually made itself useful during our presentation. Someone asked a question about iodine and technetium radiotoxicity, and how fast reactors transmuted those to less harmful elements. I couldn't recall anywhere in the papers offhand, but I opened up BibDesk, entered "iodine" in the search file content field, and double-clicked on the paper that showed up. It opened the publication in Preview, and inside that it had automatically highlighted eveywhere that "iodine" appeared in the document. Then I dragged the window over to the projector screen to show the relevent plot and text. So in about 10 seconds I was able to find exactly what information he needed. Pretty sweet! And to think that 25 years ago graduate students were lucky if they didn't have to use a typewrite to write their thesis.

06 November 2007

More of the Same

I found out today that at UMich, at least in the nuke department, Ph.D. students are discouraged from doing a master's thesis. It's usually a function of coursework: I think it's something like 30 hours have to be taken.

Also, qualifiers are given at the end of January and May. (School starts Jan. 3 and ends April 20.) I might take mine next May, since I am told that the reactor theory course I am taking this semester factors heavily into it.

ANS meeting next week: I present in 7 days 12 hours.

05 October 2007

Fact

I seriously get a lot of my best work done during colloquium/seminar.

28 April 2007

National Science Bowl 2007

Well, I've been in Washington, D.C., for two days now. Science bowl is a science competition for high schoolers in which I participated back in high school; it was probably my favorite part of all 12 grades.

This year I asked to come back as a moderator -- basically like Alex Trebek, except cooler, and there are a lot of us and we don't have moustaches and aren't on syndicated TV. But it's the same general idea. The actual competition starts tomorrow, although we moderators have spent most of today taking turns as moderators and competitors among ourselves (tons of fun, but still kinda exhausting over an 8-hour time period).

Yesterday and the previous evening we've been around the downtown area. I broke off from the rest of the group on Friday and walked around the museums on the mall. The Hirshorn modern art museum didn't have very good exhibits this time around (when I went two novembers ago it had some pretty cool stuff). I browsed quickly through the new Native American museum; its most interesting blurb was about an American Indian who dressed up in traditional clothes and lay down with his eyes closed in a glass box in a real museum as though he were an exhibit, as a rebellion against the idea that their traditions and heritage are only a thing of the past.

My favorite exhibit of anything in DC is by far the gems and minerals exhibit at the Smithsonian Natural History Museum. It is amazing.

Yesterday evening I met up with my friend who graduated and moved up here to work for the NRC -- we had a good time. The day before that I walked around the chevy chase neighborhood admiring the cherry and dogwood trees in bloom; it was pretty. Also, the house two doors North of the 4H campus has a Lamborghini in its driveway.

It's also weird to be around 350 high schoolers for most of each day. Especially when so many of them are so incredibly pretentious. A lot of them are brilliant, but that's still no excuse for the way they behave. The Secretary of Energy spoke to us on Friday morning -- one kid asked him a question about uranium reprocessing. The Secretary gave a very competent answer, but apparently it wasn't what the kid wanted to hear -- he actually started talking back to the guy about U-238. It must have taken incredible patience for the guy to say, "Yes. I know," and to continue unfazed. When you're speaking to someone that important who knows so much more than you do (not only has he been informed from whatever briefings he gets, but also he has a Ph.D. in chemical engineering or something) you need to ask your question, learn from his answer, and sit down. The kid wasted the time of both the Secretary and the rest of the audience, and he made himself look like an idiot in the process. Ugh.

But besides being around those kind of people part of the time (my roommate is sort of like that -- it's obvious he and his accomplishments are the only thing he cares about) it has been a lot of fun. Plus, my friend from high school and A&M is volunteering as well.

25 April 2007

Graduate school

Last weekend, I visited Texas A&M's graduate nuclear program. It made my decision of where to go a lot tougher than I anticipated. Their team of transport and reactor people is top-notch. After lots of careful consideration, talking with people, and praying, I've decided that Michigan is where I should go. So I'm going to Michigan!

15 December 2006

Finished

An hour ago, I received my final undergraduate grades. I walk the stage in 10 hours. Yay!
Our records indicate that you are academically cleared for graduation.
You are graduating Summa Cum Laude.

06 December 2005

Reactor startup

Today I had the fun of being a reactor trainee operator. Exciting. Procedures: unlock the SS scram buttons, engage magnet power, withdraw transient to 100%, withdraw RR to ~40%, start withdrawing shim safeties in gang until reactor reaches critical (not exceeding a 20 second period while doing so), withdrawing SS until 1 MW power, ignore John the ex-Navy annoying senior operator's comments and false alarms and coffee spills, engage servo. Oh yeah! I completely forgot about getting to announce over the PA that the reactor is being engaged and/or steady. It made me feel important. On the way down, disengage servo, hit alarm silence button, lower SS in gang along with TR and RR. And, of course, continue to ignore John.

I also made a microwave s'more. It was gooey.

It is also very cold outside (at least for Texas; it's in the high 30's). I need gloves, a hat, and a heavy coat. Because, biking in this weather? Brrrrrr.

11 November 2005

Pulse

Today we were supposed to pulse the nuclear science center's reactor -- that is, to blow $1.50 worth of a control rod (called the "transient rod") out of the reactor, making about a 15 ms pulse of 1000 MW of energy at peak. Well, in order to do this according to our guidelines, we need to have the reactor critical at 300W with the transient rod all the way in. Unfortunately, the reactor operators had turned the reactor on that morning at exactly at the right time to put us at the peak of the Xenon curve. This added enough negative reactivity to prevent our reactor from going critical even with all four shim safety rods and the regulating rod out. So, we turned the reactor up to 1MW in an effort to burn off some of the Xe-135, but that also increased our fuel temperature which also lowered the reactivity of the reactor.

In sum:
  • To get the reactor critical at 300 W, we had to remove all rods but the TR completely, and remove the TR to about 5%, which is about $0.20 of reactivity removal.
  • When we took the reactor up to 1MW, where the fuel temperature is about 600 deg F instead of 100 deg F at 300 W, we managed to burn off at least $.02 of Xenon, but of course the thermal reactivity coefficient made our reactor a lot less reactive.
  • We inserted the SS rods back to about 92% and the TR back to 0% to bring the reactor power back down.
  • At about 300 W, we took the shim safeties out again, in the hopes that our reactor period would be positive (a slightly supercritical configuration instead of a subcritical one). Alas, our period was still the -80.6 second one characteristic of the longest-lived delayed neutron group.
  • Therefore, our reactor is lame because it doesn't have enough fresh fuel in it.
This is the first time I've been really sad over missing out on a lab like this. Pulsing the reactor is awesome to watch, and I've been looking forward to this lab for months, actually.