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
30
votes
7 answers
How to plot data by c program?
I am a mechanical engineer who has only limited knowledge in C programming. I wrote some code in order to make simulations, and I want to visualize the simulation results. At the moment I am using Dev-C for writing my codes. With fopen and fprintf…

CrazyHorse
- 309
- 1
- 3
- 5
29
votes
9 answers
Software simulation of a quantum computer
While we are waiting for our quantum computers, is it possible to write a software simulation of one? I suspect the answer is no, but hope the reasons why not will throw some light on the mystery.

Geog
- 291
- 3
- 3
29
votes
3 answers
Simulating a keyboard's output (making a computer pose as another computer's keyboard)
I want to be able to connect a computer A's USB port to computer B's USB port so as to make computer A act as computer B's keyboard.
Any idea how I would go about doing that?
I'm not looking for a ready-made solution (though if one already exists…

Anonymous Coward
- 291
- 1
- 3
- 3
28
votes
12 answers
What are some algorithms that will allow me to simulate planetary physics?
I'm interested in doing a "Solar System" simulator that will allow me to simulate the rotational and gravitational forces of planets and stars.
I'd like to be able to say, simulate our solar system, and simulate it across varying speeds (ie, watch…

Gaius
- 349
- 1
- 4
- 5
28
votes
4 answers
Soccer simulation for a game
I would like to build a simulation engine which can simulate a soccer (association football) match. It would be cool great if you could help me. What is important to me is to decide which actions happen. The event listeners for each action can be…

caw
- 30,999
- 61
- 181
- 291
25
votes
3 answers
Program design in Haskell: how to do simulation without mutability
I have a question about the best way to design a program I'm working on in Haskell. I'm writing a physics simulator, which is something I've done a bunch in standard imperative languages, and usually the main method looks something like:
while…

Haldean Brown
- 12,411
- 5
- 43
- 58
25
votes
2 answers
Why does my water explode?
I am trying to implement the Clavet method for simulating fluids in JavaScript, so debugging is a nightmare, which is why I'm asking here, hoping that someone who has gone through the same thing will tell me what I'm doing wrong.
I have it working…

Alex
- 846
- 6
- 16
24
votes
4 answers
Just how good is VTK?
I have heard some good reviews of the Visualization ToolKit (VTK) from developers. But exactly how powerful is it? For example, can it handle visualization of an entire oil reservoir (in a simulator) with billions of grids points? Most industrial…

Adit Gupta
- 1,314
- 1
- 18
- 32
23
votes
2 answers
java simple neural network setup
I have decided to play around with some simple concepts involving neural networks in Java, and in adapting somewhat useless code I found on a forum, I have been able to create a very simple model for the typical beginner's XOR simulation:
public…

jerluc
- 4,186
- 2
- 25
- 44
22
votes
5 answers
How to simulate touch for any application in Android?
I know some similar questions have already been asked, but I think they are asking for simulating touch in their own applications, however I want to make an agent that can "use" any application.
So what I want to achieve should take as a series of…

jeff
- 13,055
- 29
- 78
- 136
22
votes
3 answers
Generate N random integers that sum to M in R
I would like to generate N random positive integers that sum to M. I would like the random positive integers to be selected around a fairly normal distribution whose mean is M/N, with a small standard deviation (is it possible to set this as a…

itpetersen
- 1,475
- 3
- 13
- 32
22
votes
4 answers
Recursion in Python? RuntimeError: maximum recursion depth exceeded while calling a Python object
I have another problem with my code.
I'm writing my first program in Vpython and I have to make a simulation of mixing two gases. First, I had a problem with borders, but now when the balls(that represents the gas particles) stay within the borders…

Emil Smęt
- 819
- 3
- 13
- 28
21
votes
6 answers
Simulate keystroke in Linux with Python
How can I simulate a keystroke in python? I also want to press multiple keys simultaneously.
Something like:
keystroke('CTRL+F4')
or
keystroke('Shift+A')

microo8
- 3,568
- 5
- 37
- 67
20
votes
6 answers
How to simulate a mouse movement
How can I simulate a mouse event causing the pointer to move 500 pixels to the left, then click using C++. How would I do something like this?

Josh Polk
- 255
- 1
- 3
- 9
20
votes
6 answers
Bullet vs Newton Game Dynamics vs ODE physics engines
I am trying to pick a physics engine for a simple software application. It would be to simulate a rather small number of objects so performance isn't a huge concern. I am mostly concerned with the accuracy of the motion involved. I would also…

Anon
- 5,103
- 11
- 45
- 58