Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

zvanjak/ExploringPhysicsWithCpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

12 Commits

Repository files navigation

Exploring Physics with C++

Table of Contents

  1. Introduction
  2. Installation
  3. Images of simulations from the book
  4. Programs by chapters

Introduction

This repository is a website for my forthcoming book "Exploring Physics with C++" (now in version 0.5).

In folder Book you will find latest PDF (draft) version of the book.

In the folder Code you will find the source code for the programs in the book.

Installation

To try out the programs, simply clone the repository to your local machine by the method of your choosing, and open folder Code with Visual Studio Code (or Visual Studio on Windows).

Images of simulations from the book

CollisionSimulator2D - mixing gasses in 2D

Mixing gas 2D

CollisionSimulator3D - Mixing gasses in 3D

Mixing gas 3D

Shockwave in 2D - 100 energetic particles in the middle of the box, creating a shockwave

Shockwave 2D

Dependence of pressure on N (number of balls/molecules in 2D gas simulation)

Pressure vs N

Dependence of pressure on V (volume of the box in 2D gas simulation)

Pressure vs V

Gravity in 2D - examples of elliptical orbits

Gravity 2D elliptic

Gravity in 2D - examples of hyperbolical orbits

Gravity 2D hyperbolic

Gravity in 3D - orbits of five bodies, with one body in the center and four orbiting it

Gravity 3D

Programs by chapters

Chapters worth looking at are:

About

Website for my forthcoming book "Exploring Physics with C++" - book drafts, MML code and all examples

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /