# Questions tagged [computational-physics]

Questions with this tag should be about computational physics, which is the study of physical situations with the use of software (commercial or in-house). Please note that details of writing and/or debugging code is OFF-TOPIC and should be asked at either Computational Science, Code Review or Stack Overflow.

1,135 questions
Filter by
Sorted by
Tagged with
556 views

### Using the Fourier transform to find the natural frequencies of coupled oscillators

How can I find the natural frequencies of a system consisting of a pair of coupled oscillators using Fourier transforms? The System consists of two masses and three springs. One of the springs ...
30 views

### Is it realistic for soundwaves under water to “sink” or “float”?

I'm studying soundwaves under water and I had a numerical problem that I was asking about. https://stackoverflow.com/questions/28904017/are-my-matlab-iterations-working Now I wonder if you can tell ...
677 views

### Probability density function of a particle for computation [closed]

I'm writing a program, part of which relies on a particle being able to change location similar to a how a real particle would behave (pardon my physics). For example, on a grid of 100x100, a ...
1k views

### My python trajectory calculator for a small mass in a gravitational field - why is energy conservation violated?

I wrote this thing to calculate the next position of a small mass, given its current position and velocity, and a vector field determines acceleration. It sort of works - except I can never get the ...
2k views

### Physical simulation in python [closed]

Is there a "standard" python package used to aid in physical simulations? What is the most popular? edit: perhaps I should have worded this question differently. Something more to the effect: Could ...
560 views

### Monte carlo simulation for continuous spin model (e.g. XY or Heisenberg model)

Unlike the Ising model, the XY model and the Heisenberg model have a continuous spectrum. So one need discretize them for a numerical simulation. But how to make sure the discretization procedure ...
261 views

14 views

### What (in silico information) defines the transfer function of a Quantum Amplifier, in the form of a molecule?

Let’s say a team of scientists have published the structure of a molecule they claim acts as a quantum amplifier. Photons travel along a quantum channel carrying qubits in their polarization. The ...
33 views

### Simulation of Spin Hall effect

Is there commercial software available which takes the spin Hall effect into account? I know HFSS and Comsol are popular EM solvers. In my case, I have a piece of metal and a permanent magnet ...
48 views

### Monte Carlo integration - convergence

I have a 5D integral being calculated with a Monte Carlo uniform random sampling. The issue is that the region of integration is very small and for 100000 points I get only around 20-30 points every ...
26 views

### Verifying completeness of constants of motion

I can find constants of motion by looking at the null space of the Poisson Bracket operator $\{H, \cdot\}$ over a polynomial space by brute force with symbolic algebra (code). This scales terribly ...
### $<P_T>$ distribution as function of PL
I have a conceptual problem when working with some Monte Carlo generated data. I have to simulate the $P_T$ and $P_L$ distribution for $N$ particles through Monte Carlo methods as follows: \theta \...