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
6
votes
1 answer
LAN simulation using Java?
I have to create a Java program that simulates around 50-100 nodes. I want to test a few routing algorithms and analyse network performance. I tried simulating nodes with threads, but my CPU utilization goes up like anything when I use more threads.…

shri ram
- 103
- 1
- 8
6
votes
1 answer
Faster code in R
FYI: I have edited this significantly since my first edition. This simulation has been reduced from taking 14 hours to 14 minutes.
I am new to programming but I have made a simulation that tries to follow asexual replication in an organism and…

Kevin
- 1,112
- 2
- 15
- 29
6
votes
2 answers
Continuous Physics Engine's Collision Detection Techniques
I'm working on a purely continuous physics engine, and I need to choose algorithms for broad and narrow phase collision detection. "Purely continuous" means I never do intersection tests, but instead want to find ways to catch every collision before…

Griffin
- 2,399
- 7
- 48
- 83
6
votes
1 answer
Real-time fluid simulation techniques
What techniques are used for the real-time simulation of fluids such as water, for example in videogames?
In particular, I am looking for a project-idea for an (unfortunately rather short) physics project at Uni, so the simpler the better (if there…

Ben
- 15,938
- 19
- 92
- 138
6
votes
2 answers
What is the best architecture for this simulator?
I have to make a simulator in Java, which will simulate car riding on highway. There should be 3 lanes on highway, in every lane there are cars with constant speed. On this highway, there is one agent, which has to drive through and not crash into…

vasco
- 1,502
- 1
- 16
- 19
6
votes
2 answers
GPU-accelerated hardware simulation?
I am investigating if GPGPUs could be used for accelerating simulation of hardware.
My reasoning is this: As hardware by nature is very parallel, why simulate on highly sequential CPUs?
GPUs would be excellent for this, if not for their restrictive…

eisbaw
- 2,678
- 2
- 19
- 18
6
votes
1 answer
How do I simulate data for a power analysis of a repeated measure linear mixed effects regression using simr?
I would like to conduct a simulation-based power analysis for a linear mixed model in lmer with repeated measures from scratch. I understand that simr might be the package to go with. However, I do not understand what I have to do and am not able to…

Sebastian N
- 61
- 1
6
votes
1 answer
VCD dump for vhdl simulation via modelsim. HOWTO?
It's the first time i try to generate a VCD and i am getting some troubles.
I have a testbench called bench_minimips.vhdl that contain the entity sim_minimips.
I want simulate it and get a VCD out of it.
i am typing the following command in the…

Stefano
- 3,981
- 8
- 36
- 66
6
votes
1 answer
Water in a falling sand simulation
I am currently working on a very simple 'Falling Sand' simulation game in C++ and SDL2, and am having problems with getting water to flow in a more realistic manner. I basically have a grid of cells that I iterate through bottom-to-top,…

James Mclaughlin
- 570
- 1
- 8
- 16
6
votes
3 answers
Javascript chain rule, return specific value instead of [Object object] [x]
The question is at the title, but first please look at this code:
function number(a) {
return {
add: function(b) {
result = a + b;
return this;
}, substract(b) {
result = a - b;
…

xx3004
- 760
- 2
- 11
- 20
6
votes
1 answer
How to visually animate Markov chains in Python?
I want to "visually" animate Markov chains like here : http://markov.yoriz.co.uk/ but using Python instead of html css and javascript.
I don't know if there is any library that makes this easy, till now I managed to make a visual representation of…

mac179
- 1,540
- 1
- 14
- 24
6
votes
5 answers
Ant simulation: it's better to create a Process/Thread for each Ant or something else?
The simple study is:
Ant life simulation
I'm creating an OO structure that see a Class for the Anthill, a Class for the Ant and a Class for the whole simulator.
Now I'm brainstorming on "how to" make Ants 'live'...
I know that there are projects…

MiPnamic
- 1,257
- 10
- 18
6
votes
1 answer
Comparison of two vectors resulted after simulation
I would like to apply the Rejection sampling method to simulate a random vector Y=(Y_1, Y_2) of a uniform distribution from a unit disc D = { (X_1 , X_2) \in R^2: \sqrt{x^2_1 + x^2_2} ≤ 1} such that X = (X_1 , X_ 2) is random vector of a uniform…

Sophie Allan
- 87
- 7
6
votes
4 answers
Finite element method introduction references
Could you recommend some good articles/notes/tutorials on finite element method (FEM)? I don't deal with advanced math every day, so a tutorial that introduces me to math needed to understand FEM will be great.
My goal is to write my own simulation…

martin89
- 69
- 2
6
votes
2 answers
Robocup Soccer simulation 2D learning resources
Does anyone know any good resources to start?

Omid Kamangar
- 5,768
- 9
- 40
- 69