Overview#

PHYS 305: Computational Physics#

Description of Course#

  • Modern science combines computational methods, data analysis, empirical evidence, and scientific theory.

  • PHYS 305 provides an introduction to computational and data-driven physics.

  • Topics include:

    • Integration of Ordinary Differential Equations (ODEs) and Partial Differential Equations (PDEs).

    • Modern statistical methods applied to physical research.

  • Focuses on bridging theoretical concepts with practical applications.

  • Includes lectures, hands-on exercises, and projects to develop essential skills for modern astrophysical research.

Biography#

  • CK is a computational astrophysicist advancing theoretical and observational research with cutting-edge technologies.

  • Key contributions include:

    • Developing algorithms to study magnetohydrodynamic turbulence.

    • Using GPUs to accelerate general relativistic ray tracing.

    • Designing cloud computing infrastructures for big observational data.

    • Applying machine learning algorithms for faster, automated data processing.

  • Active projects:

    • Simulating and understanding accretion disks.

    • Capturing images of black holes.

    • Visualizing astrophysical simulations in virtual reality.

  • Educational background:

    • Bachelor’s and doctoral degrees from the University of Arizona.

Science Paradigms#

  1. Empirical evidence

  2. Scientific theory

  3. Computational science

  4. Data science

Modern science is complex!

The last two require computing!

Computational Science#

Physical Models \(\rightarrow\) Data and Results

  • Nonlinear and many degrees of free (DoF) systems:

    • Kelvin-Helmholtz instability: https://youtu.be/Bqg31OwAqEQ

    • Kolmogorov forced turbulence: https://youtu.be/Q2HFwsThk0U

    • Binary black hole mergers: https://youtu.be/1agm33iEAuo

  • Multi-physics problems:

    • Black hole accretion flow: https://youtu.be/-GQ1aUHwx-k

    • Multi-wavelength black hole images: https://youtu.be/G6sSwRf_9ME

  • Large scale simulation libraries:

    • Illustris: https://www.illustris-project.org

    • TNG Project: https://www.tng-project.org

Data Science#

Data and ML \(\rightarrow\) Result

  • Experiments with very large data sets:

    • Event Horizon Telescope: https://eventhorizontelescope.org/science

    • Vera C. Rubin Observatory (LSST): https://www.lsst.org/

  • Let computer learn algorithms from data:

    • Computer vision: http://www.image-net.org

    • Self-driving cars: https://en.wikipedia.org/wiki/Self-driving_car

  • Knowledge discovery from data:

    • UA Data Science Institute: https://datascience.arizona.edu/

    • Machine Learning (ML): https://scikit-learn.org/

  • Artificial Intelligence (AI):

    • AlphaGo: https://deepmind.com/research/case-studies/alphago-the-story-so-far

    • AlphaFold: https://deepmind.com/blog/article/AlphaFold-Using-AI-for-scientific-discovery

    • AlphaGeometry: https://deepmind.google/discover/blog/alphageometry-an-olympiad-level-ai-system-for-geometry

Expected Learning Outcomes#

Upon completion of this course, students should be able to:

  • understand the nature and application of computation methods in physical science;

  • use popular development tools (shell, git, JupyterLab, etc);

  • use good software development practices (version control, documentation, and automation);

  • use computational thinking to break down complex (physics) problems into smaller pieces;

  • solve these problems by writing programs in the python and C programming languages;

  • speak and write about scientific knowledge;

  • appreciate computation complexity and have a basic awareness of numerical errors;

  • use data analysis and numerical methods properly, and be aware of their common pitfalls;

  • critically analyze and interpret data and results presented in tables, graphs and charts as well as perform appropriate computations;

  • read and understand scientific literature from popular sources such as magazines and newspapers;

  • aware of a wide range of science use cases, and develop the skill to self-learn computation tools and methods.

Scheduled Topics/Activities#

#

Week

Tuesday

Thursday

1

Jan 12–Jan 18

01/notes and 01/lab

2

Jan 19–Jan 25

Data representation and round-off errors

Numerical linear algebra

3

Jan 26–Feb 1

Fourier transform and spectral analyses

Guest lecture: useful tools (homework)

4

Feb 2–Feb 8

Interpolation and extrapolation

Numerical and automatic derivatives

5

Feb 9–Feb 15

Numerical integration of functions

Root finding (homework)

6

Feb 16–Feb 22

Optimization

Data modeling I

7

Feb 24–Mar 1

Data modeling II

Selected techniques in machine learning (homework)

8

Mar 2–Mar 8

Project I presentations

Project I presentations

Scheduled Topics/Activities#

#

Week

Tuesday

Thursday

9

Mar 9–Mar 15

Spring recess (no class)

Spring recess (no class)

10

Mar 16–Mar 22

The C programming language

ODE integrators I: explicit methods

11

Mar 24–Mar 29

ODE integrators II: implicit and symplectic methods

ODE integrators III: boundary value problems (homework)

12

Mar 30–Apr 5

Monte Carlo methods I: random numbers and random walk

Monte Carlo methods II: Ising model

13

Apr 6–Apr 12

Monte Carlo methods III: Hopfield network and Boltzmann machine

Parallel computing (homework)

14

Apr 13–Apr 19

Numerical PDEs I: properties of PDEs

Numerical PDEs II: finite difference and spectral methods

15

Apr 20–Apr 26

Numerical PDEs III: finite volume methods

Numerical PDEs IV: finite element methods (homework)

16

Apr 27–May 3

Project II presentations

Project II presentations

17

May 4–May 10

Visiting UA HPC

Reading Day (no class)

Schedule/Due Dates#

The course includes 6 homework assignments and 2 group projects. There are no quizzes or exams.

Homework Assignments:

  • Assignments will be given approximately every two weeks (see schedule above).

  • Students should begin working on them during the hands-on labs and submit them within one week of the assignment date.

Group Projects:

  • Projects will be completed in teams of approximately four students.

  • All project materials must be submitted within one week after the corresponding project presentations.

Grading Scale and Policies#

The course include:

  • 6 homework assignments (10 points each)

  • 2 group projects (20 points each)

These sum up to 100 points total. Students are expected to submit their assignments and projects by the specified deadlines.

This course provides regular letter grades (A–E), which are based on a simple point system:

  • A: 80–100 points

  • B: 70–79.9 points

  • C: 60–69.9 points

  • D: 50–59.9 points

  • E: 0–49.9 points

No scaling will be applied.

Usage of Generative AI#

  • Generative AI tools (e.g., ChatGPT, Google Gemini, GitHub Co-Pilot) can assist with:

    • Brainstorming ideas

    • Debugging code

  • Students must:

    • Write their own code

    • Take full responsibility for their work

    • Demonstrate a clear understanding of the concepts

  • Important considerations:

    • AI tools may produce inaccurate or biased outputs

    • Students must verify facts and critically assess all submitted material

  • Acknowledgment and citation:

  • Violations:

    • Failure to disclose AI usage or submit original work is considered a breach of academic integrity

  • For questions, contact your instructor