Category "physics"

Quantum mechanics operator valued function in sympy

Is it possible to have operator valued functions in sympy? Here, by operator I'm talking about the class sympy.physics.quantum.operator.Operator. Somewhat equiv

Molecular MC simulation is not equilibrating

Suppose, a polymer has N monomers in its chain. I want to simulate its movement using the bead-spring model. However, there was no periodic boundary condition a

How to calculate the path of a particle subject to a vortex?

I'm trying to draw a path of a particle starting at (x0,y0) subject to a vortex located at (xv,yv). This is inspired by Lorena Barba's AeroPython. As stated in

unity isn't registering the collsion between my player and the obstacles

I have tried for some time to fix the problem I'm having, I've looked at tons of different websites and I can't find what is wrong with my script. The player (W

Snell's Law not functioning

I am writing a program to calculate light refraction using snell's law, however, when I run the program it prints -0.7076118148 rather than the correct value of

How to implement Uniformly Accelerated Motion Formula into Flutter Animation

I tried to create a Flutter Web App that can simulate Uniformly Accelerated Motion. So, I create a circle as the simulation object and some buttons. When the us

Trouble computing integral with scipy quad

I'm trying to compute the following definite integral: Integral I want to compute: where rho_ch is and a = 3.66 * 10^(-15) m (in meters) b = 0.54 * 10^(-15) m

are contour data (X,Y) ordered in a connected clockwise path in matplotlib?

As in the title: pl = plt.contour(X,Y,Z,levels=[0]) paths = pl.allsegs I wonder how are the data points in paths ordered. Specifically is it oriented clockwis

Finite difference method for 3D diffusion/heat equation

I'm trying to use finite differences to solve the diffusion equation in 3D. I think I'm having problems with the main loop. In particular the discrete equation

How to add more than one header(HDRs) and object in a makefile?

HDRS = EventLoop.h Data.h OBJS = EventLoop.o Data.o dict_$(PROGRAM).o This is from my makefile, I want to add another Data.h and Data.o in it , kindly help! Tri

How do I improve my fit of the double slit diffraction in gnuplot?

I wrote this code to fit the intensity equation of a double slit diffraction over my measured data. The problem is that the fit graph isnt proportional to the p

Creating Rope Physics for Unity

I want to create a bungee jumping-like game in Unity and therefore I need a rope physics. I especially need elastic ropes with capability to pull objects with v