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
vote
1answer
357 views

Boundary condition for water waves generation

I am trying to model water wave propagation in 2D with CFD. What would be a suitable boundary condition to generate the waves on the left boundary? Currently I vary the fraction of water above the ...
1
vote
0answers
127 views

Calculating collisions in realtime - dealing with a delay in time [closed]

I wasn't sure in which stackexchange to post this, since the questions deals with a lot of different topics. I've posted it first at stackoverflow, but I've been redirected here... Suppose: You're ...
0
votes
3answers
289 views

Meaning of “Gradient with respect to coordinates of particle” in SPH

I'm currently trying to implement a simple SPH simulation based on a variety of papers. However as I'm not a trained physicist nor mathematician I have a small issue with the following notation and ...
0
votes
2answers
130 views

Grand canonical ensemble with interaction, simulation doubts

First of all, this is a follow-up of my first question. The idea is the same, every state would consist of some particles in a line (with an energy associated) and the particles can not be nearer than ...
0
votes
1answer
82 views

How to solve highly oscillating differential equation [closed]

The equation looks like: $$x''(t)+bx'(t)+c x(t)+dx^3(t)=0.$$ This is the motion of a particle in a potential $cx^2/2+dx^4/4$ with friction force $bx'$. In my case, the friction term is very small and ...
0
votes
1answer
65 views

Connections between Density Matrix Renormalization Group and Conformal Field Theory

Can we use the density matrix renormalization group (DMRG) method to understand problems in conformal field theory? I have been trying to find some connections, but nothing is coming up when I search. ...
0
votes
1answer
33 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 ...
0
votes
1answer
65 views

Broken Thin Lens Algorithm [closed]

We all know the thin lens equation. For $o$ being a horizontal object distance and $f$ being the focal length, the horizontal image distance $i$ is described by: $$\frac{1}{f} = \frac{1}{o} + ...
0
votes
2answers
43 views

Correlation energy - is it the difference between the Hartree-Fock energy and exact energy, or Hartree-Fock PE and exact PE?

For some reason I can't find anything stating it either way explicitly. What I'm talking about is this. Is this difference referring to potential energies or just energies in general? I assume it's ...
0
votes
1answer
52 views

Force Needed To Maintain Velocity, Increasing Mass

Hoping somebody could give me a hand with this. Unfortunately I haven't taken physics yet, my background is in math/computer science. I'm studying computational science and the problem is essentially ...
0
votes
1answer
35 views

Amount of unknown parameters in compressible Euler equations

I'm looking at this page for the compressible Euler equations. To me it seems, in the 1-dimensional case, there should be 3 unknowns: density, velocity, and pressure. This is because the energy $E$ ...
0
votes
1answer
79 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 ...
0
votes
1answer
234 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 ...
0
votes
1answer
71 views

Ideas for physics-related simulations to code up as weekend (or monthly) projects [closed]

What are some good ideas for simulations that I could try to implement/code in my spare time just for educational purposes? I'm thinking that it would be a good way for me to delve into the underlying ...
0
votes
1answer
180 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 ...
0
votes
1answer
139 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 ...
0
votes
1answer
79 views

Failure of a simple stat mech simulation

so I did a simple simulation that I thought would yield a Boltzmann distribution, but it failed to, and I was wondering if anyone has insight into why it failed. Ok, so I had a simple discrete system ...
0
votes
1answer
156 views

Reference-request: Computational science and physics [closed]

I'm interested in the following question: Is Nature computable at it's most fundamental level? Can anyone suggest any works (books, papers / articles, reviews) related to the above question? ...
0
votes
1answer
177 views

Filtering and extracting turbulent data from instantaneous dataset

I have collected data on flow velocity at 1 Hz sampling rate for 25 hours using a high resolution acoustic Doppler current profiler (HR-ADCP). how I can decide up to which period is the mean ...
0
votes
0answers
44 views

Importance sampling for Coulomb potential

The integral I have to solve is: $$I=\int\int d \mathbf{r}d \mathbf{r}' \frac{\Phi(\mathbf{r})\Phi(\mathbf{r}')}{|\mathbf{r}-\mathbf{r}'|}$$ It is a six-dimensional integral which I am going to ...
0
votes
0answers
12 views

Modelling Fourier Transform Profilometry

Basically I want to simulate a surface profilometry technique through Matlab. For that I want to create a GUI with controls for generating a grating pattern of light at a particular angle with respect ...
0
votes
0answers
47 views

Limitations of Quantum Simulations on a Classical Computer

My question is on the simulation of a quantum computer on a classical machine. I understand that a classical computer to simulate any quantum algorithm--the problem is that the quantum computer does ...
0
votes
0answers
36 views

Using a mask with a (2D) Fourier Transform

For a project I'm working on, I (1) take a (gaussian) random field of 256x256 pixels, (2) apply numpy's fast fourier transform (numpy.fft package), (3) filter the k-space image (using a Tukey ...
0
votes
1answer
38 views

Sampling a 2-dimensional surface: How many samples along X & Y axes?

I have a set of first 25 Zernike polynomials. Below are shown few in Cartesin co-ordinate system. z2 = 2*x z3 = 2*y z4 = sqrt(3)*(2*x^2+2*y^2-1) : : ...
0
votes
1answer
64 views

How to calculate impulse force on collision?

I've made a program which is supposed to simulate free fall of a ball on a ground. For collision with the ground I relied on calculating the impulse force with the answer in this Phys.SE question ...
0
votes
0answers
17 views

Is there any way I can tell whether increase in total energy in molecular dynamics simulation is due to large time step or not?

Does increase due to large time step has any type of signature that will tell for certain (or almost certainly) that that is the reason?
0
votes
2answers
73 views

Which units should I use in molecular dynamics simulation?

I have written a simple molecular dynamics simulation program. The simulation runs fine but the physical properties (in particular, I have calculated temperature) are off by many scales. I understand ...
0
votes
0answers
36 views

What exactly is closed orbit theory and what assumptions go into it?

I am just beginning a research project on the study of closed orbits, specifically as related to hydrogen, and I wanted a little bit more information on what exactly makes something a "closed orbit". ...
0
votes
2answers
72 views

What is the fastest algorithm to solve a Nonlinear second order differential equation numerically

I am trying to solve a second order non linear differential equation in one variable. Using RK4 I am getting good accuracy and is working fine. But the problem is my range is very high so it will ...
0
votes
0answers
38 views

What is the largest atom with a reliable configuration-interaction (CI) calculation?

The simplest approximation for calculating the ground state of an atom is the Hartree-Fock approximation. To get accurate result for the ground state energy, one has to do configuration-interaction ...
0
votes
0answers
28 views

Q: Any standard terminology for “gold standard” Monte Carlo solutions

The "standard" way in our field to compute scattering statistics in wave propagation problems is via a "deterministic" wave prop code operating in a Monte Carlo context where we iterate over many ...
0
votes
0answers
28 views

What is the difference between finite displacement and linear response for calculating vibrational properties?

I see these concepts appearing in the context of calculating phonons and other vibrational properties, but I can't find a concrete explanation of the differences between linear response (DFPT) and the ...
0
votes
1answer
61 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 ...
0
votes
0answers
53 views

Ising Model 2D Correlation Length

I'm using Metropolis and Wolff Clustering algorithms to estimate the spin-spin correlation function $$<s_os_r>$$ I know that this is related to the correlation length but how do we determine ...
0
votes
0answers
41 views

Why are functional representations of systems important in physics or computational physics?

This was an addendum to a previous question I asked, but I figured I should make it it's own discussion. Assuming I am able derive a functional representation for any dynamical system (dissipative, ...
0
votes
0answers
19 views

Why breakdown voltage decreases with increasing FWHM of an asperity?

I am running a simulation for a dielectric breakdown. I am getting breakdown voltage decreases with FWHM, which does not make sense as field enhancement is higher for a small width. Simulations solve ...
0
votes
1answer
33 views

2D room with electron-point-charges (stability)

Is there a fast way to find out stable #"point charges" & constellation for this kind of Simulation. The 2D repeating itselve in each direction till infinity, so i've a kind of symetrie here. ...
0
votes
0answers
27 views

Optimize locations of vertices and edge length using physics without simulation

I have a directed graph with set of vertices and edges. Each vertices don't have a position coordinate to be displayed on 2D computer screen. I want to add unique position coordinate to each vertices ...
0
votes
0answers
33 views

Adams-Moulton and BDF methods

1.What are the differences between Adams-Moulton and BDF methods. Which one is better and which one computes the solution faster? I think Adams-Moulton is a better method as it can get to the ...
0
votes
0answers
88 views

How to calculate a Mooney-Rivlin material

Well, I'm working on a fsi (fluid-solid/structure interaction) model. I've got ready the fluid part, now I need to get ready the solid part. Since I'm working with tissues, I need to use an ...
0
votes
0answers
40 views

need some references in molecular dynamics simulation

I Just start we a new model on my project and I will need to work with Molecular dynamic simulation. I have to simulate dynamics of many filament inside a network (actomyosin network).The problem is ...
0
votes
1answer
207 views

Position based dynamics constraint scaling factor

Reading through Müller et al., Position Based Dynamics, 2007 I got lost when passing from equation (5) $$\Delta p = \frac{C(p)}{|\nabla_pC(p)|^2}\nabla_pC(p)$$ to equation (6) (and applying the ...
0
votes
0answers
33 views

Electron scattering with CSDA simulation

I am currently in the process of writing simulation code for a "computational physics lab course" and in the present case the task is to simulate the trajectories of 20 [MeV] electrons impinging on a ...
0
votes
0answers
52 views

Examples of application of detour matrices in physics?

Are there any good examples of application of detour matrices in physics?
0
votes
0answers
47 views

Poisson equation solver with specific boundary condition

I want to solve 2d Poisson equation with this Boundary conditions below $$u(-5,y) = 0 , \\ \frac{\partial u(x,y)}{ \partial x} = 0 \,\,{\rm at}\,\, x = -5\\ u(x,-5) = u(x,5)$$ Now my question is ...
0
votes
0answers
30 views

Verlet timestep

I am using velocity Verlet in molecular dynamics. Is just a simple question, if a simulation using time-step femtosecond, in velocity Verlet is just necessary $dt = 10^{-15}$ to use femtosecond?
0
votes
0answers
88 views

Need help simulating a fan

I'm trying to write some code to approximately simulate a number fans in an arbitrarily shaped room. I'm not real strong in physics, and could use some help. If it helps I'm not interested in fine ...
0
votes
1answer
117 views

How to Extend Relaxation Methods for 2D Laplace Equation given in Jackson E&M to 3D?

In Jackson (3 ed) chapter 1.13 an outline is given for using relaxation to solve laplace equation in 2D. The general procedure in 3D involves minimizing the quantity $$I[\Psi]=\frac{1}{2}\int_V ...
0
votes
0answers
44 views

Should particles in Smoothed Particle Hydrodynamics (SPH) always move during a simulation?

Or can they just be used as an interpolation points and use some other "transported property" which are just evolved and propagated from boundary conditions like for eg. heat conduction through a ...
0
votes
1answer
129 views

Plane Wave expansion method

I really don't know if this is the right forum to ask the question...but please help me if you can!! I was going through the Plane Wave Expansion Method Derivation...But to be honest I could not find ...