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
4
votes
5 answers
Squid game Episode 7 with simulation
Last night I saw the episode 7 of the Squid game tv series. The episode has a game with binomial distribution in the bridge.
Specifically there are 16 players and a bridge with 18 pair of glasses (one pure glass and one safe glass).If one player…

Homer Jay Simpson
- 1,043
- 6
- 19
4
votes
4 answers
Best language for Molecular Dynamics Simulator, to be run in production. (Python+Numpy?)
I need to build a heavy duty molecular dynamics simulator. I am wondering if python+numpy is a good choice. This will be used in production, so I wanted to start with a good language. I am wondering if I should rather start with a functional…

jason
- 509
- 1
- 5
- 7
4
votes
1 answer
Looping over rows of a data frame to simulate
This is more of a programing in R question than any concept question. I tried but my lack of expertise in R is frustrating me:
I have a dataframe df with columns ID, xR01, xR02, nR01, nR02, xRsum, and I want to use hypergeometric function to…

user877204
- 97
- 2
- 6
4
votes
2 answers
Average time to hit a given line on 2D random walk on a unit grid
I am trying to simulate the following problem:
Given a 2D random walk (in a lattice grid) starting from the origin what is the average waiting time to hit the line y=1-x
import numpy as np
from tqdm import tqdm
N=5*10**3
results=[]
for _ in…

Mattiatore
- 162
- 8
4
votes
1 answer
Why should I use normalised units in numerical integration?
I was simulating the solar system (Sun, Earth and Moon). When I first started working on the project, I used the base units: meters for distance, seconds for time, and metres per second for velocity. Because I was dealing with the solar system, the…

Edward Henry Brenner
- 157
- 1
- 9
4
votes
1 answer
Combine multiple FMUs into one
I have a pandapower network and at some buses I have included batteries and photovoltaics as FMUs. Right now I have a master algorithm that creates the connections between the inputs and the outputs of the different FMUs and it runs the…

Kosmylo
- 436
- 1
- 6
- 20
4
votes
2 answers
Is it possible to simulate a blocked dialog like 'window.confirm()'?
I want to simulate a block dialog like window.alert(), window.confirm(), or window.prompt() with DIV+JavaScript. It seems easy using a callback function. But I want to block the process while the confirm dialog is shown.
That is to say, I want to…

zidianqs
- 117
- 1
- 11
4
votes
1 answer
How to simulate first passage time probability in python for a random walk?
I have a 2D random walk where the particles have equal probabilities to move to the left, right, up, down or stay in the same position. I generate a random number from to 1 to 5 to decide in which direction the particle will move. The particle will…

sarah
- 43
- 5
4
votes
1 answer
How to run a Gatling simulation from java code without maven and gradle?
I would like to execute my Gatling simulation from within Java code and not with a command maven or gradle. Is it possible to run the tests/scenarios directly from Java code?

Mohsni Oumaima
- 43
- 7
4
votes
2 answers
Algorithm for calculation of future good amounts with complex production lines
This is a very long post, but only the first half is really relevant.
The second half describes only what I have tried to solve it, but what seemed to me too inefficient (it can perhaps help to get the idea of what I want). The relevant part ends…

Jelumar
- 470
- 1
- 4
- 14
4
votes
1 answer
Weird behaivour when trying to simulate gravity
I'm trying to simulate Newtonian gravity with C++ and GLM. I'm using GLM vectors and this equation I found on Wikipedia
I translated this into code:
const static double g_const = 6.67430E-11;
void gravitate(object& obj1,object& obj2) {
glm::vec2…

CosmoΓammaByte
- 78
- 1
- 5
4
votes
1 answer
Force calculation for magnetic pendulum and numerical integration
I've been working on a simulation of a magnetic pendulum (Magnetic Pendulum for reference). Now, I have a question concerning how you calculate the forces/acceleration:
In examples you find online of the magnetic pendulum (such as the one provided…

Eioer
- 51
- 5
4
votes
3 answers
Availability data
I'm creating a simulator for a large scale P2P-system. In order to make the simulations as good as possible I would like to use data from the real world. I'd like to use this data to simulate each node's behavior (primarily it's availability). Is…

Yrlec
- 3,401
- 6
- 39
- 75
4
votes
0 answers
Can I use the output one GLSL shader frame as input to the next?
I'd like to use a single bitmap to store the state of a 2D dynamical system which evolves over time according to some rules. Think of it as a grayscale image where the brightness of each pixel represents the temperature of each point on a…

pbouf77
- 193
- 1
- 6
4
votes
1 answer
Proper nuclear fission simulation in C++
I'm trying to simulate atomic fission in C++.
Fissile nuclides have known probabilities to produce certain atomic numbers and mass numbers as fission products, such distributions are called fission products yield.
I know mass product and atomic…

Alex Foglia
- 520
- 5
- 16