che132a-rec-6

che132a-rec-6 - Chemical Engineering 132A Analytical...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Chemical Engineering 132A Analytical Methods of Chemical Engineering Professor Mike Gordon, Fall 2011 Mathematica Assignment #6: Visualizing PDE Solutions Commands for today Sum[f[n],{n,1,100}] Sum f[n] from n=1 to 100 ft=Table[f[n],{n,1,100}] Make a list of all f[n] for n=1-100, call the result ft ft[[5]] Pick out the 5 th element of the ft list Chop Chop will make really small terms identically =0 Animate[Plot[f[x,t],{x,0,1}],{t,0,1,0.1} ] Animate f[x,t], plot f[x,t] for z=0->1 and change t NIntegrate[f[x],{x,0,1},AccuracyGoal->8,MaxRecursions->20] Numerical integration for oscillatory functions Today we are going to visualize the solution to the 1D heat equation. We will consider a long, insulated bar with the temperate at each end fixed at 0 °C and some initial temperature distribution f(x) at t=0: 2 2 x T t T ∂ ∂ = ∂ ∂ α (1) ) , ( ) , ( = = t L T t T boundary conditions (2) ) ( ) , ( x f x T = initial condition (3) Suppose our rod is length L=1, the thermal diffusivity...
View Full Document

This note was uploaded on 12/29/2011 for the course CHE 132a taught by Professor Gordon,m during the Fall '08 term at UCSB.

Page1 / 2

che132a-rec-6 - Chemical Engineering 132A Analytical...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online