TFox: Remember my excel thing from yesterday? Worked great to a point then I ran into a problem.
Posted by
loosilu (aka loosilu2)
Dec 9 '10, 07:35
|
To recap: I am running two consecutive earthquakes on (many tends of thousands of) buildings, road segments, bridges, etc. Each structure has a damage probability curve, which results in one of five incremental damage states (none to complete). I generate random numbers then assign damage states to each structure.
the challenge is, the damage has to be cumulative. I can't undo damage caused by the first.
I did what you suggested and removed all the "complete" damaged stuff after the first round. but that left all the partially damaged stuff. and god damn it, in cases where the second random number was low, the damage undid itself. I need to come up with some kind of logic string to fix this. I haven't described the algorithm to assign damage states, so you probably can't offer a solution based on what I've just said. This is turning out to be more of a rant than anything else.
|
Responses:
|