Subdiscipline of theoretical physics which consists in the study of physics problems using numerical algorithms. PLEASE NOTE that questions about computational methods and/or programming are OFF-TOPIC on Physics.SE.

learn more… | top users | synonyms (1)

3
votes
2answers
255 views

Boundary Element Method or Boundary Integral Method Computational Aspects

I have to solve a Helmholtz equation inside a simply connected domain. I know that in general the boundary integral can be written as, $$\phi(x)=\int_V G(x,x') \rho(x')\ d^3x'+\int_S \left[\phi(x')\...
3
votes
1answer
300 views

Euler Equations, Sod shock tube & conservation

Conservation of momentum? I am considering the Euler equations in conservative form and solving the Sod shock tube problem I have written a Godunov finite volume type solver. It solves for density ρ, ...
3
votes
2answers
214 views

Simulate the universe?

Alright, Lets assume that I have a computer with limited calculation speed (1-4GHz) but unlimited parallel processing capability and unlimited memory capacity to go with it. Under this assumption ...
3
votes
2answers
190 views

Why are Markov chains better than naive algorithm for Random picking?

I have a question about the problem of coming up with a random distribution of non-overlapping coins in a given two dimensional space. I don't understand why using the random sequential adsorption ...
3
votes
2answers
112 views

Numerical modelling of a step function in time in a hydrodynamic system. (Runge Kutta fourth order)

So I'm trying to model a hydrodynamic system that introduces a sudden "jump" in the value of a function at a specific time. The system is solved with a Runge-Kutta fourth order method. I have a ...
3
votes
1answer
469 views

Is there an algorithm for N body simulations in General Relativity [duplicate]

I am new to general relativity but have a background in computer science. Why is it so hard to do n-body simulations in GR? For example, there could be a program which takes the properties (mass, ...
3
votes
1answer
144 views

Update velocity or position first in computation?

I am trying to make a simulation of a vibrating string. The string is divided into $n$ points, and each point along the string is acted upon by a force due to the positioning of its neighbors. I ...
3
votes
3answers
544 views

Adding rotation to internal coordinates

I'm optimizing the geometry of a system composed of several interacting masses (a molecule). The energy of the system depends on the relative position of the masses, and all velocities are zero. In a ...
3
votes
1answer
1k views

Some hints/introductions/textbooks for LBM (Lattice Boltzmann methods) fluid simulation?

I come from a computer science background and I want to learn details about LBM in fluid simulation. I have been searching around for a concise tutorial that tells me how LBM is used to solve a ...
3
votes
1answer
764 views

Numerical computation of the Rayleigh-Lamb curves

The Rayleigh-Lamb equations: $$\frac{\tan (pd)}{\tan (qd)}=-\left[\frac{4k^2pq}{\left(k^2-q^2\right)^2}\right]^{\pm 1}$$ (two equations, one with the +1 exponent and the other with the -1 exponent) ...
3
votes
1answer
61 views

Collision between a “spring” and a particle

I am currently attempting to create a simple 2D physics engine, and I just need to know how to solve a certain collision. I have particles, and between any two particles, springs can be connected. ...
3
votes
1answer
98 views

Numerically solving a simple Schrodinger equation with fast Fourier transforms

While trying to solve a stochastic Gross-Piaevskii equation I have found a problem that can be tracked down to something buggy occurring in the simplest Schrodinger equation possible: $$\partial_t \...
3
votes
1answer
47 views

Symmetry in program for ewald summation

The formula for Ewald summation as given in Allen and Tildesley - $$ U = U^{(r)} + U^{(k)} + U^{(bc)} + U^{self} $$ where the k-space contribution of potential is given by $$ U^{(k)} = \frac{1}{\pi ...
3
votes
1answer
150 views

Calculating a two-dimensional orbital path with infinite granularity (non-Euler integration)

For a game I am making, I am trying to calculate the position of an orbiting object around one or more bodies. I have successfully implemented this gravity simulation by calculating the force, then ...
3
votes
1answer
162 views

Looking for a good introductory-level review of pseudopotential methods

I'm looking for a good introductory-level review of pseudopotential methods. In particular, I'd like to understand how the self-consistent pseudopotential methods work.
3
votes
1answer
201 views

Calculation of long-range forces in Molecular Dynamics - Ewald summation

I am trying to write a code to calculate the potential and forces, for the same using ewald summation.For this purpose, the formula for potential and force I have used is : $$ U = U^{(r)} + U^{(k)} +...
3
votes
1answer
102 views

Complex semi-definite programming

I'm doing some calculations and I want to simulate them in python or matlab (or whatever). However I use hermitian matrices and I don't really manage to find a library which enables me to calculate ...
3
votes
1answer
315 views

Epsilon Tensor in FeynCalc

A few days ago I started to use the Mathematica package FeynCalc and one thing confuses me: Assume we have a four-vector $p_\mu$ and we contract it with the epsilon tensor. FeynCalc produces $\...
3
votes
1answer
154 views

Why is the objective function used in Nudged Elastic Band method reasonable?

In Nudged Elastic Band (NEB) method, which is used to find reaction pathways when both initial and final states are know, an objective function is first constructed and then minimized to find reaction ...
3
votes
1answer
253 views

confusion in discrete transform to solve kronig penney matrix equation in fourier space

I have a periodic potential $$V(x) =\sum_{K}e^{iKx}V_{K} =\sum_{n}e^{\iota2\pi nx/a}V_{n} $$ where $K =\frac{2\pi n}a$ is the reciprocal lattice vector and $a$ is the lattice constant and $n =\pm 0,\...
3
votes
1answer
132 views

How to determine predicted CP violation for a given SUSY point?

I'm currently studying at the spectra of some supersymmetric models, and would like to know whether the parameter points I'm looking at are ruled out due to excessive CP violation. I am using SPheno, ...
3
votes
1answer
246 views

Using Relaxation Method to Model Negative Dielectrics in an electric field?

How can you use the relaxation method to model negative dielectrics? The relaxation method is usually used to model electrostatics problems but negative dielectrics are only see in dynamic systems. ...
3
votes
0answers
52 views

Simulation of plasma in tokamak

I am reading some papers on numerical algorithms for simulation of plasma in the context of nuclear fusion in a tokamak. I am getting a little lost as there is a huge number of references, and it is ...
3
votes
0answers
30 views

The definition of fidelity for fermion

The definition of fidelity for two mixed ensembles is $F=Tr\sqrt{\sqrt{\rho_1}\rho_2\sqrt{\rho_1}}$. Now I came across a problem in numerical calculation, Systems A,B are identical, but attached to ...
3
votes
0answers
40 views

How are boundary consitions implemented correctly in time dependent hydrodynamics?

I posted this question more than one year ago and got an answer recently. This answer looks good to me, but indicates that something is wrong in my original approach to the problem. Can someone tell ...
3
votes
0answers
142 views

black body simulation

black body radiation is typically understood from Planck's argument of light resonance in a box, from which the density of states is computed. Now, suppose I want to simulate a black body ...
3
votes
0answers
71 views

Textbooks on algorithms for the perturbative calculation of High energy physics

For the perturbative calculation of High energy physics, I have known some packages such as FeynArts, FeynCalc, MadGraph, CompHEP, GiNaC, and so on. But I am wondering whether there exists a textbook ...
3
votes
0answers
96 views

Non-linear Wave Equation - Numerical Methods

Motivation: I'm working with a highly non-linear spherical wave-like equation (second order PDE). The equation can be written on the form $$\ddot{u} = f(t, \dot{u},\dot{u}',u',u'')$$ where $'=\frac{...
3
votes
1answer
206 views

How much computer power would we need to model every physical aspect of the universe [closed]

So I know there are equations that give you the total energy in the Universe(Friedman). So about if we we to simulate every single interaction from neurons to physical forces, strong and weak, ...
3
votes
0answers
150 views

Difference between a Fixed Point and a Limit Point in implementations of the Renormalization Group (RNG) in Large Eddy Simulation (LES) model

In the introduction of this paper, it is explained that and how the application of a dynamic subrid scale model for turbulence into a large eddy simulation (LES) model corresponds to doing one ...
3
votes
0answers
997 views

Comparison of different ab-initio codes

One may find on the web a lot of different computational packages to perform "ab-initio" calculations of electron structure of the solids. Usually, the documentation is not quite transparent about the ...
3
votes
2answers
132 views

Numerical Tools to find Braiding Statistics of Quasiparticles

While certain classes of systems that exhibit topological order can be solved exactly (such as the Toric Code, Abelian FQH Edges, etc.) there also exist systems (think of perturbed versions of the ...
2
votes
4answers
326 views

Computer Science Modeling of Physical World

I am curious what efforts have been made to date to define virtual computer worlds based on the physics we know in the real world? I think it would be awesome to say start off with an atom defining ...
2
votes
3answers
364 views

Solving the two body problem numerically

I'm trying to solve the two body problem numerically, setting up $G$, $m1$ and $m2$ to be equal to 1. then I located each mass on positions -5 and 5 respectively along the $x$ axis and gave them both ...
2
votes
3answers
95 views

Is it possible to reconstruct the wavefunction of a molecule from a collection of spectra?

Spectra of a molecule can be calculated if the wavefunction is known. Is it possible to do the opposite?
2
votes
3answers
172 views

Do algorithms have an intrinsic time direction?

This article says There is no intrinsic time direction in Newton's mechanics nor in the differential equations of the new physics. My question is, do other types of mathematics, say a cellular ...
2
votes
1answer
54 views

Quantification of uncertainty, or information loss, when modeling a physical system?

Say I have a physical circuit (say a battery, wires and an incandescent lamp) that I want to model. To model it I could perhaps use: traditional circuit theory some kind of finite element analysis ...
2
votes
1answer
34 views

Testing the accuracy of a solar system simulation

I've written a java program to model the solar system, and I need to test its accuracy. What would be some good ways to do that? I've checked for conservation of energy and angular momentum. I'm using ...
2
votes
2answers
263 views

Hamiltonian mechanics really useful for numerical integration? Lagrangian can become 1st-order

(I'm talking about the classical mechanics.) Many texts say that Euler-Lagrange equations are difficult to treat numerically because they are second-order ODEs, ${f_i(\boldsymbol{q, \dot{q}, \ddot{q}}...
2
votes
2answers
223 views

Kernel normalization in Smoothed Particle Hydrodynamcs

I am trying to write some code for a fluid simulation. I have read about Smoothed Particle Hydrodynamics (SPH) and my question is related to the properties of the smoothing kernel. How do I set the ...
2
votes
2answers
143 views

Modeling a potential well

I attempted to simulate the interaction of a moving particle and a potential well in Mathematica. The particle should experience a force of -$1/r^2$, if the equation for the potential well is -$1/r$. ...
2
votes
2answers
214 views

Sampling a distribution (from a galaxy model)

I am reading the following article: http://www.kof.zcu.cz/st/dis/schwarzmeier/galaxy_models.html and am currently at section 5.6 (positions of bodies in a galaxy). I am trying to redo the simulations ...
2
votes
2answers
445 views

Why can't we set the lattice spacing 'a' in lattice QCD?

My question is to do with lattice QCD. In the lattice action there is a parameter, 'a', the lattice spacing in physical units. However, if we want to generate a configuration with a certain lattice ...
2
votes
2answers
75 views

time step in kinetic montecarlo simulation

I have a doubt about how the time step is calculated in kinetic montecarlo simulations. One state with index $i$ is connected to other $N$ states, indexed by $j=1...N$, by transitions that happen ...
2
votes
2answers
129 views

Exact Diagonalization of a BdG Hamiltonian on a Finite Lattice

I would like to numerically find the edge modes of a $p_x$ + $i p_y$ BdG Hamiltonian. The lattice version is given by H = $\sum\left[-t \left(c_{m+1,n}^{\dagger} c_{m,n} + \text{h.c} \right) - t\left(...
2
votes
3answers
215 views

Textbook recommendation for computational physics

Can anyone recommend some good textbooks for undergraduate level computational physics course? I am using numerical recipe but find it not a very good textbook.
2
votes
1answer
172 views

Finding the Riemann tensor for the surface of a sphere with sympy.diffgeom

I have implemented a SymPy program that can calculate the Riemann curvature tensor for a given curve element. However, I am encountering problems solving for the case when the curve element is the ...