Skip to the content ForoHackers
Log inJoin

Computational science: start here

Computational science
#3243 · · Quote · Report

Computational science uses computers as an instrument of discovery: you turn a question about nature or engineering into a mathematical model, solve it numerically, and compare the result with measurement. It sits beside theory and experiment, and it is how we study things too large, small, fast, slow or dangerous to test directly, from weather to bridges.

Key concepts

  • Modelling: choose what to include and what to ignore, and state the equations and assumptions plainly.
  • Discretisation: turn continuous problems into finite ones with grids, time steps and finite elements.
  • Error and stability: round-off, truncation and conditioning decide whether a numerical answer can be trusted.
  • Verification and validation: check that you solved the equations right, then that they describe reality.
  • Performance: vectorisation, parallelism and memory layout often matter more than clever algorithms.

Vocabulary

  • Convergence: the numerical answer approaching the exact one as the grid or step shrinks.
  • Stiff problem: one where stability, not accuracy, forces tiny time steps.
  • Monte Carlo: estimating a quantity by random sampling.
  • Reproducibility: another person, or you later, getting the same result from the same inputs.

What to study, in order

  1. Calculus, linear algebra and a programming language with numerical arrays, such as Python with NumPy or Julia.
  2. Solve an ordinary differential equation with Euler's method, then a better one, and plot the error against step size.
  3. Study floating-point arithmetic by finding where a formula loses digits.
  4. Solve a heat or wave equation on a grid, and test convergence against a known solution.
  5. Profile your code, parallelise the slow part, and write down how you validated it.

Related tags

#numerical-analysis #simulation #hpc #research-software #linear-algebra

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply