The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
11 views

Fluid simulation in Matlab

I have a (vertical) cylinder in Matlab, built using the patch command. For every 'level' of the cylinder I have a different radius, so that the 3D plot displays something like this: Also, I used a ...
1
vote
0answers
50 views

Simulation of a point mass in a box (3D space) [migrated]

I would like to simulate a point mass within a closed box. There is no friction and the point mass obeys the impact law. So there are only elastic collisions with the walls of the box. The output of ...
0
votes
2answers
121 views

Microeconomical simulation: coordination/planning between self-interested trading agents

In a typical perfect-information strategy game like Chess, an agent can calculate its best move by searching the state tree for the best possible move, while assuming that the opponent will also make ...
0
votes
0answers
45 views

Building simulation architectures : Which one to choose?

I am writing a simulation which unites discrete event and continuous system simulation. For example, you can use State Charts, System Dynamics and Queues side by side. Theese will then reduced to ...
0
votes
2answers
72 views

Looking to simulate the rolling of a ball around a roulette wheel, while the resulting number is already known

I want to make a roulette board with a ball spinning and landing on a certain field. The catch is that the field the ball will land on, is known beforehand. I want the animation to look somewhat ...
0
votes
1answer
97 views

How should I handle measurement logging in my Discrete Event Simulation engine?

I'm attempting to build a Discrete Event Simulation library by following this tutorial and fleshing it out. How should I handle logging metrics in my Discrete Event Simulation engine? If you don't ...
0
votes
1answer
85 views

How to simulate an ATM terminal in a POS

Recently I started same projects to improve my programming skills, so I tried to develop a point of sale software. I started to bay the required hardware (ticket printer, Barcode Scanner….) to make my ...
2
votes
6answers
335 views

Design pattern for method to accept one of several static items in C#?

I want to illustrated my question by way of a (hopefully) representative example. Lets say I have a situation where I am developing a class library in C# to be used in some simulations. I want to ...
1
vote
1answer
56 views

Determinining “value” in multi-agent microeconomical simulation

I am trying to determine an objective way for a self-interested agent to calculate the optimal buying/selling price for goods in a multi-agent simulation not dissimilar to Sugarscape ...
2
votes
3answers
200 views

How to simulate and estimate long running application [closed]

We are building a large, modular application that is intended to run across multiple processors. I need to develop a method to estimate how long it will take to run all of the functions. I already ...
2
votes
1answer
208 views

Shuffling algorithm with no “self-mapping”?

To randomly shuffle an array, with no bias towards any particular permutation, there is the Knuth Fischer-Yeats algorithm. In Python: #!/usr/bin/env python import sys from random import randrange ...
20
votes
5answers
478 views

Algorithm to Find the Aggregate Mass of “Granola Bar”-Like Structures?

I'm a planetary science researcher and one project I'm working on is N-body simulations of Saturn's rings. The goal of this particular study is to watch as particles clump together under their own ...
7
votes
2answers
460 views

How would I combine 'Command' and 'Composite' to simulate a time delay?

As a learning exercise (I am not in school - just an old guy trying to learn something new), I am trying to write a logic gate simulation that incorporates propagation delay. The user should also be ...
1
vote
2answers
80 views

Evaluating mean and std as simulations are added

I have simulations that evaluate a certain value X. I run the simulations several times and save the value of X in a vector V. When all the runs have finished I evaluate the mean and standard ...
8
votes
1answer
376 views

Is there any better approach to shortest path finding within a (vehicular) traffic network?

Dear fellow programmers, We're developing software which simulates vehicular traffic. Part of the process called "assignment" is concerned with assigning vehicles to their routes and has to use some ...
4
votes
1answer
147 views

How to implement a simulation pattern for a repository?

Let's say I have a repository of functions. These functions work with business objects within a database, CMS or other third party API. For example, my repository interacts with virtual files and ...
2
votes
2answers
336 views

Efficient ways to model cars moving along a road

This has never come up, so I've never thought how a data or programming model should work that simulates (a) bird's eye view of cars moving and some rudimentary physics, (b) how the cars would follow ...
6
votes
2answers
1k views

Best approach to selecting programming languages and 3D graphics API for simulating physics experiments

I am starting a research project and need to nail down a programming language and 3D graphics API where I will be creating an environment in the field of molecular cell biology where I will be ...
2
votes
1answer
443 views

Is there a canonical book on simulation programming? [closed]

I've taken an interest in writing life-based simulations in C. I've been trying to find resources online and books, but haven't found anything. Is there a book out there that's the de-facto standard ...
1
vote
3answers
876 views

Simulating double-click, how long should I wait between clicks?

I'm simulating a double click programmatically and I want to have a slight pause between both clicks in order to better simulate a real user. I know the interval should be less than ...
4
votes
3answers
795 views

Unusual languages for numerical analysis [closed]

This question is inspired by these questions (here and here). I do mostly numerical work, and I usually use C++, Fortran, and occasionally Numpy. I'm trying to broaden my horizons, and I'm looking ...
7
votes
2answers
5k views

elevator algorithm and implementation

I wanted to know how (real) elevators work. But, so far, I could not find much material about the algorithms they use, nor software (if any) for simulation. Could anybody give me references for that?
4
votes
4answers
194 views

Parameterize Agent Based Simulation (OOP-Question)

I'd like to hear my fellow programmer's thoughts on the issue of parametrizing agent based simulations: Consider: Simulation core, including geometry, collision tests, some rules Different agents ...
2
votes
3answers
190 views

Simulating simultaneous entities

Consider the need to simulate a set of entitities in an accurate way. All entities exist in an artificial timeline. Within 'steps' of this timeline, all entities can do certain operations. It is ...