0% found this document useful (0 votes)
48 views8 pages

Computational Physics

This document discusses computational physics and solving physics problems using computers. It explains that physicists must formulate problems mathematically and determine how to instruct computers to solve the equations. While computers perform calculations, physicists must interpret the results. The document outlines different types of equations and strategies for solving them analytically or numerically using programs like Mathematica, MATLAB, or scientific programming languages. It emphasizes that numerical solutions are approximate and must be carefully evaluated.

Uploaded by

Indra Pardede
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views8 pages

Computational Physics

This document discusses computational physics and solving physics problems using computers. It explains that physicists must formulate problems mathematically and determine how to instruct computers to solve the equations. While computers perform calculations, physicists must interpret the results. The document outlines different types of equations and strategies for solving them analytically or numerically using programs like Mathematica, MATLAB, or scientific programming languages. It emphasizes that numerical solutions are approximate and must be carefully evaluated.

Uploaded by

Indra Pardede
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 8

Computational Physics

Introduction
3/30/11
Goals

 Calculate solutions to physics problems


 All physics problems can be formulated
mathematically.
 Many strategies for solving equations.
 Display solutions in a way that helps us
interpret the physics
Division of Labor
 Most of the work in solving a problem is still done in
the physicist’s head
 Derive the equations that represent the system of interest
 Understand all the approximations and limitations
(conditions for validity)
 Determine how to instruct the computer to solve the
equations
 The computer does what it is told to do.
 The physicist has to interpret the computer’s output
 Computational solutions are theoretical predictions
(based on the equations). They must eventually be
compared to measurements.
equations
 Many types of equations:
2
x
 Algebraic y = 5x + 2
y
ωL ωL
 Trigonometric, logorithmic tan
2c
= tanh
2c
€ ∂2 y Ek 2 ∂ 4 y
 Differential, integral ∂t 2
=−
ρ ∂x 4

 Linear, nonlinear

 You may have a set of equations that must
be solved simultaneously
 Matrix manipulations, linear algebra
 Your equations may depend on initial
conditions or boundary conditions
Solving equations
 Some special equations have an analytical, or
“closed-form,” solution, which is a certain known
function or combination of functions.
d2 p
2
+ ω2 p = 0 → p(t) = Asin(ωt + φ)
dt

 Most equations (or sets of equations) must be


solved
€ numerically, using a computer. The
resulting solution is approximate, and consists only
of a set of numbers
Visualizing results
 In most cases, you will want to make a plot
of the solution, in order to visualize how
certain quantities depend on others.
 This is something that a computer is
especially good at.
Strategies
 Programs such as Mathematica and MATLAB can help
you work with equations analytically
 Symbolic manipulation
 Might help you obtain analytical solution
 Most physics problems (that are not highly simplified)
involve equations that must be solved numerically.
 Smooth funtions must be discretized
 Derivatives become differences
 Integrals become sums
 Errors of approximation must be carefully tracked
Numerical solutions
 Can be done with Mathematica or MATLAB
 Actual solving strategies are built in
 Need to understand limitations
 Can use a scientific programming language
such as FORTAN or C
 Many basic strategies have already been written
 Use library of routines - customize to your problem
 Solution must be plotted to be useful
 Special graphics programs are available
 Mathematica & MATLAB do this well, too

You might also like