The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
143 views

How does the Lennard Jones Potential changes for interaction between particles of different sizes?

I am interested in incorporating a Lennard-Jones potential in a simulation. When the interaction only involves the same type of particle, with same characteristics, we can use reduced units, scaling ...
1
vote
0answers
20 views

Simulating a noisy image: Poisson Noise Clarification

I'm currently working to simulate an image that mirrors the output of a CMOS camera we have in the lab. My images include Poisson (photon) noise as well as a gaussian (readout) noise. My issue is ...
5
votes
1answer
793 views

Moment of inertia of rotating particles in center of mass frame?

I am trying to simulate a collision between two molecules. I know the energy for every position/orientation, from which I can calculate the forces. The treatment is classical and the molecules are ...
9
votes
2answers
256 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(\...
-1
votes
0answers
51 views

Plotting a Function [on hold]

I have the following result: $$ n_z(t) = 1 - 8 \sum_{k = 0}^{\infty} |g_{k}|^{2} \frac{\sin^2 \Big (\frac{(w_k - w_{0})t}{2} \Big)}{(w_k - w_{0})^2} $$ I want to figure out the dependence ...
0
votes
0answers
23 views

Diffusion Equation for Particle Hopping with drift

First of all, I haven't studied partial differential equations yet, hence this question might sound silly. I am doing a simulation for particle hopping on a lattice with python. I was said that in ...
1
vote
1answer
34 views

Initial velocity of particles in a 2D gravity simulation

In N-body simulations of protostellar clouds (or similar objects), each particle is has a set of characteristics: mass, size, position, velocity, and (if the object is large enough or if we want to be ...
4
votes
1answer
351 views

Boundary conditions on current carrying wire

I'm trying to simulate by finite elements method Maxwell equations for a current carrying wire. My 3d geometry consists of a cylinder and a box containing it. I will use a mixed formulation and ...
2
votes
0answers
31 views

Is there a form of rigid body dynamics that uses unit quaternions instead of Euler angles?

I’d like to know specifically about an elegant way of deriving a second derivative of an orientation quaternion from a torque and a moment of inertia matrix, if one is available. The straight forward,...
5
votes
2answers
124 views

Black hole simulation

NASA published a computer generated black hole image. In the image you can clearly see the event horizon and the light of background stars graduating from "smeared" to normal. However, between the ...
1
vote
2answers
111 views

Intercept of 2 moving objects at constant acceleration

I have to make a simulation in which a guided missile has to hit an incoming enemy missile.The enemy missile "T" is the one which has to be intercepted and is only affected by gravity, the guided ...
1
vote
1answer
128 views

How to simulate pendulum movement with high amplitude

I need to make a C# simulator for a simple pendulum. I have been searching the web for 3 days and I am stuck. The problem is I have found many equations that would give the angle position as a ...
2
votes
1answer
752 views

Simulations of Planetary Motions

I wrote a spreadsheet that simulates the trajectory of 3 planets in 2D space. The method is simple: for each moment in space, calculate the force felt and velocity of each planet, then for the next $\...
-1
votes
0answers
27 views

Where can I gain quick access to Path Intergral Monte Carlo?

I am now trying to accomplish a monte carlo simulation on the condensed state of 4He. Yet I am in my sophomore year and know only a bit of quantum statistical physics. Is there any documentations ...
0
votes
0answers
24 views

Air pressure equalisation

I'm programming a physics simulation and have the air pressure impact the movement of rigid bodies in the system. I know how to (approximately, both for simplicity and performance) specify bodies' ...
0
votes
1answer
299 views

Kinematics of a differential drive robot

(I am reposting here a question I asked on stack overflow, since it actually sits right in between programming (modeling of 2D physics) and physics proper (kinematics). I think I have the physics part ...
14
votes
4answers
17k views

Where can I find simulation software for electricity and magnets?

Is there easily-available* software to simulate coils, solenoids, and other magnetic and electromagnetic devices? I'd like to play around with some design ideas, such as Halbach arrays, but physics ...
3
votes
1answer
269 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 ...
3
votes
1answer
197 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 ...
0
votes
2answers
86 views

Molecular Dynamics simulation question

In molecular dynamics simulations you apply and solve Newton’s equations of motion for a set of atoms to obtain real dynamical information on how individual atomic positions change as a function of ...
0
votes
0answers
17 views

2D slab model for LJ potential

I have a program implementing a LJ(Lennard-Jones) molecular Dynamics(MD) simulation with isokinetic thermostat. I want to modify that program to study the phase characteristics of LJ particlesin 2D ...
1
vote
1answer
308 views

Determing Velocity of Moons

I have a question that I believe is relatively easy to answer, I am working on an $N$-body simulation of a fictional star system and am having trouble finding the velocity of moons so that they will ...
1
vote
2answers
67 views

Which timestep should I use for a $N$-body simulation of the Solar system?

I am trying to implement a $N$-body simulation of the Solar system and I am stuck on the issue of the simulation timestep size. At first I would like to use a simple Euler stepping scheme. Knowing ...
2
votes
1answer
313 views

Simple QFT simulation - how to do it

I would like to write a simple QFT simulation for a free scalar field with a cubic interaction term. However, I got stuck a bit. I will try to describe what I think I understand. I want to have a ...
3
votes
1answer
60 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. ...
6
votes
2answers
177 views

How do we explain the existence of liquids, from a mathematical or computational perspective? [closed]

This post asks why matter exists in three phases. Most of its answers explain the existence of liquids with some variant of the following: liquids happen when thermodynamic conditions, temperature ...
1
vote
2answers
74 views

Model/formula for bouncing ball

I'm programming an animation of a bouncing ball, and I want it to be as realistic as possible. I fully understand the physics while the ball is rising and falling: It accelerates downward at 9.8 ...
4
votes
0answers
41 views

Barycenter correction for inner planets in solar system?

I want to run simulations of the solar system, and I've read in some papers that to speed up the simulations it is useful to use the barycenter correction of the inner planets (from Mercury to Mars), ...
6
votes
1answer
180 views

How can I simulate a model electronic hole?

Suppose I can solve time-dependent Schrödinger equation for several 1D particles (currently 3). I'd like to see, what an electronic hole is and how it behaves — in a series of numerical experiments. ...
5
votes
1answer
210 views

Smoothed particle hydrodynamics in cosmological N-body simulations

What is the role of smoothed particle hydrodynamics (SPH) in cosmological N-body simulations like the Millenium Run (performed with Gadget-2)?
2
votes
1answer
262 views

Boltzmann Distribution of Electrons in Confining Potential

I have a particle simulation wherein many non-interacting electrons are trapped in a electric potential well. I would expect, and therefore I initialize according to this, that the electrons would ...
1
vote
2answers
48 views

Calculate gravity between two points

I am trying to build a simulation of gravity in LibGDX using Bullet physics. To simplify it, I just want to apply a force on some body towered a (0,0,0) point. I got my body mass and it's location ...
2
votes
0answers
36 views

What is the meaning of the Fourier Transform of the electric field of a well guided mode in a dielectric waveguide?

I have been studying waveguiding in dielectrics for a while now; however, I cannot understand the meaning of the Fourier transformed electric field. I will first give some background information. ...
0
votes
0answers
42 views

What would be the long-term effects of stopping the Sun?

TL;DR: In an orbital simulation, what are the effects of pinning the major body to the origin, and how could these effects, if any, be mitigated? Consider an orbital motion simulator; your basic n-...
5
votes
1answer
41 views

Identify binary stars in nbody simulation

I'm doing a nbody simulation, and I'm interested in the formation of binary systems in the temporal evolution. I can identify them by eye, but I don't know an algoritmic criteria that can say me if ...
0
votes
1answer
29 views

Calculating true anomaly of a hyperbolic trajectory from time

I'm creating a simulation for orbiting bodies with my primary challenge being calculating the true anomaly of a trajectory with respect to time. I have figured out circular, elliptical, and parabolic ...
0
votes
0answers
24 views

Two axis non linear Inverted Pendulum

I am Electronic Engineering student. Sorry for my english, I am very rusted. I am modeling the inverted pendulum for a Class Project and I wondering if any could answer one question. In this web ...
-3
votes
1answer
73 views

Need motion equations for falling ball for simulating [closed]

I am currently M.S student in artificial intelligence(A.I) and working on my thesis on reinforcement learning, which robot should learn by itself how to control a quadcopter. Long story short, I have ...
0
votes
1answer
44 views

Notation of a vector containing equation in a paper

I'm trying to implement Coulomb long range interactions into a molecular simulation program using a particle-particle/particle-mesh Ewald solver. The following equation from the paper "How to mesh up ...
0
votes
0answers
27 views

Keplerian orbits and radial velocities: problem with true anomalies

I am writing a pure Python code to calculate radial velocities of stars with massive objects orbiting them. I am following the formalism from Murray & Correia (2011) (hereafter MC11). In a given ...
4
votes
1answer
22 views

How would I find the velocity of an object after it doesn't fully enter the gravitational pull of a planet and is kind sling shot out of its gravity?

Obviously that question doesn't have a lot of jargon having to do with math and physics. I am not a physicist, I'm not a mathematician, I'm trying to make a game and simulate some physics found in ...
0
votes
0answers
19 views

2-D Ising model temperature of equilibrium [duplicate]

I have simulated 2-D Ising model in C#, but my scatter plot for magnetization versus temperature is an decreasing line (you know that the correct plot decreases quickly in a temperature near 2.3). I'...
0
votes
0answers
27 views

Why is more difficult for a DFT to converge with non-periodic conditions?

I am simulating a cubic amorphous silica system. When all boundaries are periodic the SCF iteration converges rapidly. However, when the boundary is not periodic in the $x$ direction, the SCF ...
1
vote
0answers
54 views

How do I model the motion of a particle changing acceleration vector (2D)?

I want to model a particle with an arbitrary initial velocity, and estimate the time it takes to reach a final point given a constant magnitude of acceleration. It should take the quickest path to the ...
2
votes
0answers
19 views

Derivation of generation of time between two subsequent particle enters into computational domain

I have problem with understanding derivation of one equation in following problem. You have 1D computational domain (it is not 1D but because it is symmetrical and we are watching only radial ...
0
votes
0answers
12 views

Parameters for modelling 4 level 2 electron gain medium for laser

I have an EM simulator that can model laser gain medium by a 4 level 2 electron system. However the model requires pumping wavelength, lasing wavelength, pumping linewidth, lasing linewidth, decay ...
4
votes
1answer
68 views

How to conserve momentum when numerically-integrating the path of a charged particle through a magnetic field

I have the python script attached below, which is intended to track the trajectory of a charged particle in a static, uniform magnetic field. It is very simple to calculate the instantaneous force ...
0
votes
0answers
41 views

use FEMM to simulate electric field for a magnet inside a coil

I'm trying to simulate a magnet inside of a coil of wire, with and without current running through the wire. I'm using the free FEMM software to try to simulate this, but I don't think i'm setting ...
4
votes
1answer
75 views

Can I re-wind gravity?

Suppose I perform an arbitrary simulation where I integrate the motions of a collection of particles which interact only gravitationally. Suppose I use a time reversible integrator (to be specific, ...
0
votes
0answers
12 views

Why does SCF convergence on DFT worsens for a parallelepiped domain?

I am currently simulating parallelepiped domains of amorphous polyethylene with DFT. I would like to know the reason why the convergence of SCF worsens when the domain is not cubic. Does the k-point ...