Numerical simulation and visualization of physical systems using GNU Octave
This repository contains my Computational Physics coursework implemented using GNU Octave, completed during the first semester of my B.Tech in Artificial Intelligence & Data Science program.
The project applies numerical methods, differential equation solvers, and visualization techniques to model and analyze a wide range of physical systems encountered in classical mechanics and engineering physics.
basic_xy_plot.m– Coordinate plotting and rotation visualizationfirst_order_ode_solution.m– Numerical solution of first-order ODEs usingode45forced_harmonic_oscillator.m– Driven harmonic oscillator simulationvan_der_pol_oscillator.m– Nonlinear oscillator and limit cycle behavior
(Associated plots and animations stored in Plots & Outputs)
gravitational_field_trajectory.m– Motion under a central gravitational fieldmissile_trajectory_central_gravity.m– Missile trajectory simulation under gravitysatellite_motion_ode.m– Satellite motion modeled using coupled ODEstwo_body_orbital_motion.m– Two-body gravitational interaction
(Associated plots stored in Plots & Outputs)
simple_pendulum_dynamics.m– Time evolution of a simple pendulumpendulum_random_initial_conditions.m– Pendulum motion with varying initial conditionspendulum_with_linear_air_resistance.m– Effect of linear drag on pendulum motion
(Associated plots stored in Plots & Outputs)
projectile_motion_2d.m– Two-dimensional projectile motionprojectile_motion_with_air_drags.m– Projectile motion with air resistanceparticle_motion_linear_drag.m– Particle dynamics under linear drag
(Associated plots stored in Plots & Outputs)
planar_rotation_of_rigid_body.m– Planar rotation of a rigid bodyrigid_body_rotation_matrix.m– Rotation matrices for rigid body motiontime_dependent_rigid_body_rotation.m– Time-dependent rotational dynamics
(Associated plots and animations stored in Plots & Outputs)
- GNU Octave (version 6 or later)
- Open GNU Octave
- Navigate to the folder containing the desired
.mfile - Run the script directly (example:
first_order_ode_solution) - View the generated plots and outputs
- Numerical solution of ordinary differential equations
- Use of ODE solvers such as
ode45 - Modeling of mechanical, orbital, and rotational systems
- Linear and nonlinear dynamics
- Scientific computing and visualization
This work was completed as part of the Computational Physics course during the first semester of the B.Tech AI & Data Science curriculum.
The course emphasizes computational approaches to physics problems, enabling deeper understanding through simulation and visualization.
MIT License
Copyright (c) 2026
Krish Singh
https://github.com/wasitkrish