Simulation is the imitation of some real thing, state of affairs, or process. The act of simulating something generally entails representing certain key characteristics or behaviours of a selected physical or abstract system.
Questions tagged [simulation]
5194 questions
8
votes
1 answer
OpenCV - Are Lens Distortion Coefficients inverted for projectPoints?
Good day guys,
I am trying to simulate and image with lens barrel distortion. I create a virtual chessboard (only the corners) and then project it onto my image plane using OpenCV. The idea is to project these points with known distortion…

Hein Wessels
- 937
- 5
- 15
8
votes
1 answer
Sharing Computation of Force in Haskell
I'm implementing a N-Body simulation in Haskell. https://github.com/thorlucas/N-Body-Simulation
Right now, each particle calculates its Force, then acceleration against each other particle. In other words, O(n²) computations of force. I could reduce…

Thor Correia
- 1,159
- 1
- 12
- 20
8
votes
1 answer
Subcircuits in HSpice netlist?
Working on Hspice first time so please bear with me. I need to write netlist for CMOS And gate. Currently, I had finished writing and testing of CMOS-Nand & inverter part.
1. CMOS Nand Gate
2. Cmos inverter
I know to to implement AND gate, I need…

Virange
- 231
- 4
- 11
8
votes
2 answers
Run a C# application from python script
I've just about finished coding a decently sized disease transmission model in C#. However, I'm fairly new to .NET and am unsure how to proceed. Currently I just double-click on the .exe file and the model imports config setting from text files,…

Mandelbrot
- 502
- 1
- 4
- 13
8
votes
3 answers
Parallel loops and Random produce odd results
I just started playing with the Task Parallel Library, and ran into interesting issues; I have a general idea of what is going on, but would like to hear comments from people more competent than me to help understand what is happening. My apologies…

Mathias
- 15,191
- 9
- 60
- 92
8
votes
2 answers
Matlab/CUDA: ocean wave simulation
I've studied "Simulating Ocean Water" article by Jerry Tessendorf and tried to program the Statistical Wave Model but I didn't get correct result and I don't understand why.
In my program I tried only to create a wave height field at time t = 0…

Eugene Kolesnikov
- 643
- 2
- 6
- 15
8
votes
5 answers
JQuery click() on a div button won't fire
I am trying to emulate a user's click on a site who's code I do not control. The element I am trying to engage with a div acting as button.

coneybeare
- 33,113
- 21
- 131
- 183
8
votes
4 answers
What content have you made/seen made using procedural techniques
I was looking at some study i have to do in the future to do with procedural generation techniques and i was wondering what type of content you have:
Developed
Helped Develop
Seen implemented
Tried to develop
and what methods/techniques/procedures…

Craig
- 1,199
- 1
- 13
- 27
8
votes
2 answers
How do I generate discrete random events with a Poisson distribution?
I'm aware of Knuth's algorithm for generating random Poisson distributed numbers (below in Java) but how do I translate that into calling a method, generateEvent(), randomly over time?
int poissonRandomNumber(int lambda) {
double L =…

blank
- 17,852
- 20
- 105
- 159
8
votes
2 answers
Is my site being attacked? Suhosin simulation, very strange activity in IP Log
I will preface this question by saying I am NOT a web developer, nor do I have much knowledge in this field. I am a business owner and have a low volume website that my customers purchase products on. I've noticed this set of queries a few minutes…

user3100907
- 255
- 3
- 13
8
votes
4 answers
Collision Detection between Accelerating Spheres
I am writing a physics engine/simulator which incorporates 3D space flight, planetary/stellar gravitation, ship thrust and relativistic effects. So far, it is going very well, however, one thing that I need help with is the math of the collision…

RBarryYoung
- 55,398
- 14
- 96
- 137
8
votes
1 answer
Three.js Retrieve data from WebGLRenderTarget (water sim)
I am trying to port this (http://madebyevan.com/webgl-water/) over to THREE. I think I'm getting close (just want the simulation for now, don't care about caustics/refraction yet). I'd like to get it working with shaders for the GPU boost.
Here's…

relicweb
- 181
- 1
- 7
8
votes
3 answers
3D Engine for Driving Simulation
Is there any open-source 3D graphics and physics engine specialized in driving simulation? Something like a configurable game engine targeted at games that involve driving, or something more specialized to urban traffic conditions and that would…

luvieere
- 37,065
- 18
- 127
- 179
8
votes
1 answer
Molecular dynamics simulation: fluctuating dipole model implementation
I'm conducting a molecular dynamics simulation for silica. Some time ago I turned to the fluctuating dipole model, and after much effort I'm still having problems implementing it.
In short, all oxygen atoms in the system are polarizable, and their…

Denis
- 163
- 1
- 8
8
votes
7 answers
R: Converting cartesian coordinates to polar coordinates, and then calculating distance from origin
I've been looking for a solution to convert cartesian coordinates (lat, long) that I have to polar coordinates in order to facilitate a simulation that I want to run, but I haven't found any questions or answers here for doing this in R. There are a…

stewart6
- 259
- 2
- 4
- 15