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.

5194 questions
20
votes
7 answers

How can I simulate SerialPort interactions for testing?

I'm about to start developing a small app (C#) that communicates with a PLC and a testing unit via Serial Ports - this is my first venture into this area. In essence, I am going to send the PLC a signal to start an operation, and then I am going to…
CJM
  • 11,908
  • 20
  • 77
  • 115
20
votes
6 answers

How to simulate OutOfMemory exception

I need to refactor my project in order to make it immune to OutOfMemory exception. There are huge collections used in my project and by changing one parameter I can make my program to be more accurate or use less of the memory... OK, that's the…
Gacek
  • 10,184
  • 9
  • 54
  • 87
19
votes
6 answers

How does functional programming apply to simulations?

Besides the general question in the title, How do functional programmers and functional languages approach the domain of simulations, which seem to be most naturally handled by object-oriented languages? Are there open-source examples of complex…
limist
  • 1,288
  • 2
  • 16
  • 29
18
votes
6 answers

plotting package for c++

I have got a question about plotting package for c++. For last few years I was using python and matplotlib, right now I am using c++ and I would like to find something similar to matplotlib (http://matplotlib.sourceforge.net/gallery.html) like 2d,…
nykon
  • 605
  • 2
  • 9
  • 19
16
votes
1 answer

How to make verlet integration collisions more stable?

I'm not using any engine, but instead trying to build my own softbody dynamics for fun using verlet integeration. I made a cube defined by 4x4 points with segments keeping its shape like so: I have the points collide against the edges of the scene…
Green Cell
  • 4,677
  • 2
  • 18
  • 49
16
votes
3 answers

What to use for VHDL/digital-logic simulation on Mac OS X

I suddenly realized that there is no Altera Quartus or Xilins ISE or ModelSim on Mac OS X. What do people use to at least simulate VHDL and schematic designs on Macs?
Vladimir Keleshev
  • 13,753
  • 17
  • 64
  • 93
16
votes
3 answers

Is there any simulator/tool to generate messages for streaming?

For testing purpose, I need to simulate client for generating 100,000 messages per second and send them to kafka topic. Is there any tool or way that can help me generate these random messages?
Sameeksha Raina
  • 199
  • 1
  • 2
  • 9
16
votes
5 answers

High-level Architecture (HLA) versus Distributed Interactive Simulation (DIS)

Is there a high-level overview of HLA versus DIS simulation frameworks? Can one host the other and vice-versa?
fogus
  • 6,126
  • 5
  • 36
  • 42
16
votes
5 answers

Is Hadoop right for running my simulations?

have written a stochastic simulation in Java, which loads data from a few CSV files on disk (totaling about 100MB) and writes results to another output file (not much data, just a boolean and a few numbers). There is also a parameters file, and for…
Pengin
  • 4,692
  • 6
  • 36
  • 62
16
votes
6 answers

An efficient way to simulate many particle collisions?

I would like to write a small program simulating many particle collisions, starting first in 2D (I would extend it to 3D later on), to (in 3D) simulate the convergence towards the Boltzmann distribution and also to see how the distribution evolves…
philkark
  • 2,417
  • 7
  • 38
  • 59
15
votes
14 answers

How can I make sure N threads run at roughly the same speed?

I'm toying with the idea of writing a physics simulation software in which each physical element would be simulated in its own thread. There would be several advantages to this approach. It would be conceptually very close to how the real world…
lindelof
  • 34,556
  • 31
  • 99
  • 140
15
votes
10 answers

Algorithms for Simulating Fluid Flow

I've got a game idea that requires some semi-realistic simulation of a fluid flowing around various objects. Think of a pool of mercury on an irregular surface that is being tilted in various directions. This is for a game, so 100% physical realism…
Kristopher Johnson
  • 81,409
  • 55
  • 245
  • 302
15
votes
2 answers

Open source, pure Java physics / dynamics library

I'm looking for a lightweight, pure Java physics engine to do some simulations for robotic motion control. My requirements: Rigid body physics Joint constraints and forces Convex object collision detection Lightweight, pure Java so it can be…
mikera
  • 105,238
  • 25
  • 256
  • 415
15
votes
3 answers

Using standard evaluation and do_ to run simulations on a grid of parameters without do.call

Goals I want to use dplyr to run simulations on grids of parameters. Specifically, I'd like a function that I can use in another program that gets passed a data.frame for every row calculates some simulation using each column as an argument also is…
jaimedash
  • 2,683
  • 17
  • 30
15
votes
10 answers

Simulate keyboard input in C#

I need to know how to simulate keyboard input for keys W, S, A, D. I've used SendKeys with no avail as well as the InputSimulator library with no fix. What I'm trying to do is make it to where applications such as games (Battlefield, Natural…
Wezley
  • 413
  • 1
  • 3
  • 19