Skip to main content

All Questions

Tagged with
0 votes
0 answers
38 views

Force-simulation for graph layout: How to avoid particle collapsing into a single point?

In a force-based graph-layout simulation using Barnes-Hut, what are the conditions for collapse? With collapse I mean multiple (or even all) nodes "collapsing" into a single point. Is there ...
skep's user avatar
  • 1
3 votes
2 answers
172 views

About how to calculate observables in Quantum Monte Carlo with complex weights

I'm rewriting a Diagrammatic Quantum Monte Carlo algorithm following Werner, P., Oka, T., & Millis, A. J. (2009). Diagrammatic Monte Carlo simulation of nonequilibrium systems. Physical Review B, ...
pter26's user avatar
  • 165
0 votes
0 answers
119 views

What are the advantages of tensor network algorithms over monte-carlo simulations in terms of time-evolution?

I understand that tensor networks and monte carlo simulations are based on completely different principles. However, to my knowledge both are used to simulate the time evolution of a system. Is there ...
Souroy's user avatar
  • 193
1 vote
0 answers
113 views

Why are time-reversible integration algorithms in molecular dynamics simulations favorable?

I read that integration algorithms that are not time-reversible tend to be less "stable". Where stable means that the total energy stays constant (is conserved). I'd like to know what it ...
WedgeAntilles's user avatar
1 vote
0 answers
82 views

Reference request: Numerical techniques, Monte-Carlo (MC), Density Matrix Renormalization Group (DMRG), Dynamical Mean-Field Theory (DMFT)

I am an undergraduate student and my previous learning in physics is more on theory instead of numerics. I would be very grateful if you can point me to good introductory lecture notes/lecture videos ...
0 votes
0 answers
55 views

Fluid simulations on spherical coordinate grid: How to handle $\theta=0$ axis?

I am working on a fluid simulation code written in spherical coords. Whoever wrote the original didn't do a great job with the boundary conditions at $\theta=0$ and $\theta=\pi$ axes. My task is to "...
bob.sacamento's user avatar
4 votes
0 answers
350 views

$N$-body gravity simulator: why does energy conservation break down when introducing an adaptive timestep?

I am playing with an N-body gravity simulator using the velocity-verlet algorithm. In the actual simulation I normalize everything so that it is nicely behaved numerically, but I'll express things in ...
KBriggs's user avatar
  • 439
2 votes
1 answer
276 views

Could you use the Barnes-Hut algorithm iteratively-- with multiple center quadrants?

I was wondering if you could use Barnes-Hut simulation beyond what it was originally intended to be. For many Barnes-Hut algorithms, the forces are only considered for a single quadrant, the centroid, ...
Magic Octopus Urn's user avatar
0 votes
0 answers
127 views

What is order of the Wolff Cluster algorithm?

What is the order of the Wolff Cluster update algorithm for Ising Model 2D and 3D?
mehrdad's user avatar
  • 55
3 votes
1 answer
84 views

Markov Process in Monte Carlo simulation

I am trying to understand the detailed balance condition precisely. To get it I went on this page : https://cs.adelaide.edu.au/~paulc/teaching/montecarlo/node22.html It is written the following : ...
StarBucK's user avatar
  • 1,450
0 votes
1 answer
188 views

How to simulate gravitational interaction of bodies in space?

I want to try simulating some bodies in space using the basic formulas I learned in my college mechanics class. So I know Newton's Law and some basic mechanics equations: $\vec{F} = G\frac{m_1m_2}{r^...
rcplusplus's user avatar
1 vote
1 answer
476 views

hard sphere collision condition with periodic boundary conditions

Hello Stack Exchange Physics, I am curious if there is an analytical or efficient numerical solution for the collision of hard spheres in a rectangular unit cell with periodic boundary conditions. ...
Eric Smoll's user avatar
9 votes
2 answers
5k views

Numerical Ising Model - Wolff algorithm and correlations

I'm doing some numerical Monte Carlo analysis on the 2 dimensional Ising model at the critical point. I was using the Metropolis 'single flip' evolution at first with success, though it suffers from ...
Learning is a mess's user avatar
1 vote
1 answer
111 views

Algorithm to simulate impulse response of a solid?

There are well-documented methods of calculating the impulse response of a room (ex. image method, ray-tracing method); however, I have not been able to find anything similar for the impulse response ...
Madison Brown's user avatar