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
6 answers
Simulation in java
I am novice to the simulation world, and want to learn how programmers develop real simulation projects in java. I would use eclipse.
Could anyone point to other things that I need to know (e.g. other packages, software etc. and their purposes)?
I…
Arif
6
votes
1 answer
Generating data from exponential distribution by incorporating correlation between two random variables
Suppose X~exp(.67) , Y~exp(.45) and Z~exp(.8). Now X is correlated with Y with a correlation coefficient -0.6. Again, X is correlated with Z with a correlation coefficient -0.6. How can I incorporate this correlations to generate random variables X,…

user149054
- 245
- 1
- 4
6
votes
1 answer
How to simulate slow connection with Javascript?
I've got a request for a research website which will test user's behavior when doing repetitive tasks on a normal and slow Internet connections.
I'm wondering if there are any JS libraries I could use for bandwidth throttling in the different…

Goran Stoyanov
- 2,311
- 1
- 21
- 31
6
votes
5 answers
Visualization of a discrete-event simulation on a grid / warehouse layout
I need to simulate a warehouse with several autonomous vehicles moving on a given layout with simple priority rules. In my understanding, the problem can easily be tackled with discrete-event simulation (DES) and I would use SimPy for this.
The…

mondano
- 827
- 10
- 29
6
votes
1 answer
Visual Programming Language Control
Is there a .NET based (WinForm or WPF) control that allows simple visual programming (assignments, boolean expressions, and math expressions)? Something like Microsoft VPL, only embeddable and supported.

Jake Pearson
- 27,069
- 12
- 75
- 95
6
votes
1 answer
Simulate Compound poisson process in r
I'm trying to simulate a compound Poisson process in r. The process is defined by $ \sum_{j=1}^{N_t} Y_j $ where $Y_n$ is i.i.d sequence independent $N(0,1)$ values and $N_t$ is a Poisson process with parameter $1$. I'm trying to simulate this in r…

Slangers
- 117
- 2
- 7
6
votes
3 answers
Stubbing functions in simulations
I'm working on an embedded C project that depends on some external HW. I wish to stub out the code accessing these parts, so I can simulate the system without using any HW. Until now I have used some macros but this forces me to change a little on…

eaanon01
- 1,069
- 7
- 9
6
votes
1 answer
Implementing semi-implicit backward Euler in a 1-DOF mass-spring system
I have a simple (mass)-spring system wih two points which are connected with a spring. One point is fixed at a ceiling, so I want to calculate the position of the second point using a numerical method. So, basically I get the position of the second…

Etan
- 17,014
- 17
- 89
- 148
6
votes
3 answers
How to prevent or detect "Location Simulation" by Xcode on your application in production ? [Big Issue]
I guess this is a huge flaw in iOS .. like currently it's happening for PokemonGo currently the normal users are able to spoof device location to a desired one in non-jailbroken devices .. any idea or workaround to detect location simulation by…

mustafa96m
- 329
- 3
- 16
6
votes
5 answers
What is the difference between using an initial block vs initializing a reg variable in systemverilog?
What is the difference between the following two examples with regards to simulation?
A)
reg a;
initial a = 1'b0;
and
B)
reg a = 1'b0;
Is it different for logic variables?

supernun
- 437
- 1
- 6
- 16
6
votes
2 answers
Why should an HDL simulation (from source code) have access to the simulator's API?
This is a question inspired by this question and answer pair: call questa sim commands from SystemVerilog test bench
The questions asks how Verilog code could control the executing simulator (QuestaSim). I saw similar questions and approaches for…

Paebbels
- 15,573
- 13
- 70
- 139
6
votes
3 answers
Best practices when implementing a scientific simulation methodology from scratch
in the field of scientific simulations (physics) I am thinking about developing some new simulation package in C/C++. What do you think would be the best practices when starting here from scratch? Can you recommend some bibliography?
Thanks

Open the way
- 26,225
- 51
- 142
- 196
6
votes
2 answers
More memory efficient way to define many objects of the same type
So, I'm foraying into the world of plasma simulation. Now, while I'm aware that top-level simulations are written in fortran and have ultra-memory efficient subroutines and specialized code, I'm hoping to just run some low-level simulations.
My…

Yoshi
- 671
- 8
- 20
6
votes
1 answer
How to make a sliding member in Processing with particle systems
I am simulating particle system in Processing. Based on Daniel Shiffman’s Nature of Code book, I did a spring and then I started experimenting with sliders to do one that has longer or shorter length based on a slider.
Now, I am trying to make one…

Apollon1954
- 1,388
- 4
- 16
- 33
6
votes
1 answer
Using FRP to model road network with jams
I am currently trying to understand arrows and FRP, and I came upon a question, which I cannot seem to map to FRP, namely how to model a road network.
I thought I could model a road network as Arrows, where each Arrow represents a road segment. It…

Martin Drautzburg
- 5,143
- 1
- 27
- 39