image thumbnail

updated 3 months ago

Two dimensional wave interference using Finite Difference Time Domain method (FDTD). by Sathyanarayan Rao

Using FDTD, interference of two sinusoidal source is visualized using FDTD method in TM mode. (pml boundary conditio..., 2d fdtd, interference)

interference.m

image thumbnail

updated 3 months ago

Magic Time Step in 1D FDTD by Sathyanarayan Rao

1D FDTD illustration using magic time step (magic time step, fdtd)

magic_spectra.m

image thumbnail

updated 4 months ago

Explicit Numerical Methods to solve Differential Equation by Sathyanarayan Rao

Here , I compare Euler, Runge-Kutta and Adam-Bashforth methods to integrate a simple function. (runge kutta, adam bashforth, numerical method)

f( t )

adam.m

image thumbnail

updated 5 months ago

Analytical plot of Dielectric function of Lorentz medium by Sathyanarayan Rao

This code plots complex dielectric function of a Lorentz medium using its analytical formula. (lorentz oscillator mo..., dielectric function, lorentz medium)

dielectric.m

image thumbnail

updated 6 months ago

Total Field Scattered Field source with Perfectly Matched Layer Boundaries by Sathyanarayan Rao

In this code, TF/SF source is implemented for 1D FDTD source along with PML Boundary condition. (fdtd, etalon, perfectly matched lay...)

fdtdunit.m

image thumbnail

updated 6 months ago

Optical Spectra of Dielectric slab using 1D Finite Difference Time Domain (FDTD). by Sathyanarayan Rao

This code calculates Transmission and Reflection spectra of Etalon slab using FDTD method. (1d fdtd, total field scattered..., etalon)

etalon.m

image thumbnail

updated 7 months ago

1D Finite Difference Time Domain simulation (FDTD) with Perfectly Matched Layer (PML) by Sathyanarayan Rao

FDTD is illustrated with PML absorbing boundary condition at both ends of 1D space grid. (fdtd, perfectly matched lay..., computational electro...)

fdtdunit.m

image thumbnail

updated 7 months ago

Optical Linear Absorption of a Two Level System by Sathyanarayan Rao

In this code, differential equation for optical polarization is solved. (optoelectronics, bloch equation, two level system)

new.m

image thumbnail

updated 8 months ago

Band structure of GaAs using Parabolic Approximation by Sathyanarayan Rao

Band structure of GaAs using Parabolic Approximation (band gap, energy band, semiconductors)

semi.m

image thumbnail

updated 8 months ago

Fourier transform DFT for selected range of frequencies by Sathyanarayan Rao

For selected frequency range, DFT is computed. (dft, fourier transform)

dftrange.m

image thumbnail

updated 9 months ago

Numerical Solution to Optical Bloch Equation for a two level atom using Runge Kutta method by Sathyanarayan Rao

Numerical Solution to Optical Bloch Equation for a two level atom using Runge Kutta method (optical bloch equatio..., two level quantum sys..., quantum mechanics)

drho11(t,r12,r21,r22,gam,Omega_rabi,delta)

drho12(t,r11,r12,r22,gam,Omega_rabi,delta)

drho21(t,r11,r12,r22,gam,Omega_rabi,delta)

image thumbnail

updated 9 months ago

Simulation of Rabi Flopping in a Two Level Atom using Finite Difference Method by Sathyanarayan Rao

Rabi flopping for a two level quantum system is simulated for different detuning frequencies. (rabi flopping, two level atom, optical bloch equatio...)

rabi.m

image thumbnail

updated 10 months ago

Excited States of Quantum Harmonic Oscillator using Raising Operator by Sathyanarayan Rao

Calculating Excited States of Quantum Harmonic Oscillator using Raising Operator. (quantum mechanics, quantum harmonic osci..., raising operator)

QO.m

image thumbnail

updated 1 year ago

Numerical Solution of 1D Time Independent Schrodinger Equation using Finite Difference Method. by Sathyanarayan Rao

Finite Difference scheme is applied to Time Independent Schrodinger Equation. (schrodinger equation, particle in a box, quantum mechanics)

Schrodinger.m

image thumbnail

updated 1 year ago

Numerical Solution of Euler's Equation for Sod Shock Tube using Richtmyer method. by Sathyanarayan Rao

Euler's equation for Sod Shock Tube problem is numerically solved using two step Richtmyer method. (computational fluid d..., eulers equation, numerical method)

build_Flux( U )

sodtube.m

image thumbnail

updated 1 year ago

Blackbody Radiation Spectrum from Wien's Law and Planck's law by Sathyanarayan Rao

This code calculates blackbody radiation spectrum at different temperatures (blackbody radiation, plancks law, wiens law)

BlackBody.m

image thumbnail

updated 1 year ago

Transmittance and Reflectance Spectra of Multilayered Dielectric Stack using Transfer Matrix Method by Sathyanarayan Rao

Transfer Matrix Method is used to calculate transmittance and reflectance of dielectric layers. (transfer matrix metho..., scattering matrix, optics)

tmm2.m

image thumbnail

updated 1 year ago

Simple Random Walk in Three Dimensions by Sathyanarayan Rao

Random walk is simulated and animated in three dimensions. (random walk, stochastic system, random number)

random_walk.m

image thumbnail

updated almost 2 years ago

3D Magnetic Field Computation of a Straight Wire of Finite Length using Biot-Savart's Law by Sathyanarayan Rao

Here I compute magnetic field of a wire using finite element method (biot savarts law, straight wire, current element)

straight_wire.m

image thumbnail

updated almost 2 years ago

Fraunhofer Diffraction of Light by a Circular Aperture by Sathyanarayan Rao

This code calculates the diffracted intensity pattern for a circular aperture (bessel function, fraunhofer diffractio..., circular aperture)

diffract_circular.m

image thumbnail

updated almost 2 years ago

Finite Difference Band Matrix Method for Laplace Equation by Sathyanarayan Rao

Using band matrix method, Laplace equation is solved for a parallel plate capacitor. (laplace equation, band matrix method, laplacian matrix oper...)

Poisson_equation_matrix_method.m

image thumbnail

updated almost 2 years ago

Redheffer Star Product of Two Matrices by Sathyanarayan Rao

This function computes Redheffer star product of two matrices. (redheffer star produc..., transfer matrix metho..., scattering matrices)

redhefferstar( SA11,SA12,SA21,SA22,SB11,SB12,SB21,SB22)

image thumbnail

updated almost 2 years ago

Building a Dart Board on a Cartesian Grid by Sathyanarayan Rao

This code forms a matrix whose data values represent a Dartboard (dartboard, building geometry, meshgrid)

dartboard.m

image thumbnail

updated almost 2 years ago

Fraunhofer Diffraction of Light by a Rectangular Aperture by Sathyanarayan Rao

This code calculates the diffracted intensity pattern for a rectangular aperture (2d diffraction, far field diffraction, fraunhofer diffractio...)

diffract.m

image thumbnail

updated almost 2 years ago

Simulating Chaotic Behavior of Double Pendulum by Sathyanarayan Rao

Chaotic behavior of double pendulum is simulated using MATLAB ODE45 solver (double pendulum, chaos, ordinary differential...)

pend(t, y)

double_pendulum.m

image thumbnail

updated almost 2 years ago

Two dimensional Gaussian Hi-pass and Low pass Image Filter by Sathyanarayan Rao

In this file, two dimensional high pass and low pass Gaussian image filters are demonstrated. (2d image filter, high pass filter, low pass filter)

Gaussian_image_filtering.m

image thumbnail

updated almost 2 years ago

Two dimensional Hi-pass and Low-pass Rectangular Image Filter by Sathyanarayan Rao

In this file, two dimensional high pass and low pass rectangular image filters are demonstrated. (image processing, image filter, rectangular filter)

rectangular_image_filtering.m

image thumbnail

updated almost 2 years ago

Visualizing a Toroidal Surface (Torus) in Matlab by Sathyanarayan Rao

Torus is visualized by using its parametric equation and MATLAB mesh command. (toroidal surface, torus, toroid)

toroid.m

image thumbnail

updated 2 years ago

Newton-Raphson Method to Find Roots of a Polynomial by Sathyanarayan Rao

Newton's method can be used to find roots or zero crossing of a real valued function. (newtons method, newtonraphson, root finding)

R(X)

Rd( X )

Newton.m

image thumbnail

updated 2 years ago

2D Fourier Transform of a cosine pulse using MATLAB inbuilt 2D FFT2 function. by Sathyanarayan Rao

Two dimensional cosine pulse and its Fourier transform is computed and visualized. (2d fft, 2d fourier transform, single sided frequenc...)

cosine_2d.m

image thumbnail

updated 2 years ago

Surface Plot of Dini's Surface (Parametric Surface) by Sathyanarayan Rao

Surface plot of Dini's surface is demonstrated using mesh command (parametric surface, surface plot, mesh plot)

Dini.m

image thumbnail

updated 2 years ago

A finite cosine wavetrain and its Fourier transform by Sathyanarayan Rao

This code computes frequency spectrum of a finite cosine wavetrain using MATLAB FFT function. (fft, axis scaling for fft, cosine wavetrain)

wave_train.m

image thumbnail

updated 2 years ago

Animation of a Simple Pendulum using the Euler-Cromer numerical method. by Sathyanarayan Rao

The oscillatory motion of a simple pendulum is simulated using Euler-Cromer method. (simple pendulum, physics animation, computational physics)

Euler_Cromer_Method.m

image thumbnail

updated 2 years ago

Charging a RC circuit by Sathyanarayan Rao

This code plots current and electric charge as a function of time for a charging RC circuit. (electric circuit, capacitor, rc circuit)

RCckt.m

image thumbnail

updated 2 years ago

Diet Problem in Linear Programming by Sathyanarayan Rao

The goal of Diet problem is to minimize the cost of food satisfying nutrient constraints. (linear programming, optimization, diet problem in linea...)

dietproblem.m

image thumbnail

updated almost 3 years ago

Finite Difference Method to solve Heat Diffusion Equation in Two Dimensions. by Sathyanarayan Rao

Heat diffusion equation of the form Ut=a(Uxx+Uyy) is solved numerically. All units are arbitrary. (aerospace, automotive, diffusion)

heat_2d.m

image thumbnail

updated almost 3 years ago

Magnetic field of a Circular current loop using Biot Savart's Law by Sathyanarayan Rao

Magnetic Field of a circular loop is evaluated in two dimensions. (mathematics, simulation, aerospace)

Biot_3d.m

image thumbnail

updated almost 3 years ago

Magnetic field of a Square current loop using Biot Savart's Law by Sathyanarayan Rao

Using Biot Savarts law, magnetic field due to a square loop is evaluated. (simulation, magnetic field, biot savarts law)

Biot_square.m

image thumbnail

updated almost 3 years ago

Finite Difference Method to solve Poisson's Equation in Two Dimensions. by Sathyanarayan Rao

This code employs successive over relaxation method to solve Poisson's equation. (poisson equation, finite difference met..., successive over relax...)

po.m

Contact us