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)

7
votes
2answers
1k views

Physics of simple collisions

I'm building a physics simulator for a graphics course, and so far I have it implementing gravitational and Coulomb forces. I want to add collisions next, but I'm not exactly sure how to go about ...
0
votes
2answers
680 views

How to determine velocity vector direction with respect to acceleration.

I'm currently writing a program that attempts to simulate particle movement in a gravitational field with more than one object exerting a force on it. I decided that I'd have the particle move by ...
7
votes
4answers
971 views

Church-Turing hypothesis as a fundamental law of physics

The Church-Turing hypothesis says one can not build a computing device which has more computing power (in terms of computability) than the abstract model of Turing machine. So, there is something in ...
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 ρ, ...
7
votes
1answer
232 views

Feynman's infinite amount of logic for one tiny bit of space

Watching one of Feynman's lectures, I came across something that puzzled me. What was Feynman referring to when he said the following? What goes on in no matter how tiny a region of space and no ...
1
vote
1answer
77 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. ...
4
votes
2answers
1k views

Radial Schrodinger equation with inverse power law potential

Recently I read a paper about solving radial Schrodinger equation with inverse power law potential. Consider the radial Schrodinger equation(simply set $\mu=\hbar=1$): $$\left(-\frac{1}{2}\Delta+V(\...
4
votes
1answer
495 views

How to solve the heat equation for compound materials with different heat conductivities numerically?

I'm solving the heat equation with time dependent boundary conditions numerically in a 2D system using the ADI scheme. For the purpose of this question, let's assume a constant heat conductivity and ...
3
votes
2answers
215 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 ...
1
vote
1answer
74 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 ...
16
votes
5answers
1k views

Home-made lattice calculation?

The topic of Lattice QCD or Lattice gauge theory or even Lattice field theory is quite old now. And the main reason for the interest in the topic is the ability to calculate nonperturbative stuff on a ...
20
votes
5answers
4k views

What do theoretical physicists need from computer scientists?

I recently co-authored a paper (not online yet unfortunately) with some chemists that essentially provided answers to the question, "What do chemists need from computer scientists?" This included the ...
11
votes
3answers
2k views

How are physics and computer science getting united? [closed]

How is theoretical computer science getting united with physics? Phenomena like Quantum Computing uses Quantum Mechanics to be able to compute things, how are computers helping not just to model our ...
9
votes
4answers
5k views

Why is the canonical ($NVT$) ensemble often used for (classical) molecular dynamics (MD) simulations?

Molecular dynamics (MD) simulation is a common approach to the (classical) many-body problem. It relies on integration of Newton's equations of motion to simulate the trajectories of many (e.g., ~1,...
15
votes
1answer
4k views

Solving Schrödinger's equation with Crank-Nicolson method

I am trying to numerically solve Schrödinger's equation with Cayley's expansion ($\hbar=1$) $$\psi(x,t+\Delta t)=e^{-i H\Delta t}\psi(x,t)\approx\frac{1-\frac{1}{2}i H\Delta t}{1+\frac{1}{2}i H\Delta ...
9
votes
2answers
257 views

In a Monte Carlo NVT simulation How do I determine equilibration

I'm running an NVT (constant number of particles, volume and temperature) Monte Carlo simulation (Metropolis algorithm) of particles in two dimensions interacting via Lennard-Jonse potential ($U = 4(\...
4
votes
2answers
322 views

Can computers accurately model all of the details (to the subatomic level) of macro objects in collisions?

Frequently when trying to solve cosmology questions physicists turn to computer simulations of the universe (albeit massively simplified) in order to verify or disprove their hypotheses. This got me ...
2
votes
2answers
447 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 ...
9
votes
2answers
2k views

How do I calculate the Reynolds number in multiphase flows?

I am modeling a gas flowing through a liquid. How do I calculate the Reynolds number in multiphase flows? And, at what Reynolds number should I consider the flow to be turbulent? The problem is of a ...
5
votes
2answers
400 views

In condensed matter simulations, how is particle number density computed in practice?

I have been reading a recent paper. In it, the authors performed molecular dynamics (MD) simulations of parallel-plate supercapacitors, in which liquid resides between the parallel-plate electrodes. ...
5
votes
1answer
164 views

Least action principle — numerical simulation strangeness

I'm trying to get some experience with the least action principle, and for this I chose a simple 1-dimensional problem of a particle moving in some field. The least action principle would then look ...
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 ...
2
votes
1answer
736 views

How is acceleration computed in the leap-frog algorithm in computer simulations of particles?

I am reading the book Computer Simulation of Liquids by Allen and Tildesley (here is another link). On page 80, the authors describe the leap-frog algorithm, which is used extensively in molecular ...
8
votes
1answer
148 views

Minimal Extension of Wave Equation to Include Dispersion

Let's say you are modeling some process with the wave equation $\frac{1}{c^{2}}\frac{\partial^{2}\psi}{\partial t^{2}} = \nabla^{2}\psi$. You wish to improve your model by including dispersive effects,...
7
votes
2answers
6k views

Solving one dimensional Schrodinger equation with finite difference method

Consider the one-dimensional Schrodinger equation $$-\frac{1}{2}D^2 \psi(x)+V(x)\psi(x)=E\psi(x)$$ where $D^2=\dfrac{d^2}{dx^2},V(x)=-\dfrac{1}{|x|}$. I want to calculate the ground state energy(...
6
votes
3answers
583 views

How to include random force in the simulation (Classical Molecular Dynamics)

I need to implement a random force in my code according to the fluctuation dissipation theorem. I have a Gaussian distribution function ready width average 0 and distribution 1 and I know I need to ...
3
votes
1answer
470 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
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 ...
1
vote
1answer
138 views

Hartree Fock equations

I don't understand how the Hartree Fock equations define an iterative method! For this discussion, I am referring to the HF equations as described here: click me! Basically if you guess a bunch of ...
-2
votes
2answers
101 views

Standards for scientific metadata in common-use image formats? [closed]

I have a bunch of JPEG, JPEG2000 GIF and PNG files that in theory could be used for some types of science analysis if there were temporal and spatial information in them. Years ago, I had looked into ...
7
votes
1answer
633 views

Numerical schemes, time integration algorithms and energy conservation

What does it mean when someone says a numerical scheme or a time integration algorithm is "energy conserving". How can a numerical scheme "gain" or "lose" or "conserve" energy apart from the numerical ...
5
votes
1answer
162 views

How close to the critical point is sufficient close for measuring critical exponents?

I am learning Monte Carlo and just manage to simulate a phase transition by computing the heat capacity or the susceptibility. I wish I can also compute critical exponents.To this purpose, I have read ...
4
votes
1answer
80 views

Do black hole merger simulations include regions inside event horizons?

Inspired by this question, I would like to ask the following specific point. In numerical simulations of general relativity that involve black holes, like the ones used to understand the black-hole ...
3
votes
0answers
151 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 ...
2
votes
2answers
1k views

Gas viscosity at high pressure, high temperature

EDIT 1 PER COMMENTS I am wanting to model nitrogen gas viscosity as a function of pressure and temperature OR learn of an existing equation that models nitrogen viscosity for the pressure and ...
1
vote
1answer
84 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 ...
1
vote
1answer
133 views

Heat equation with heat radiation and heat transfer

If I want to calculate steady temperature distribution on a one-dimensional stick, and I need to consider both the heat radiation and heat transfer, then my equation will be in the form: $$ \frac{\...
1
vote
2answers
207 views

What is a good model for computing water dropping on a surface?

Before introducing my question I would like to outline the fact that I'm a coder, so I can be wrong when using some kind of terminology. What is a good model for computing the flow, the shape and all ...
1
vote
0answers
769 views

Hysteresis Curve and how to implement it using Preisach model or other models

As a homework I need to draw a hysteresis curve (preferably an interactive one) using Matlab or any other programming language. The problem is I have trouble finding a good algorithm to do so. I need ...
1
vote
1answer
197 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 ...
1
vote
3answers
1k views

Calculate kinematics of body movement from the set of spatial coordinates

Short intro I have a set of 3D (x,y,z) spatial coordinates of arm movement obtained using motion capture system. The example set of such coordinates looks like this (rounded up): ...
1
vote
0answers
91 views

Obtaining propagating solutions for Schrodinger equation from known bound states (in 2 and 3 dimensions)?

If I found all the bound states for a certaing potential in 2 or 3 dimensions (numerically), can I immediately obtain some information about the propagating solutions for the same potential (such as ...
1
vote
1answer
125 views

SDSS spectra FITS format: what do the rows mean?

This might be in the FITS Header, but I couldn't find it. I am looking at the FITS files for SDSS 1D spectro images from DR7 using the SDSS Data Archive Server at das.sdss.org (there might be an ...
1
vote
3answers
147 views

Langevin Equation - Stochastic Differential Equation. What are the subtleties?

I am trying to find out the motion of a particle in 3D governed by the Langevin equation, numerically. Anyway, the Langevin equation is given by $$m \ddot{x} = -(6\pi a\nu) \dot{x} + F_b $$ where $...
0
votes
1answer
175 views

How do we define capillary number in 2D (two dimensions)

In 3D the capillary number $Ca$ is defined as: $$Ca=\frac{\nu \rho U}{\gamma}$$ where $\nu$ is the kinematic viscosity ($m^2/s$), $U$ is the velocity ($m/s$)and $\gamma$ is the interfacial tension ($N/...