Questions tagged [simulation]
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.
5,082
questions
0
votes
0
answers
6
views
How to compute Kramers-Moyal coefficients when the time step is not to small in Python?
I am coding a simple one-dimensional Ornstein-Uhlenbeck simulation in python to explain some experimental data from a video source, i.e., tracking a brownian particle in a sequence of frames. The ...
0
votes
1
answer
9
views
How to set packet color in NetAnim inside ns3
AnimationInterface anim("DDoSim.xml");
ns3::AnimationInterface::SetConstantPosition(nodes.Get(0), 0, 0);
ns3::AnimationInterface::SetConstantPosition(nodes.Get(1), 10, 10);
ns3::...
1
vote
0
answers
35
views
Simulate skewed distribution
I want to simulate a left-skewed distribution in R similar to
this one:
I can do it with rbeta
hist(print(rbeta(n = 1000, shape1 = 1, shape2 = 17)))
But then the x-values are between 0 and want, but ...
0
votes
1
answer
20
views
Anylogic - how to share resource pool?
I'm working on a simulation of the bank, and this model has two tasks: 'deposit and withdrawal' and 'consultation'. Since there are more customers in the 'deposit and withdrawal' business, I would ...
0
votes
0
answers
17
views
A way to simulate that a keyboard is connected
First of all, no, I'm not looking for a program that simulates keyboard inputs.
I need a program that simulates a keyboard connected to a PC, even when there's not one plugged.
'Why don't you just ...
-2
votes
0
answers
22
views
Metric Coordinate system in Pygame
I am new in PyGame and I am working on simulating pedestrians and vehicles movements, However, I would like to have the values of objects' position and velocities in meters. So, is it possible to have ...
-2
votes
1
answer
20
views
Optimization Resourcepool Anylogic
Hi there! Could you help and guide me on the objective of optimizing the resource pool? I have 2 shifts in each resource pool. How do I fill this objective? In AnyLogic there is one example but so ...
1
vote
0
answers
25
views
MonteCarlo Simulation for Diffusion in AES
I need to implement a MonteCarlo simulation to an AES to observe the effect of diffusion (if I change a single bit of the plaintext, then half of the bits in the ciphertext should change)... I think I ...
0
votes
0
answers
19
views
pointwise envelopes not including Theoretical line Foxall J
I am computing pointwise envelopes for the Foxall's J function to investigate the whether some point patterns of interest are clustered, avoid or are independent from other point patterns or polygons.
...
0
votes
0
answers
12
views
Best framework to implement multi-agent simulation with local communication (if possible in python)? [closed]
I am trying to study distributed algorithms for control of homogeneous multi-agent.
I want to be have several agents running the same code (having each their own "brain") and be able to ...
0
votes
0
answers
3
views
Arena queue multiple condition problem 3 stations
there are trucks and 3 cleaning stations numbered 1 2 and 3 there are these rule about queues:
1-If there is an empty station trucks go there
2-If there are more than 1 empty station trucks choose the ...
2
votes
1
answer
26
views
Converting 2d Shallow Water Equations to 1d
I'm trying to create a shallow simulation in 1d (sort of like this), and I've been experimenting with this guide to 2d Shallow Water Equations. However, I don't understand the math all too well, and ...
0
votes
0
answers
38
views
Exoplanet Simulator non-zero status error
I am attempting to use a recent simulator, ExoPlaSim, which can model terrestrial exoplanets within the habitable zone. After pip installing the program, I attempted to run the following basic program,...
1
vote
2
answers
46
views
Combine two resources and then send to a node in Anylogic
I am simulating a warehouse inspection model where an inspection-officer (present as node1) needs to go to a different node (node2) to collect tools and then go to node where object to be inspected is ...
0
votes
0
answers
50
views
VHDL outputs all 'xxxx' for one specific case
My code has to work in 2 modes, mode 0 works without any problems, however mode 1 starting of the fist if statement implemented just shows xxx. all of the values are input manually in the simulation ...
0
votes
0
answers
30
views
Simulating Torsion Springs
Probably a bit more of a physics question than a programming question...
Basically I am trying to simulate a robot with a torsion spring in its knee (see picture) and measure what forces are applied ...
0
votes
1
answer
25
views
Generate underlying distribution from bins in python
I found a PDF document describing the income distribution in the US in 1978. Per income range I have the percentage of the population that falls in that income range. I'd like to generate the ...
0
votes
0
answers
12
views
Simulating standard errors from stationary Markov chains
I am reading a paper by Richard A. Berk & David A. Freedman "Statistical Assumptions as Empirical Commitments" and they have an interesting demonstration of how 'violations of ...
0
votes
1
answer
26
views
How to scale a 2D wave simulation by elapsed time?
I have a wave simulation with values calculated like this: (pseudocode)
for(x):
for(y):
new_value = (current[x-1,y] + current[x+1,y] + current[x,y-1] + current[x,y+1]) / 2 - previous[x, y]
...
-1
votes
0
answers
45
views
Undefined output after Vivado Behavioral Simulation
I am implementing a cryptographic algorithm in vhdl and I’ve run into a dead end. This algorithm consists of an NLFSR (nlfsr) and an output function (z_function), that are connected as components in ...
0
votes
0
answers
14
views
Evaluation metrics in network simulator 2 ns2
I have a wireless network project which is written for detecting Sybil attacks in ns2 and now I'm supposed to evaluate some metrics e.g. Detection rate(DR), False positive rate (FPR), and Average ...
-1
votes
0
answers
8
views
How to measure Thermal Resistance of Heat Sink using Solidworks Thermal Simulation?
For my project, I have created a heat sink, to evaluate the efficiency of the Heat sink the data required is Thermal resistance. I have done the analysis in Solidworks Thermal Simulation but in ...
0
votes
0
answers
7
views
Average Delay in a queue
I have one server with a FIFO queue, the server capacity is 1 and simulation stops at 5 minutes. I have 2 events: arrive and leave server the server.
I'm calculating the average delay in queue which ...
0
votes
0
answers
37
views
Simulate an Integral of a Brownian Bridge Process
Alright, so I am trying to simulate a value and its not working out the way I expect. I think I narrowed down my an issue to me simulating the integral of brownian bridge process. I know that 1000 ...
0
votes
0
answers
69
views
How to test a real ECU via canoe?
I want to do test a real ECU using VN5610A and CANoe.ethernet. the Vector hardware Config set up like this:
When send the diagnostic request to the real ECU, it cannot reach the real ECU. The trace ...
0
votes
0
answers
13
views
Shape constrainted GAM with positively skewed data
I am trying to fit a shape constrained additive model with data that is positively skewed and continuous (i.e. not strictly positive), however finding the appropriate distribution is proving ...
0
votes
1
answer
13
views
Is there a convenient way to dynamically create constraints between two bodies in MuJoCo?
I am trying to use MuJoCo to create a modular robotics framework to study learning of reconfiguration and locomotion.
In order to do this, I need to model connection and disconnection by dynamically ...
0
votes
0
answers
8
views
My music player's track feature is not working in Logism
I've set up a Logism circuit which allows me to either proceed to the next track or the previous track. The track is displayed on 2 hex displays, with it going from 00 to 99. The issue is that I ...
2
votes
1
answer
98
views
Simulate Flipping French Fries in R
I always had this question since I was a kid:
Suppose you place 100 french fries on to a pan over a stove
For this problem, let's assume that each french fry can only have 2 "states" : &...
0
votes
0
answers
14
views
Changing gain parameter in matlab function block during simulink simulation
I need to change gain/constant parameter in Simulink during the simulation. Sometimes it need to be changed and sometimes it doesn't, so I try to do it in the Matlab function block. Anyway, I didn't ...
-1
votes
0
answers
32
views
How to add Magnus effect to this Matlab code?
I am writing a Matlab code to simulate the trajectory of a soccer ball. So far I managed to display a 3d plot with it's trajectory but the Magnus effect that's in charge of the ball's rotation isn't ...
-1
votes
1
answer
21
views
Can docker container call host syscalls?
I'm running a Docker container (alphine) on MacOS 11.6, there's a Typescript app in that container. I need to simulate and record input from Docker on host. Is it possible to setup Docker in a way ...
-1
votes
0
answers
13
views
Tools in VisIt Visualization Software?
I am using VisIt to visualize 3D simulation data in the form of VTK files. I am fairly new to this software and was wondering if it has the following three tools:
Measure distance between points in ...
-4
votes
0
answers
24
views
How do I make (in C#) a basic .NET application change mouse position on screen, press keys ect
I was wondering, how do I make something like "Program messes with my gameplay" in C#. I just want a program to move with mouse, click, press some keys, you get the idea. I there any library ...
0
votes
1
answer
18
views
How to randomly simulate an array of records based on a representative record and property-specific generator functions?
When given a structure of one record, how can I randomly simulate n records of the same structure?
Example
Consider that I have an array of records such as:
[
{
"id": 12345,
...
0
votes
1
answer
21
views
Cannot pass arguments using sbt to gatling simulation
Regarding to Gatling SBT execute a specific simulation topic is there any way to pass argument to simulation?
I've been trying passing command from any CLI like:
sbt -Dx=1 -Dy=2 -Dz=3 "gatling:...
0
votes
0
answers
39
views
How can I keep track of the information of multiple objects where there are various events in Simpy?
I tried to build a simulation model as below, but I got error.
Here's my scenario.
I have two big areas of hospital.
EU (EU1 and EU2)
IU (IU1 and IU2)
Each big area has two care areas and patient ...
0
votes
0
answers
35
views
3D 3-body motion simulation
I am trying to use the velocity Verlet to simulate the 3-body problem. I am 95% sure that I gravitational force formula and the velocity Verlet algorithm is correct (that is I didn't seem to have any ...
0
votes
0
answers
25
views
404 Client Error: Not Found ("No such container: outrider_simian_interface")
Why is the outrider_simian_interface not found?
What I did:
I tried building as usual with ./docker/build-local --av
Simian console output when clicking run:
Simulation failed:
Error: No such ...
1
vote
1
answer
32
views
Universal joint physics simulation in unity
I‘m trying to create real physics simulation of the universal joint in unity. In my case universal joint is in vertical position. The whole mechanism consists of four objects: white ceiling, green ...
0
votes
0
answers
18
views
NFFT doesn't work with odd image dimensions! in ehtim
I'm trying to obtain the synthetic VLBI image using the python package ehtim (data of the Event Horizon Telescope is being used). Everything works fine with the example .fits files. However, when I'm ...
1
vote
0
answers
16
views
WebGL how two objects in the same shader can interact correctly
I have two objects in a single shader: a cloth (made of vertices and triangles) and a sphere. When the cloth falls down and meets the sphere, there must be a collision such that the two objects are ...
0
votes
0
answers
37
views
I have some problem with OOMMF simulation
Specify Oxs_ScriptUZeeman [subst {
script_args total_time
script {SmoothStep $step_height [expr {$rise_time*1e-12}]}
multiplier [expr {0.001/$mu0}]
}]
proc SmoothStep { Hnom ...
0
votes
0
answers
18
views
How can I add the following stochastic elements to my simulation of a multiple machine with buffer system?
I have gotten a few steps further along with my simulation and analysis of the machines that I want to simulate. As of now I am stuck and do not for the life of my know how to go further.
I have ...
0
votes
1
answer
25
views
Creating a dataset from queue size in service block
I am a newbie to anylogic simulations. In my project, I want to take out queue size at every time step from a service block and create a dataset. Similarly, I also want to take out the mean queue size ...
0
votes
0
answers
35
views
How can i Calculate a Queue length
python I am making a bank simulation table and I want to calculate the queue length how can I call the previous row arrival time or start time or any input(I want the queue length to calculate the ...
1
vote
0
answers
29
views
Simulating multiple keypress upon press of a button in Javascript
how can I simulate (trigger) multiple keypress upon press of a button using javascript (javascript and html), while having the window being the event target.
I basically wish to create a button, when ...
0
votes
0
answers
27
views
Making a one player game multiplayer in R
I have this code that simulates a snakes and ladders game with 2 players. Unfortunately it seems like it simulates a game with 2 players, but the players play independently. I want to make them play ...
-1
votes
0
answers
13
views
Problem in output of monte carlo in Matlab
In this code I am intending to get service life T(ser)
T(ser) = [ Pf(t) >= Pfmax ]
here , P is probability of an event.
Pfmax is generally between 7 to 10% and
Pf(t) = P[C >= Cr],
C = Cs[1-erf(...
0
votes
0
answers
30
views
Using Velocity Verlet to simulate 3-body motion in 3D
As the title states, I want to use the velocity Verlet algorithm to simulate the trajectories of 3 bodies in 3D. The code is based from this. My problem is the trajectories outputted seem to be small ...