The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
1answer
111 views

Problems implementing Lattice Boltzmann method

I want to make a basic 2D implementation of the Lattice Boltzmann method (in javascript) to simulate gas/fluid flow, but I have run into some problems and I can't seem to find the cause of it. ...
2
votes
5answers
100 views

Is more lift always better?

In the domain of aircraft, and more specifically powered flight, is there any case in which you wouldn't want the airfoil used to generate as much lift (and as little drag) as possible at a null angle ...
2
votes
3answers
230 views

Calculating vector to aim for moving asteroid (3D asteroid game)

Considering we're in a 3D system of coordinates: our ship is at point A, motionless our ship can shoot bullets, the speed of which is known the asteroid is at point B the asteroid is moving on known ...
2
votes
1answer
254 views

Simulation of fluid flow using Euler equation

I have been looking on Euler's equations for a while and can't grasp one thing. Suppose we have initial system state with volumes of fluid "hanging" in air (time is frozen and equal to zero), each of ...
2
votes
1answer
168 views

Simulating a 1-dimensional wave on (a segment of) an infinite line

I'm trying to numerically simulate a 1-dimensional with a chain of linked harmonic oscillators as described here (the result can be seen here). The simulation behaves like a wave on a finite line ...
2
votes
2answers
888 views

What is the best tool for simulating Vacuum and Fluids together?

I require a software to simulate Fluid simulation with the capability of supporting vacuum simulation. My requirements are that all numbers must reflect their real counterparts almost exactly. For ...
2
votes
1answer
1k views

Simulating Gravity in 3D Game?

Alright, I am writing a space simulator for a 3D game and I would like to implement gravity of objects into it. Is there a nice way to find a velocity vector which can be added to my engine output ...
2
votes
1answer
647 views

Software for simulating supersonic aerodynamics [closed]

Could you please suggest the software, where I can load my 3D model and see how it behave on various conditions (speed - preferably including supersonic, temperature, pressure)? Both free & ...
2
votes
1answer
40 views

Can I identify phase (solid, liquid, gas) just from a snapshot of molecule positions?

Suppose I have a simulation of a bunch of nitrogen molecules (N_2). Just by looking at the positions of a bunch of the molecules in a volume of space, how can I tell whether the picture is showing a ...
2
votes
2answers
115 views

Simulation of everyday life based on standard model [closed]

If I were to model the standard model, say on a super powered computer (which does not necessarily have to exist in the real world), would I get molecules, chemistry, life? I want to understand the ...
2
votes
1answer
80 views

Is the $\mu VE$ ensemble possible to formulate?

I have recently learned about ensembles in statistical mechanics, and I've seen multiple applications and interpretations of the EVN (microcanonical), TVN (canonical), $\mu$VT (grand canonical) and ...
2
votes
1answer
41 views

Ewald summation without repeating one particle periodically?

I need to perform an Ewald summation for a Brownian Dynamics simulation. In the normal Ewald summation procedure, all particles in the simulation box are periodically repeated in the neighbouring ...
2
votes
1answer
45 views

How does phonon scattering change the distribution function?

For a one-dimensional structure, we know that the modified distribution function has the following energy dependency in equilibrium: \begin{equation} Z(\varepsilon)\,f(\varepsilon) = ...
2
votes
1answer
147 views

Can two distinct events occur at precisely the same moment in time?

I am writing a simulation and am having difficulty resolving the order in which two distinct forces occur. The simulation will give different results if the forces are applied to the state in ...
2
votes
1answer
369 views

How do I simulate this simple quantum circuit in MATLAB

I want to simulate a circuit similar to the one below in MATLAB. If you have a state matrix describing the state of 3 qubits, I understand that you could apply a CNOT matrix tensored with and identity ...
2
votes
1answer
625 views

Dynamic simulation of surface tension [closed]

Is there any substantial body of work in physics on dynamically simulating effects of surface tension on liquids? The texts i found so far on fluid dynamics all seem to ignore surface tension, ...
2
votes
1answer
994 views

Rolling (without slipping) ball on a moving surface

I've been looking at examples of a ball rolling without slipping down an inclined surface. What happens if the incline angle changes as the ball is rolling? More precisely I've been trying to find ...
2
votes
1answer
139 views

Mutual Interaction of $N$-Particles in a Cartesian Plane

I am making a simulation of $N$-Particles in a cartesian plane and need help with understanding the basics. At anytime, in my particle system, I will have $N$ number of particles. I am treating the ...
2
votes
2answers
425 views

Ideal 2D Unicycle Kinematics

A particle is connected to a massive wheel by a rigid rod. The wheel can roll without slipping on a horizontal surface. The particle is free to rotate around the centre of the wheel. I believe the ...
2
votes
1answer
66 views

Missile-like trajectory calculation [closed]

First of all I want to let you know that I'm not a Physicist, I am a Video Game Developer. I can simulate physical and mathematical equations and can also use some built in physics. For example I ...
2
votes
0answers
24 views

Initial conditions for a massive objects to follow a path

Suppose I have a path, such as the one traced out by $r^2 = \cos(2\theta)$, and $n$ objects with mass $m$ at equidistant points on this path. What velocities should each object initially have in order ...
2
votes
0answers
46 views

Simulation of oscillator with frequency dependent damping

What would be the equation for the frequency dependent damping of harmonic oscillator? Is there something like: $$ \ddot{x}+2\delta\dot{x}+\omega_0^2x = \frac{F}{m}f(t) $$ with frequency dependent ...
2
votes
0answers
44 views

How to let Pythia to output the complete event record in LHEF or StDHep format?

I am currently using Pythia 6.4 to simulate some processes (I do not have the intention to upgrade to 8). Now, I need Pythia to output its event record in the format of LHEF or StDHeP. I accidently ...
2
votes
2answers
136 views

Why is my Lyapunov exponent similar for single and double pendulum?

This is my first question here on stackexchange. I hope that I can be understood. If not, tell me and I will reformulate and fill in with details. I have simulated a single pendulum and a double ...
2
votes
0answers
37 views

How to find the maximum torque to apply to a robot joint to have realistic movement? [closed]

I am a computer science student. I am trying to simulate a locomotion of a legged robot. The weight and dimensions of the robot: A rectangular torso has 1 Kg, (0.15m*0.3m*0.03m) (width * length * ...
2
votes
1answer
97 views

How to get the linear and angular acceleration generated by a force vector field?

I am working on a physics simulation and I have to calculate the angular acceleration in degrees per seconds squared around the point on the object located relatively to the center of a vector field ...
2
votes
0answers
155 views

Simple gas in cylinder modeling

I want to do a simple (physically plausible but not physically accurate) simulation of a gas in a cylinder as it works on or is worked on by a piston. Wikipedia gives a good example of an adiabatic ...
2
votes
0answers
205 views

Trying to make a realistic simulation of 'breaks' (Pool)

I'm working on a 2D pool simulation project right now, and I'm trying to create good looking physics that are also performant. After collisions are detected, I update the velocities of the balls. So ...
2
votes
2answers
210 views

How do you measure numerically the central charge of a system?

Let's say that you are doing some Monte-Carlo simulations of a statistical system on a lattice and you observe scale invariance, meaning that you are at a conformal point. Can you get a numerical ...
2
votes
1answer
340 views

Unexpected eccentricity in moon orbit simulation

I've used Mathematica's NDSolve function to calculate the orbit of the Moon around the Earth. I used the following initial positions (perigee): ...
2
votes
0answers
108 views

M-Theory and computer simulation

I have a question. Is it possible to perform computer simulations based on the M-Theory? I was looking for such simulators or source codes but I have not found anything. However, M-theory must have ...
2
votes
0answers
109 views

Particle Collision with Static System

I have a system of particles with equal distance with each other and another at random positions which is moving with time. What I want to know is : The method by which I can reduce the number of ...
2
votes
1answer
226 views

Heuristic equation for Friction force between materials

I'm programming a game where different types of objects will be sliding over different types of terrains (Top-down in two dimensions). At my current level of physics education we are given the ...
2
votes
2answers
370 views

How to simulate a full-suspension bike? [closed]

As a fun project, I would like to roughly simulate the suspension operation of a full-suspension mountain bike. This is not another one of those "How does a bicycle stay upright?" questions. Follow ...
2
votes
0answers
60 views

Calculating gravity with inclometer?

How would one calculate the gravity vector for [X,Y,Z] by using an inclinometer which gives Pitch, Yaw and Roll. A little explanation of the goal: I have a accelerometer I was planning to use to map ...
2
votes
0answers
275 views

Air resistance of a general shape object

I'm trying to code a simple physics simulator in C++ but I'm stuck on the air resistance issue. Surfing the Internet I only find a drag coefficient for very basical area shapes when the air is ...
2
votes
0answers
480 views

For two planets in a 2:1 mean motion resonance , where will their periastron and apastron points be?

I want to animate the changing orbits of planets when they enter a mean motion resonance. Using a 2:1 resonance, I want to show a low-mass inner planet and a low-mass outer planet being tugged by a ...
2
votes
0answers
431 views

simple MHD simulation code for (self) education and play with [closed]

I would like some super simple computational code for solving magnetohydrodynamics problems. High accuracy nor performance is not my concern. I wan't it just to visually explore qualitative behavior ...
2
votes
0answers
110 views

What is the correct way of integrating in astronomy simulations? [closed]

I'm creating a simple astronomy simulator that should use Newtonian physics to simulate movement of plants in a system (or any objects, for that matter). All the bodies are circles in an Euclidean ...
2
votes
0answers
210 views

2D Car Physics including Throttle

For a simulation for testing on automatic cruise control, I came across the equation: $$ v_{n+1} = (1 - k_1 / m) v_n + (1 - k_b) \begin{pmatrix} T_n \\ θ_n \\ \end{pmatrix} $$ where: $T$ = ...
2
votes
1answer
146 views

Creating/Downloading a large Galaxy Dataset

I was wondering where I can get a more or less complete set of a galaxy to test an n-body simulation (preferably two colliding galaxies with approx 300k to 1M elements). Is it possible to extract ...
2
votes
1answer
173 views

What equation predicts at what point a stretched object comes apart?

I am creating a simulation and am interested in pulling stretchy things and when they break, like taffy. I imagine this is a bit tougher then a simple equation like gravity, but I have no idea. Is ...
2
votes
0answers
97 views

Gibbs Ensemble initial densities

I'm trying to calculate coexistence curves and get a rough estimate for the critical point of simple fluids using the well-known Gibbs Ensemble Monte Carlo (GEMC) (c.f. Panagiotopoulos, Molecular ...
2
votes
3answers
595 views

Finite difference formulation of the heat equation with thermal conductivity in 1D

This may seem trivial, but I'm having some trouble deriving the finite difference form of the heat equation with a thermal conductivity function $a(x)$ depending on $x$: $$\frac{\partial u(x, ...
2
votes
0answers
65 views

Degenerated Anderson Model Simulation

I'm trying to simulate the degenerative Anderson model. So depending on an energy difference first orbital and afterwards spin magnetism occurs. First i try to solve an easier ansatz with a limitation ...
1
vote
1answer
551 views

Are We Living in a Simulated Universe? [closed]

If the universe is just a Matrix- like simulation, how could we ever know? Physicist Silas Beane of the University of Bonn, Germany, thinks he has the answer!. His paper “Constraints on the Universe ...
1
vote
1answer
73 views

Difference between Enzo & Gadget astronomy simulation codes

Enzo and Gadget are simulation codes used in astronomy. What are the largest differences between them both in terms of physics they simulate and in their implementations?
1
vote
2answers
580 views

Lattice QCD and attempt to prove that the universe is a simulation [closed]

Assume that we have access to a computer with unlimited computing power. As with the Lattice QCD can try to prove that we live in a simulated universe? Apparently, one may use the issue of cosmic ...
1
vote
1answer
382 views

I'm getting weird autocorrelations when simulating an Ising model below the critical temperature

So I'm simulating an Ising model using Monte Carlo and the Metropolis algorithm. After letting it reach equilibrium, I try to calculate the autocorrelation of the magnetization. As long as the system ...
1
vote
2answers
2k views

How do I integrate the Poisson equation to determine the electric potential along a particular direction (e.g., $z$)?

This question is a sequel of sorts to my earlier (resolved) question about a recent paper. In the paper, the authors performed molecular dynamics (MD) simulations of parallel-plate supercapacitors, ...