simulation

Is faking a WPF mouseover possible?

I have a data template with a textbox and a button with some styles on it. I would like to have the button show the mouse over state when focus is on the textbox beside it. Is this possible? I figure it would involve something like this. I can get the textbox through use of FindVisualChild and FindName. Then I can set the GotFocus even...

directx mouse click simulation

How can I simulate the mouse click in a directx application? mouse_event and PostMessage with WM_LBUTTONDOWN don't work... so it must be something to do with the DirectInput I haven't found out nothing useful with google, so you may be knowing the answer... thanks in advance //update I wrote the text wrongly, what I want is to make ...

Suggestions for Python debugging tools?

Yesterday I made a simulation using Python. I had a few difficulties with variables and debugging. Is there any software for Python, which provides a decent debugger? Related question: What is the best way to debug my Python code? ...

How can I make a country plot in Sage/Maxima?

I heard today that Maxima can do the country plot by contour_plot in Sage. I tried the following unsuccessfully to import Maxima: from Maxima import contour_plot I would like to make a similar map as here. ...

How can I create a random simulation?

I've been playing this flash game and after I'd gotten over the initial ('lol, fire') reaction I started to wonder how I could replicate this contact-mutate behaviour in programming. I guess it's a little like the honeypot xkcd. I was thinking of starting with a scenario where particles deflect off each other and the containing walls. T...

Simple simulations for Physics in Python?

I would like to know similar, concrete simulations, as the simulation about watering a field here. What is your favorite library/internet page for such simulations in Python? I know little Simpy, Numpy and Pygame. I would like to get examples about them. ...

Java - Distributed Programming, RMI?

I've got a doozy of a problem here. I'm aiming to build a framework to allow for the integration of different traffic simulation models. This integration is based upon the sharing of link connectivities, link costs, and vehicles between simulations. To make a distributed simulation, I plan to have a 'coordinator' (star topology). All pa...

Simulation in java

Hi, I am novice to the simulation world, and want to learn how programmers develop real simulation projects in java. I would use eclipse. Could anyone point to other things that I need to know (e.g. other packages, software etc. and their purposes)? I am afraid the question might seem a bit vague as it is not clear which type of project...

Should I use Java applets or Flash to make webpage-embeddable physics simulations?

I want to start working on some simple physics simulations that I can embed onto my website. I have a lot of experience with web programming with languages like PHP and javascript, a fair amount of experience with python and some experience with C++. Should I use Java applets, Flash or something else? Also, could you please recommend a...

Water simulation with a grid

For a while I've been attempting to simulate flowing water with algorithms I've scavenged from "Real-Time Fluid Dynamics for Games". The trouble is I don't seem to get out water-like behavior with those algorithms. Myself I guess I'm doing something wrong and that those algorithms aren't all suitable for water-like fluids. What am I do...

USB Plug-and-Play simulation

I was wondering if there was a way to simulate a plug and play event through software only. We are testing a driver and we wanted to test the installation of a driver from the start of a pnp event, but we don't want to have a real printer hooked up. ...

Simulation design - flow of data, coupling

Hello, I am writing a simulation and need some hint on the design. The basic idea is that data for the given stochastic processes is being generated and later on consumed for various calculations. For example for 1 iteration: Process 1 -> generates data for source 1: x1 Process 2 -> generates data for source 1: x2 and so on Later...

Where do I start to write/use a 3D physics simulation engine?

I need to write a very simple 3D physics simulator in Java, cube and spheres bumping into each other, not much more. I've never did anything like that, where should I start? Any documentation on how it is done? any libraries I could re-use? ...

Discrete event simulation framework for .NET

Does anyone have an experience with some discrete event simulation library that could be used in .NET (C#)? Despite the basic functionality for queing events and dispatching them, it would be fine to have some non-deterministic behavior (e.g. failures simulation). I have some tips and I am even considering to write my own, but first, I...

How would you keep a top view of a train on the tracks with the Box2D physics engine?

I think it would be fun to model a top view of a train following a track, traversing switches and so on, using a physics library like Box2D. What joints and motors would I need to make this work? I'm curious about how to implement the forces needed to make the car follow a spline track so it can bump into other train cars, pedestrians, ...

Is it possible to generate random numbers through physical process simulation?

Is it possible to generate random numbers through physical process simulation? If I simulate the physical roll of a dice (i.e. you picking it up, shaking it in your hand, releasing it onto the table and recording which side ends up "up"...) will that produce a "random" number or would I just have a complex simulation which really accomp...

How can the friction drag be calculated for a moving and spinning disk on a 2D surface?

Let's consider a disk with mass m and radius R on a surface where friction u also involved. When we give this disk a starting velocity v in a direction, the disk will go towards that direction and slow down and stop. In case the disk has a rotation (or spin with the rotational line perpendicular on the surface) w beside the speed then ...

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 works. It would be much easier to scale the system to multiple machines. However, for this t...

Computer simulation: How resource intensive?

Question: How is computer simulation, typically resource intensive? For instance, Simul8: a Discrete Event Simulation package - why is this computationally intensive, what factors (calculations) contribute to this? ...

Is there any programs that can simulate an unstable network connection?

We need to simulate an unstable network connection to try to debug some connectivity issues in our server/client application and I was wondering if there's any programs out there that can simulate those conditions such as on a faint wireless network. I'm not just referring to reducing bandwidth, but also reducing reliability, frequent o...