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.

Filter by
Sorted by
Tagged with
-3 votes
0 answers
27 views

Statistical or Machine Learning Approach for Simulating Variable (proportion) [closed]

I am currently facing a challenge in analyzing customer satisfaction data from an electric drive production facility. During a specific period of the month, we encountered technical issues with our ...
R_Student's user avatar
  • 635
-1 votes
0 answers
10 views

Robot Simulator in Matlab (iRobot Create)

I had used the code provided to me and without making any changes I wanted the robot to detect a wall and then follow it. But the robot detected the wall and then got diverted in another direction. So ...
Shekhar Iyer's user avatar
-1 votes
0 answers
8 views

Sfepy-Question about the example its2D_1.py for sfepy

I followed the example provided on the following website: https://sfepy.org/doc-devel/primer.html#meshing. However, why is the outcome I achieved different from the example shown on the website? ...
李紘宇's user avatar
0 votes
0 answers
5 views

Can 2 pairs of Random variables, X - Y & X -Z have same absolute value of kendals tau. Can we simulate such data? Are there any real data examples?

I have a theoretical situation where all data should have unique absolute value of kendals tau. I want to study the effect if this condition is not met. Can we simulate data such that X,Y and X,Z have ...
nadeem's user avatar
  • 1
0 votes
0 answers
52 views

Running simulations on high performing computing cluster generates the same results

I am performing Gillespie simulations a thousand times which take a very long time. I decided to run 10 scripts each with 100 simulations on high performing computing clusters of my school. However, ...
A4747's user avatar
  • 85
0 votes
2 answers
36 views

How does a covergroup handle with an event handle sampling when enabling strobe?

I am curious as to how the sampling happens in a SystemVerilog covergroup when we have an event specified and we also use type_option.strobe = 1 for said covergroup. For example: covergroup c @(...
Gus Mantzorogeorge's user avatar
1 vote
2 answers
107 views

Modelsim displays unknown or garbage number in transcript

I'm trying to write a testbench to test my processor using the $display() statement. But I don't know why there are unexpected, there is unexpected or garbage numbers printed on the transcript. This ...
Giannis's user avatar
  • 13
0 votes
0 answers
14 views

Anyway to dynamically change GIS layer fill color in Anylogic during runtime?

I am building out a transit model with different routes. I would like to be able to shift which route is being displayed during runtime. I have shapefiles for all 3 routes. Any recommendations would ...
Flip Flop's user avatar
-1 votes
1 answer
45 views

Assertion in verilog

In my Verilog project, the signal "CsrPlugin_exceptionPortCtrl_exceptionContext_code" is typically set to 4'bxxxx under normal conditions and take values from 4'b0000 to 4'b1111 during ...
KabiLink's user avatar
0 votes
0 answers
20 views

Position control in Mujoco

Being new to Mujoco, I just created a dummy scene in mujoco for which I now try to control some of the objects in it. The scene contains a fixed table on which a movable book is places, which can be ...
HansDoe's user avatar
  • 25
-1 votes
1 answer
32 views

is it okay to assign 1 bit reg data type element to 4 bit reg element?

i am trying to implement a rtl code where i am giving 1 bit reg data type to an 4 bit reg data type under always block. lets say X & Y are two reg data type.where X is 4 bit reg data type and Y ...
superb ranjeet's user avatar
-1 votes
0 answers
29 views

Julia Simulation Code - Entities Skipping and Output Issue

I'm working on a simulation code in Julia that models a system with multiple machines and entities moving through them. I've encountered two issues in my code, and I'm seeking help to resolve them. ...
ZRC's user avatar
  • 1
0 votes
1 answer
36 views

Why is Modelsim displaying "Error: MIF contains illegal character" when I try to simulate?

I'm currently designing a MIPS based processors in VHDL using Quartus 20.1 along with Modelsim 2020.1. I created a MIF file that (hopefully) calculates the GCD of a given number. My MIF file consists ...
GH051's user avatar
  • 1
0 votes
0 answers
22 views

Issue with Defining varspecs and odefunc in PyDSTool for a Biological Model Simulation

Good afternoon everyone: I'm trying to simulate a biological model using PyDSTool in Python, focusing on the dynamics of Whi5 and SBF activation in budding yeast cells. I've defined two state ...
quik1399's user avatar
  • 175
-1 votes
0 answers
61 views

Solved, Thanks this was C++ in GNU Compiler [closed]

This is run in Code::Blocks, for Windows, and is a console application. Version 1 #include <iostream> #include <vector> #include <algorithm> #include <random> #...
ScarecrowLearnsCode's user avatar
0 votes
1 answer
47 views

How to animate the particles at each timestep instead of their orbits in my simulation?

I want to animate my simulation in a better way: a) Current code is simulating their orbits as a function of time. It is really some zigzag lines at the moment which is "ugly" to look at. b) ...
bluebee09r's user avatar
0 votes
1 answer
91 views

Saving multiple lists to a file in readable format

In my test particle simulation of 8 planets around the sun, I have pos_output and vel_output python lists. I want to save these to a file and make it readable. These are saving my positions and ...
bluebee09r's user avatar
0 votes
0 answers
27 views

Utility of geometric mean throughput in system level performance

In the simulation (5G in-house simulator), while evaluating the system-level performance I observed that along with the arithmetic mean throughput it also considers the geometric mean throughput of ...
Aragorn's user avatar
  • 111
0 votes
2 answers
39 views

Generation of random samples from a mixture of the independent and the comonotonic copula

Dear Stack Overflow community: I am working in R, and I need to create random samples from a mixture of two trivariate copulas: C(u1, u2, u3) = w* C_independence (u1, u2, u3) + (1 - w) * C_comonotonic(...
Vanesa Jordá's user avatar
0 votes
0 answers
65 views

Error when trying to run exported standalone java application

I did an export from an AnyLogic project from Anylogic 8.8.5 to a standalone Java application. When I try to run this experiment standalone with the provided batch file to start on Windows, I get the ...
Lemmy's user avatar
  • 1
0 votes
1 answer
47 views

how do i simulate differential jerk systems in python

I am a beginner in python and I'm trying to simulate a multi scroll chaotic attractor for a project. The details and parameters are in https://sci-hub.se/10.1142/s0218127420501862 [3.2 (i)] im getting ...
Bob Murmu's user avatar
-1 votes
1 answer
91 views

How to save the state of an array every n time steps?

Reposting here since physics stack exchange said it belongs here. I am doing a simple test particle simulation of the orbits of 8 planets around the sun. I need to optimize the code a bit. My stored ...
bluebee09r's user avatar
-1 votes
0 answers
22 views

NEURON and LFPy software in simulating a cell with synapses

I need some help with the code I am currently writing. I am simulating a neuron cell and building synapses to simulate as well. The code works perfectly well when I simulate the synapses at the base ...
Mindartis's user avatar
0 votes
1 answer
20 views

FMUchecker - [FATAL][FMICAPI] Could not load the DLL:

Hello, I exported a simulink model as a FMU. When I run the FMU checker on it, I get the following two (fatal) errors: [FATAL][FMICAPI] Could not load the DLL: Eine DLL-Initialisierungsroutine ist ...
gearskill's user avatar
0 votes
0 answers
47 views

Record a Video in Isaac Sim

In Isaac Sim it is possible to export individual frames via the Animation Recorder or Movie Capture. There are several forum posts concerning the question if entire videos can be recorded (see here, ...
Dr No's user avatar
  • 118
-3 votes
0 answers
37 views

Why do my particles always form triangle structures in pygame? [duplicate]

I am making a sandbox in pygame and the sand always forms strange structures, the structures are like this: Why do the particles always form like triangles? Here is the base class: class Particle: ...
Coding Addict's user avatar
0 votes
0 answers
40 views

Python process scheduler simulator "Didn't select a process" bug

So my code is a simulator of 4 process scheduling models, First come first served, shortest job first, round robin and shortest remaining time first. It runs 10 processes generated from a random seed, ...
Buddy Games Dev's user avatar
0 votes
0 answers
49 views

How can I determine the "time" of contact between a circle and a wall?

I'm a relatively new programmer, and I'm trying to write a simple simulation in Java for personal enrichment using the swing library. One thing I'm struggling with is updating my entities (a ball in ...
Vincent DeCampo's user avatar
0 votes
1 answer
45 views

cannot assign a packed type to an unpacked type

I have a mixed simulation with the Vivado 2022.1 simulator: using a VHDL library I should not change (mytypes.vhd): library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; package ...
G. B.'s user avatar
  • 528
0 votes
1 answer
40 views

Water tiles don't spread evenly in 2D cellular automata

I'm making a simple water simulation based on a cellular automata, but the water tiles don't spread evenly, what's the problem? Here is my code: private const string TITLE = "Water Simulation&...
kkotu's user avatar
  • 1
0 votes
0 answers
6 views

Why cannot I use the 'view cut' function in Abaqus when I change the 'Countour Intervals'?

I'm doing a mechanical analysis with abaqus.I need to print the sectional stress diagram of the workpiece. In the beginning,I chose the 'Continuous' in 'Countour Intervals' and use the 'view cut' ...
jiajie hu's user avatar
0 votes
0 answers
23 views

How to Detect and Handle Collisions Between a Ball and Curved Paddle in JavaScript Canvas?

I'm working on a JavaScript canvas project to simulate a pinball game. I've reached the point where I need to implement collision detection between the ball (a circle) and the flippers (curved paddles)...
pcarvalho's user avatar
0 votes
1 answer
42 views

Speeding up Time Series bootstrapping

I want to perform bootstrapping to time series data and then apply to each different sample a function to calculate various metrics. The bootstrapping itself, that is simulating different samples is ...
msh855's user avatar
  • 1,511
0 votes
0 answers
45 views

How to calculate and plot 3D Fourier transform in Python?

I am currently employing a centered finite difference method to simulate the excitation of a circular membrane by a forcing term in Python, and the code is functioning as intended. To further enhance ...
Manuel Borra's user avatar
0 votes
1 answer
44 views

Python nan showing up in molecular gas simulation

I am writing a script which is supposed to simulate the interaction of gas molecules, using the Lennard-Jones potential. I am facing two issues. When I use np.sqrt() to calculate the distance between ...
Mark's user avatar
  • 131
-1 votes
0 answers
35 views

Problems with gravity in pymunk

I am simulating a galton board with pymunk: import pygame as pg from random import randrange import pymunk.pygame_util pymunk.pygame_util.positive_y_is_up = False RES = WIDTH, HEIGHT = 1200, 700 FPS =...
blabla's user avatar
  • 1
1 vote
2 answers
74 views

SALABIM how to minimize memory requirements

I am using the Salabim package in python to simulate some queueing theory. Salabim (documentation) is based on SimPy but with many extensions and additional features. Most of my problems are solved in ...
Floris Padt's user avatar
0 votes
0 answers
30 views

Omnet++ Logging Message/Packet Traffic

I'm running a simulation on Omnet++ 5.7, and I'd like to record the message/packet traffic of the simulation (as indicated in the picture- https://i.stack.imgur.com/SplvU.png). Despite trying the ...
mtskl's user avatar
  • 1
-1 votes
0 answers
80 views

Simulation of single-channel queue system

[I have written this code, but the calculated values do not converge, and the convergence plot shows some incorrect linear behavior. What should I do to correctly simulate using this approach (FEL)? ...
Javad Akbari Sattar's user avatar
0 votes
0 answers
6 views

Classification with huge testing

I am currently trying to solve a classification problem, which should later be running on a simulation environment. That means it gets the data from multiple events and should assign the data into one ...
Phil Crom's user avatar
0 votes
0 answers
22 views

I encountered the following error in hesim: ictstm$sim_disease() function error: Error: Expecting a single value: [extent=0]

I am doing some practice runs of a flexsurv + hesim simulation, using artificial data. All seems to go well until I hit the ictstm$sim_disease() function, and I get an error: ictstm$sim_disease() ...
Cam McIntosh's user avatar
0 votes
0 answers
17 views

Simulation of flow around a cylinder in OpenFOAM

Geometry I have a made a geometry to simulate the flow around a cylinder using FreeCAD and exported it as .stl file. I am confused how to proceed next? I am using pitzDaily case directory for this ...
Martin Mathew's user avatar
-1 votes
0 answers
32 views

How does the openmodelica/simscape compiler work?

I am interested in doing dynamic simulations of 2D mechanisms, with a few peculiarities specific to my field. I have tried using simscape multibody for this, but I find it unsuited to the application: ...
bart's user avatar
  • 1
0 votes
1 answer
56 views

Why do my Geometric Brownian Motion (GBM) functions for stock simulation produce different results?

I have run some stock simulation using GBM. I have written two functions, one is using the for-loop and is more computationally expensive. After that, I wrote another which is vectorized and thus more ...
Pavel's user avatar
  • 3
0 votes
1 answer
37 views

Switch between different ROS (Robot Operating System) versions

As a ROS (Robot Operating System) developer, how is it possible to switch between ROS versions within my projects? Different Ubuntu OS needed to be installed? I have tried virtual machines and dual ...
hamid manouchehri's user avatar
0 votes
0 answers
13 views

Is there any APN simulation with different profile for testing?

My Android app currently has connection problem (can't connect to server) with some APN when the APN protocol is "IPv4/IPv6": My app can't connect to my server Youtube, Google app still ...
huy nguyen's user avatar
  • 1,371
-1 votes
0 answers
39 views

VHDL (@Vivado): Select ... when - Syntax Error?

-- mux4x1.vhd -- Selektive Signalzuweisung --------------------------- entity MUX4X1 is port(S: in bit_vector(1 downto 0); E: in bit_vector(3 downto 0); Y: out bit); end MUX4X1; architecture ...
freerideforever's user avatar
0 votes
0 answers
17 views

Here's a Matlab code that simulates the one dimensional system. How to change it to a quasi-one dimensional binary chain with two sub-lattices?

In the attached figure I have attached two these lattices. (a) is for the 1 dimensional lattice, and (b) is for the quasi-1D lattice. In (a) t1 and t2 are two coupling from left and right sides. In (b)...
Miracles's user avatar
0 votes
1 answer
15 views

async http request breaks fake-timers

I need to combine simulated discrete time events that I faked with fake-timers with real http requests. Here is an example code const FakeTimers = require("@sinonjs/fake-timers"); const ...
CornFlow's user avatar
0 votes
0 answers
6 views

iFogSim Simulation Termination

I have been using CloudSim for task scheduling on Cloud and now scheduling tasks in iFogSim as well. The problem I am facing is that the simulation does not execute the instruction of CloudSim....
Zulfiqar's user avatar

1
2 3 4 5
106