The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
23 views

Numerical integration of divergent functions [migrated]

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}} ...
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
33 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 ...
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 ...
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 ...
0
votes
0answers
30 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 ...
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
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 ...
-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 ...
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 ...
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
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} ...
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
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 ...
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 ...
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 ...
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} = ...
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 ...
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
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
0answers
31 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
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
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 ...
1
vote
0answers
73 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
75 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 ...
1
vote
1answer
91 views

Finding the initial velocity vector of an orbiting body

I'm writing a program that simulates Newton's law of universal gravitation by simply calculating the force and applying it on the objects. The simulation works very well, but now I want to simulate ...
0
votes
3answers
151 views

Can universe or anything be simulated with absolute accuracy? [duplicate]

In a simulation everything is known which makes any apparent random event a pre-calculated event. Taking that into account is it possible to simulate the universe with absolute accuracy in a way that ...
3
votes
1answer
89 views

Physics simulator based on conservation laws?

Reading the article: http://en.wikipedia.org/wiki/Newton%27s_laws_of_motion#Relationship_to_the_conservation_laws there's a section stating that: ...
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
35 views

Searl effect generator simulation

This is an scheme of SEG: https://www.youtube.com/watch?v=pUUvhuQtba4 https://www.youtube.com/watch?v=wAMrTxMzrds This mechanism change the electrons around the conversor. Would be really nice to ...
7
votes
3answers
1k views

Most True to Life Physics & Biology Simulation Engine? [closed]

I'm a programmer. I code in C++, C#, HTML5, and PHP. There are many graphics engines I have at my disposal. The question is: Does there exist a graphics engine that is as true to our reality as ...
1
vote
0answers
62 views

Is there any free open source planetary orbit simulator software?

I need a free open source planetary orbit simulator software that should be able to calculate orbit stability for a couple simple planetary systems. Basically, I need to calculate orbit durations for ...
1
vote
1answer
81 views

Can the insertion of impurities (doping) influence optical properties of ZnS?

I am currently trying to simulate a scintillator system with silver doped zinc sulfide (ZnS:Ag). To simulate the propagation of photons inside the crystal accurately, optical properties like index of ...
1
vote
0answers
30 views

Introduction material for lattice field simulation

I am looking for introductory material of lattice field theory simulation. It is better start from simple example (e.g. \phi^4) and include some source code. Is there any on-line or book which is ...
1
vote
1answer
43 views

Create a star system fit to conic equation

For simulation purposes, I'm trying to create a binary star system. If I have a conic equation such as $ax^2 + by^2 = c$, and the masses of two stars, how would I find the $x$- and $y$- velocity ...
0
votes
1answer
42 views

kinematics: parabolic movement [closed]

How does the formula $ax^2$ is affected by the angle and the power of the launch of, let's say, a cannon ball, (regardless of its mass)? I am trying to create a simulation, and everything I have to ...
0
votes
3answers
69 views

Force causing diffusion

I was curious if there was an equation describing the force acting on a particle (say, sitting in a fluid) that causes it to diffuse. If so, does it include the diffusion coefficient D? Based on ...
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 ...
0
votes
0answers
53 views

Difference between molecular dynamics and direct simulation Monte Carlo

I just started studying about rarefied gases and I came across the concepts of Molecular Dynamics (MD) and Direct Simulation Monte Carlo (DSMC); so here is my question: How are these two fields ...
0
votes
0answers
41 views

Differential Equations for Two-Dimensional N-Body Simulation

So I recently asked a question about improving the stability of a two-dimensional orbital simulation (as before I was using Euler integration). I was told to use Runge-Kutta 4 for a more stable ...