simulation

Materials science for game programming

Does anybody know of a good resource for programming the behaviors of various materials interacting? Game programming physics resources usually cover collision detection, momentum, intertia, etc., but they seem to deal with a sort of idealized "material". I'm interested in simulating behavior of, say a projectile striking metal, which ...

Time synchronization in java

Hi there! Inside a for-loop I'm controlling the simulation-step-based traffic simulator SUMO by retrieving and processing information of vehicles. To make sure that my program simulates in "real-time" (1 simulation-step = 1 second) I want to sleep my program after the processing phase until the next time step begins. To get better resul...

What's the best trick to speed up a monte carlo simulation?

Whenever I run large scale monte carlo simulations in S-Plus, I always end up growing a beard while I wait for it to complete. What are the best tricks for running monte carlo simulations in R? Any good examples of running processes in a distributed fashion? ...

Open source statistics library for C# for generating random number of various distributions?

This is for simulation. In particular, I'm trying to generate natural sounding words and names, and the uniform distribution in the Random class provides doesn't cut it. This isn't a dupe question because the similar questions weren't look for C# random number generators. ...

Soccer simulation for a game

Hello! I would like to build a simulation engine which can simulate a soccer (association football) match. It would be cool great if you could help me. What is important to me is to decide which actions happen. The event listeners for each action can be implemented later easily. The function should only simulate the game results and com...

Just how good is VTK?

I have heard some good reviews oF Visualization ToolKit(VTK) from developers. But, exactly how powerful is it? For example, can it handle visualization of an entire oil reservoir (in a simulator) with billions of grids?? Most industrial reservoir simulators run on parallel processors. I know VTK supports parallel processing, but again h...

Improving soccer simulation algorithm

Hello! In another question, you helped me to build a simulation algorithm for soccer. I got some very good answers there. Thanks again! Now I've coded this algorithm. I would like to improve it and find little mistakes which could be in it. I don't want to discuss how to solve it - as we did in the last question. Now I only want to imp...

How to build a mini-network of small programs feeding each other data?

I'm trying to simulate a real-time network where nodes are consumers and producers of different rates. How would I quickly implement a sample of this with Python? I was imagining that I'd write a simple program for each node, but I'm not sure how to connect them to each other. ...

Threads - Simulation of execution time

I have two secondary threads,that executes the method WriteX as described below: static void Main(string[] args) { ThreadStart one = new ThreadStart(WriteX); Thread startOne = new Thread(one); ThreadStart two = new ThreadStart(WriteX); Thread startTwo = new Thread(two); startOne.Start(); ...

Stochastic calculus library in python

Hello, I am looking for a python library that would allow me to compute stochastic calculus stuff, like the (conditional) expectation of a random process I would define the diffusion. I had a look a at simpy (simpy.sourceforge.net), but it does not seem to cover my needs. This is for quick prototyping and experimentation. In java, I u...

Simulator or Emulator? What is the difference?

While I understand what Simulation and Emulation mean in general, I ,almost always, get confused about them. Assume that I create a piece of software that mimics an existing hardware/software, what should I call it? a Simulator or an Emulator? Could anyone explain the difference in terms of programming? Bonus: What is the difference in ...

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 different parameters the distribution of simulation outputs would be expected to change. T...

Demonstrate the Power of a Linux based Load balancing cluster

I have to demonstrate the power of a cluster, i.e its advantage over a normal machine. Is there any way I can show,to the layman that "If this had been done on a normal workstation, it would have taken X hours and with this cluster its the nth fraction of the x hrs taken"? Please suggest some simulations/renders/computational tests tha...

R: How do I approximate distributions of AICs with simulated data?

I have likelihood functions LFi,i=1,2 with parameters [lambda,p] and [lambda]: LF1<-lambda^sp^(n-n0)(1-p)^n0/((1-1/exp(lambda))^(n-n0)(exp(lambda))^(n-n0)); LF2<-lambda^s/(exp(lambda))^n where s is the sum of observed counts, n is the number of observations, and n0 is the number of observed zeros. As usual, maximised log(LFi)s and AI...

Experiences with Test Driven Development (TDD) for logic (chip) design in Verilog or VHDL

I have looked on the web and the discussions/examples appear to be for traditional software development. Since Verilog and VHDL (used for chip design, e.g. FPGAs and ASICs) are similar to software development C and C++ it would appear to make sense. However they have some differences being fundamentally parallel and requiring hardware ...

How does a TABLE work in AHDL?

I have an implementation of a Control Unit (UC) in AHDL, and I'm supposed to simulate it and see if it works as defined in the correspondent ASM diagram. I used MAX+plus II to simulate it, and it doesn't work as I expected, but I can't really say what's wrong because I am not familiar with AHDL, let alone the TABLE part. Here is my Cont...

How to use correlogram to estimate variance?

From a book of computer simulation, I got this two equation. The first is to calculate correlogram, the second is how to use correlogram to estimate variance. The common approach to estimate variance of observation is often not incorrect in computer simulation because observations are often related. My question is, the value I calcu...

How to simulate click on (x, y) point of HTML document with Yahoo UI (JS) ?

DOCS http://developer.yahoo.com/yui/3/event/#eventsimulation . but I do not understand how to do it( So how to simulate a mouse down at point ( X, Y) in the client area of some HTML Object with YUI? ...

Steady state in a process oriented simulation

I'm currently writing a process-oriented simulator using JavaSim for an university exam. The simulator itself is working nicely, but I have one major doubt: is there a correct/best way to find the steady state of the simulation in code? The book I read vaguely describe the process of finding the "steady state" when the behavior of the s...

How to simulate click on <input type="image" /> ?

when we submit a form using this type of input, the coordinates (x,y) are appended to the result. it works if I dynamically create 2 hidden inputs, but I wanted something different. Event or MouseEvent would be great, but I couldn't make it work here's my current code: (it works fine) var input = document.createElement("input"); input...