# Tagged Questions

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.

185 views

### Is there a normalized form of the Euler equation discretized with finite volumes?

I want to calculate a flux on my fpga using the Euler equations with the finite volume method. Unfortunately the values of the state variables differ a lot. For example the pressure has a value of ...
147 views

### Computational Fluid Dynamics methods

I have read some articles about the finite difference method on a cartesian orthogonal grid. I understand how it works when Dirichlet boundary conditions are used, or when Neumann boundary conditions ...
64 views

### Schrödinger equation in spherical coordinates using Numerov's method?

So I need to solve the Schrödinger equation using Numerov's method. However, the problem I have assigned to me is in spherical coordinates. As it seems, I only need to take into account the dependance ...
71 views

### Can lens designs be brute-force computed to create optically precise equipment? [closed]

It seems lens design hasn't changed much over the last 50 years or so with many older manual lenses still very much being used today. Can the order, distance between and type of lens elements be brute ...
33 views

### Does *advection* describe the change of density of massless infinitesimal tiny *thingies* injected into a fluid?

I'm considering an incompressible Newtonian fluid with uniform density and try to figure out what's meant by the term advection. Let $\Omega_0\subseteq\mathbb R^d$ be an (infinitesimal small) bounded ...
74 views

### Numerical relativity in causally pathological spacetimes

To perform numerical relativity simulations one almost universally adopts the so called "3+1" approach: spacetime is divided up into spacelike slices, each representing a "moment in time". After some ...
42 views

I understand that this is more of a computing question, but I still think the appropriate place to ask it is here. The Evaluated Nuclear Structure Data Files are on the internet, available for ...
70 views

### Guidelines for $n$-body problem inital conditions

I'm trying to solve a 5-body problem (for the sake of the argument it can be any given $n$) numerically, yet every initial condition I choose seems to eventually drive the bodies apart to infinity or ...
276 views

### Incompressible Navier-Stokes pressure solve in simulations

I am a complete newcomer when it comes to fluid simulations. I'm currently working through some tutorials to understand the idea of of the discretized Navier-Stokes equations for numerical ...
86 views

### Difference in calculated and simulated ellipsies

My task here is to determine orbit parameters, using current values: $\mu=GM$ - standard gravitational parameter $r$ - distance to the object with Mass $M$ $v$ - speed of the object in the point $r$ ...
82 views

### Getting nonphysical results when solving for the index of refraction of a slab?

I'm trying to computationally find the refractive indices (real and imaginary) for a thin slab suspended in air (so the only indices to deal with are air and my material's). I've experimentally taken ...
214 views

### Smoothed Particle Hydrodynamics, Chemical Reactions and Stiffness [closed]

Dear people from stackexchange physics. I have been using SPH for quite a while to simulate free boundary flow, and just recently we tried to include some kind of (simple) chemical reaction in our ...
147 views

### Discrete approximation of charge density

Given the electric potential $\Phi(r)$ and the Poisson's equation: $$\nabla^2 \Phi(r) = - 4\pi \rho(r)$$ Consider the 2-dimensional case and let's say that I want to discretize this using a square ...
160 views

### Deriving the change in the Helmholtz free energy in the context of the free energy perturbation method

I am reading Free Energy Calculations: Theory and Applications in Chemistry and Biology by Chipot and Pohorille. At the beginning of the text (page 19, for example), the authors define the Helmholtz ...
136 views

### reversible cellular automata

Let's suppose a cellular automaton has a value $b(r,t)$ belongs to $Q$ at site $r$ and time $t$, where $Q$ is the set of possible states at each site. Let $N(r, t)$ be the values of the states of all ...
431 views

### How to decide convergence of the ensemble average in a Monte Carlo process

I am simulating electromagnetic scattering off a rough surface. The usual process is to do a Monte Carlo simulation, which is briefly described as follows. Generate a randomly rough surface, and ...
464 views

### Does the universe follow a general physical and computational principle of evolution?

Evolution is a principle in biology, whereby organisms evolve their ability to replicate and multiply in numbers over successive generations. From a computational point of view, the organisms employ a ...
654 views

### Calculating Kramers-Kronig using Mathematica [closed]

First of all, I know there is a Mathematica group in beta, but I don't think the problem of the following is directly a Mathematica issue. I am trying to calculate the change of the refractive index ...
47 views

### Calculating orbits with varying laws of physics? [closed]

The general way planets orbit stars in our universe is determined by the inverse square law and the three laws of motion. Both the inverse square law and the three laws of motion are the reason that ...
45 views

### Monte Carlo simulation of Breit-Wigner

I am using a Monte Carlo approach to integrate a scattering amplitude which has a propagator-squared term like $f(s)=\frac{1}{(s - 4)^2 + 1}$, between $s=0$ and $s=20$. Using a uniform random ...
92 views

### Conversion of satellite coordinates from ITRF to J2000

I have coordinates of various satellites in two coordinate systems: Cartesian coordinates in the international terrestrial reference frame (ITRF) RA / DEC in J2000 epoch, as derived from plate ...
77 views

### What is the time imaginary method? [closed]

I have to submit homework about the scheme which solves the time-independent Schrödinger equation and finds the ground state by the imaginary time method. I know the substitution ...
47 views

### Single fluid simulation algorithm

Every fluid simulation I've seen implicitly involves a fluid that isn't mentioned, usually air. This is clear because the simulation usually has an ambient temperature, and always an ambient velocity. ...
28 views

### Why will a Fourier transform of a pickup placed at the middle of a string only result in odd harmonics?

My physics teacher explained a lot of information about strings but he never went in depth with my question. What happens to the even harmonics and why are the odd ones the only ones picked up?
102 views

### How do I calculate the effect of a prograde, retrograde, radial and anti-radial burn on the orbital elements of a two-dimensional orbit?

My relevant knowledge: This question works in two dimensions, with a two-body problem (see bottom for context). To my understanding, a two-dimensional orbit has the following orbital elements (3D ...
30 views

### Expression for spontaneous emission in solids

I have yet to find a reliable source for the expression of the rate of spontaneous emission in a solid. Can anyone confirm if the following is correct? The basic ingredients of the calculation are ...
73 views

### What is the velocity of Sun due to Earth alone?

If Earth and Sun were in a isolated system, will the Earth's motion around Sun will be similar? What will be Sun's and Earth's velocity when Earth is at its aphelion? Please note that it's not a ...
68 views

### Formulating a symplectic integrator for a non-local Hamiltonian

I recently asked two questions, Q. [1] and Q. [2], regarding reformulating non-local Lagrangians as Hamiltonians. In these questions, the Hamiltonian is formulated as an integral because of it's ...
58 views

### Numerical construction of phase space for a dynamical system

Suppose I have a standard, deterministic dynamical system. For concreteness I'll assume it's a two variable system of the form, $$\dot x_1 = f(x_1,x_2; \theta_1)\\ \dot x_2 = g(x_1,x_2; \theta_2)$$ ...
291 views

### Can I use Runge-Kutta to solve these equations?

Edit: I'm going to give some more background and derivation to show how I got to these equations. I am basically following the derivation that is found in the appendix of the following paper: ...
127 views

189 views

### A puzzle of thermalization in simulating the 3D XY-model

I am learning the classical Monte Carlo simulation. When I simulate the 3D XY-model $$\beta H = -\beta J \sum_{<i,j>} cos(\theta_i-\theta_j)$$ where $\beta$ is the inverse of the temperature ...
238 views

### Ground state Phase Diagram of Bose-Hubbard Model

The Hamiltonian of Bose-Hubbard model reads as $$H=-J\sum\limits_{<i,j>}b_i^{\dagger}b_j+h.c.+\frac{U}{2}\sum\limits_{i}n_i(n_i-1)-\mu\sum\limits_in_i~~~~~~~~~(1)$$ For this we plot phase ...
76 views

### Calculate Euler equations of fluid dynamics without division?

I'm working on the calculation of the Euler equations with the finite volume method. Unfortunately I'm not allowed to do a division. So I'm wondering if there's a form which does not need a division. ...
179 views

### Rigid body collision, 3 circles in contact

I'm working on a 2d physics simulation. It's a continuous time simulation, that is, it uses swept shapes over the time-frame and geometrical/vector 'analysis' to determine most immediate time of ...
118 views

### Motion of rigid body system in absense of work

In the absence of work on the system, is there a closed form equation for the motion of a set of constrained rigid bodies (let's say, using Revolute (ie: simple pivot) constraints)? If the bodies are ...
97 views

### what is two species Bose Hubbard Model? what chage it takes on Fock basis representation?

The Hamiltonian will look like \ H= -t^a\sum_{<i,j>}^{}(a_i^\dagger a_i + h.c.)-t^b\sum_{<i,j>}^{}(b_i^\dagger b_i + ...
804 views

### Magnetic field of permanent magnet [closed]

Hi I am looking for some code to (computationally) calculate the magnetic field of a rectangular permanent magnet in 3D space. Preferably I could edit it to add in my own dimensions. Does anyone know ...
138 views

### Parameter determining argon phase

Currently I am working a molecular simulation to determine phases of an argon NPT ensemble using Lennard Jones potential. Mainly I use the radial distribution function to determine solid, liquid, or ...
379 views

### Help: 3D visualization of magnetic field around moving point charge

The diagrams I'm able to find online only show the concentric field lines in the particle's plane, perpendicular to the motion, which of course generalizes to the cylindrical shape around a conductor. ...
329 views

### Where does Computer Science background students fit in Theoretical Physics [closed]

I am basically an Electronics student - background in computer science (that's where I want to work). I applied for an internship in USA in a research institute where the group is focused in ...
329 views

### Numerical algorithms to generate a random wavefunction from a thermal ensemble

I am seeking an algorithm to generate a random wavefunction = $\sum {c_i |\varphi _i\rangle }$ from a thermal ensemble, whose density matrix $\rho \sim e^{-\beta H}$, without the need to diagonalize ...
188 views

### What software can I use to simulate supersonic gas particle flow? [closed]

Please please help me out with this. I am trying to find a software/program that I could use the simulate the scattering effect of light when it strikes gas particles moving at supersonic speeds? ...
77 views

### Simulation of relativistic probe passing through an external solar system

I recently read about the Breakthrough Initiative to launch "StarShot", a nano-probe that is designed to travel to Alpha Centauri at $0.2c$. One of the challenges to be solved involves the precise ...
24 views

### How is time evolution done in numerical GR?

Suppose we're simulating what happens when a fairly massive object falls into a black hole. Say the object starts far away, so that the initial condition is that the metric is the Schwarzschild metric ...
41 views

### Simulating TE011 mode in cylindrical cavity, Comsol [closed]

I have been trying to simulate TE011 mode in a cylindrical cavity by modifying the example given in Comsol ...
24 views

### Choosing the boundary conditions knowing the potential

So I have to apply Numerov's algorithm to solve the Schrödinger equation in spherical coordinates using the potential $V(r)=-A e^{-r/a}$, where $A=32.7MeV$ and $a=2.18fm$. I have already ...
23 views

### Calculate 2D Effective mass from bulk effective mass

I am trying to create a self consistent Shrodinger Poisson Solver for various semiconductors. There is already one done by Professor Hu from UC Berkeley - QM CV Simulator. Looking at the code, they ...