The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
21 views

Numerical integration of divergent functions

I am having trouble with the numerical integration of a divergent function. For example, \begin{equation} n= \int f(x)\,dx = \displaystyle\int \dfrac{\Theta(x-\varepsilon)\,dx}{\sqrt{x-\varepsilon}} ...
2
votes
1answer
609 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 ...
0
votes
1answer
38 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 ...
1
vote
1answer
32 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
votes
0answers
8 views

How to calculate the inertia tensors of an irregular polygonal right prism?

I am attempting to program a physics simulation and need to do calculate the inertia tensors of a mesh constructed of a series of irregular polygonal prisms. Now, I am aware that you can calculate ...
1
vote
1answer
82 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 ...
2
votes
1answer
172 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
2answers
71 views

Why is my two body model not working? [closed]

I have created a simple 1 Dimensional two body particle model in C++. In the model, particle 1 starts at position (0,0) and particle 2 starts at position (1,0). The particles are accelerated towards ...
0
votes
1answer
178 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 ...
2
votes
1answer
46 views

Damping a spring force

I'm modelling particles in a system using a spring and damper force. $$F= kx -cv$$ $x=x_i -x_f$, where $x_i$=centre of spring and $x_f$= displaced position. Above $x$ is the displacement and $v$ is ...
1
vote
2answers
123 views

Leapfrog method in Particle-in-cell

Recently I wanted to write a 3D electromagnetic Particle-in-cell code with c++.I know that I should use leapfrog method.For example,when I calculates the position and velocity of particles,i should ...
3
votes
1answer
90 views

Atmosphere model

Im working on project where I should simulate glider soaring. The goal is to create gliders that will look for regions with hot upwinds using evolution algorithms. That shouldn't be problem. What I ...
2
votes
1answer
117 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. ...
4
votes
1answer
251 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 ...
0
votes
0answers
29 views

How to simulate “inside-out” geometries of a structure?

How can I simulate the structural deformation of a physical material to find all possible "stable" inside out forms? For example, some dome shaped rubber caps can be pushed inside out, like the ...
0
votes
1answer
36 views

How do I evaluate the angular momentum of the wave function?

I'm working with Bose-Einstein condensates and running a 2D single component Gross-Pitaevskii equation solver for the simulations in MATLAB. The way it works is that it numerically solves the GP ...
0
votes
1answer
66 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 ...
1
vote
2answers
80 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 ...
0
votes
0answers
53 views

How to properly implement Huygen's integral?

I'm really confused by what's happening ... I'm trying to propagate a beam some distance and compare initial and final intensities. Lets say the initial electric field is just cos(200x). I then used ...
-1
votes
2answers
54 views

What are the consequences of a non-computable universe?

I have seen that is is debated if the universe is digital, computable or non-computable. what specific consequence could this have in the format of the laws of physics? Or would that mean that we will ...
0
votes
0answers
33 views

Projectile motion with wind

I am trying to simulate a projectile motion with wind and gravity. (I'm a programmer so excuse my knowledge on the subject) I want to know launch rotation of a person in 3d to throw a ball forward ...
5
votes
5answers
312 views

Resolving General relativity and Newtonian mechanics to a computer [closed]

I know this is considered an old subject long ridiculed by many as the folly of layman. But I work in the field of computer simulation, specifically in producing fully functional 3D interactive ...
0
votes
0answers
21 views

Acoustic sound box simulator

I'm looking for a simulator (2 or 3 dimensional + time) of an acoustic box. I'm trying to see where the high/low pressure areas would be depending on where I tap the box on the outside. PS. Not sure ...
0
votes
0answers
31 views

What discrete form of the wave equation do you need to use to make a wave simulation?

I'm working my way through these blog posts about the wave equation. All has made sense up until now. The wave equation is $$ \frac{\partial^2h}{\partial t^2} = c^2 \frac{\partial^2h}{\partial x^2} ...
2
votes
1answer
135 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 ...
1
vote
1answer
40 views

Meaning of imaginary eigenvalues in advection equation

I'm reading the book Fluid Simulation for Computer Graphics (Amazon link), and stumped by the following sentence in Chapter 3: what's happening is that the eigenvalues of the Jacobian generated ...
3
votes
0answers
23 views

Ocean surface mean current flow meaning

I tried to simulate the trajectory of an drifting object in the oceans by using the data of the OSCAR project http://www.oscar.noaa.gov/. The dataset actually used consist of grid sampled mean 2d ...
0
votes
0answers
24 views

Explicit Ewald equations for dipole-dipole interaction in a simulation

I'm starting to work with spin ice simulations and I found that it is usual to use the Ewald method for the long-range interactions computation (dipole-dipole in this case). Although I've been reading ...
0
votes
1answer
96 views

Is the dimension “number of particles” a fundamental, or derived dimension (based on mass), or does it depend on the context, or is it dimensionless?

I consider "fundamental quantities" to be those that have dimensions that are are like length, mass, time, temperature, and so on. "Derived quantities" have dimensions that can be written in terms of ...
0
votes
0answers
35 views

Computer simulation/visualization of a ray of light passing near a massive object

I'd like to write a computer program that simulates and visualizes the trajectory of a ray of light as it passes near a massive object (e.g., neutron star). In other words, I'd like to model light ...
-1
votes
2answers
148 views

Simulating a car in an intersection

I'm somewhat confused. I want to simulate in real-time an intersection where cars have to turn left, right or go straight. What I have are 2 way points: One at the beginning of the intersection on ...
8
votes
1answer
1k views

physics of wet hair

I'm curious about the physics behind the clumping of wet hair. More specifically, how the amount of water in hair and distance between hairs affect the clumping process. I know intuitively that when ...
2
votes
0answers
32 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 * ...
1
vote
1answer
43 views

Where would be the source of thrust for a rocket thruster in space?

I am making a game that involves spaceships and I was building an engine block. That engine block spawns a "thruster fire" under it that represents the...thruster fire. My question revolves around ...
0
votes
0answers
18 views

Inhomogeneous scattering from a dielectric box in 2D?

I wrote an E&M simulator and need to verify the accuracy. My simulator evaluates a 2D grid (which is what my camera measures), and would like to test an object that is minimally perturbed by ...
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 ...
1
vote
0answers
47 views

Quantum Monte Carlo for harmonic oscillator

I'm trying to calculate harmonic oscillator using quantum monte carlo (path integral and metropolis algorithm). It's one particle in harmonic potential. I know the theory. One divides the partition ...
0
votes
1answer
45 views

Finding radius of turning car to calculate the centripital force

I'm writing a program to simulate a car driving. I'm wondering how I should find the radius when calculating the centripital force. If we let the car travel at a constant speed, then $F_{net} = ...
3
votes
1answer
63 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, ...
0
votes
0answers
29 views

What are the limitations of simulating grand unification theories of elementary particles in condensed matter settings?

What are the limitations of simulating grand unification theories of elementary particles in condensed matter settings? I know that condensed matter systems can be constructed to be described by any ...
0
votes
0answers
30 views

What is the justification for the minimum image convention in periodic boundary condition?

As the distance between first particle-second particle and first particle-image of the second particle are not same. How is it justified to use the distance from the nearest image to compute ...
0
votes
1answer
57 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 ...
0
votes
1answer
114 views

What is the general definition of signal acceptance?

Suppose I have a beyond Standard Model theory and want to test it. I want to test if some experiments, say conduced in LHC, show signals of the theory. In this case, what is "signal acceptance"?
1
vote
0answers
77 views

Magnetic force between two point charges

I tried to derive the magnetic force between two point-charges for iterative computation. Starting out with Lorentz force and Biot–Savart law for a point charge. $$ \vec F = q_2( - \Delta \vec{v} ...
0
votes
1answer
24 views

plasma and infinite acceleration

I am trying to set up a simulation of particles (they are not any particular kinds of particles, they are just points that repel each other). All the particles repel each other through the inverse ...
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
1answer
206 views

Particle-in-cell (PIC) code Virtual Laser Plasma Lab (VLPL)

I am writing a simulation code to model betatron X rays produced by electrons accelerated using laser wakefield acceleration (LWFA). I have heard about 3D PIC (Particle-in-Cell) code VLPL (Virtual ...
1
vote
0answers
72 views

How do I model this Quantum Cascade Laser (QCL) using COMSOL? [closed]

I'm trying to model this: GaAs on-top of a heat-sink made of Copper. It's trying to simulate a type of Quantum Cascade Laser, I'm looking at the effect the temperature has by running a 10V voltage ...
1
vote
2answers
74 views

Calculating temperature from molecular dynamics simulation

My understanding is that temperature is an inherently macroscopic quantity, but I've seen a number of people talk about calculating the temperature of ideal-gas simulations like this one. To take one ...
6
votes
4answers
3k views

Trampoline physics - what is the right time to crouch and to jump to maximize your height?

Please bear in mind that I'm neither a physics guy nor particularly a math guy. So I will probably need a bit more hand-holding than just a complex equation. For a game, I'm trying to calculate a ...