Category Archives: Simulation

A Simple Discrete-Event Simulation: Part 4

Here is code that actually runs. It creates a single entity, then updates it in a loop until the ending time is exceeded. The next steps will be to see how it works with multiple entities of the same kind … Continue reading

Posted in Simulation | Tagged , | Leave a comment

A Simple Discrete-Event Simulation: Part 3

Here is an entity object that knows how to be created and activated from external calls. It updates itself and puts itself back into the future events queue is appropriate. This is in keeping with my original concept of how … Continue reading

Posted in Simulation | Tagged , | Leave a comment

A Simple Discrete-Event Simulation: Part 2

Today I’ve added the ability to retrieve the first item from the future events queue, which is the next item to process and that with the lowest activation time. In this case I just update the item’s time when it’s … Continue reading

Posted in Simulation | Tagged , | Leave a comment

Checking My Steam Table Functions

While I was working out a steam table page yesterday I found it necessary to graph the functions out as a means of verifying them.  Here’s the first graph I created in JavaScript.  It shows not only the curve of … Continue reading

Posted in Simulation | Tagged , , , , | Leave a comment

Steam Tables (and Thermodynamic Properties of Fluids In General)

A little while ago I was ruminating on the subject of needing to know the thermodynamic properties of materials before you could do simulations of those materials. I therefore figured I’d spend the week dusting off some old functions I’d … Continue reading

Posted in Simulation | Tagged , , , , | Leave a comment

Simulation: Continuing Yesterday’s Analysis

Yesterday I analyzed some of the considerations involved in modeling a section of a petrochemical refining process, namely that of hydrodesulfurization. That is adding hydrogen to hydrocarbons containing sulfur in the presence of a catalyst at an elevated temperature so … Continue reading

Posted in Simulation | Tagged , , , , , , | Leave a comment

Simulations: What Gets Modeled And What Doesn’t

When I’m not flogging away at code these days I’m thinking about continuous simulations and the details that get modeled within them. Specifically I’ve been reading about and thinking about operations in petrochemical refineries, and even more specifically certain classes … Continue reading

Posted in Simulation | Tagged , , , , , , , | Leave a comment

The Ultimate Limits of Simulation

Last time I discussed the factors that drive the scale of any simulation or business system. One a less practical, more theoretical, more fun note, we might ask just how far a digital simulation can go? What kind of scope … Continue reading

Posted in Simulation | Tagged , , | Leave a comment

Discrete-Event Simulation: Looking Under The Hood

Yesterday I mentioned a few constructs that a discrete-event simulation system would have to have. They are: A time-ordered future events queue where events are created and entered into the queue, and then processed one by one in time order. … Continue reading

Posted in Simulation | Tagged , , | Leave a comment

How Timing Works: The Internal Architecture of a Discrete-Event Simulation

On Monday I described the different ways time and events are handled in continuous and discrete-event simulations. Today I want to go into a little more detail about how those things work in a discrete-event simulation because the internal architecture … Continue reading

Posted in Simulation | Tagged , | Leave a comment