Dear Plant Simulation Experts,
Hello. I need your help.
I am about to calculate area for some goods.
I already know length & width for them and I designed Sources & Drains each obejcts for those.
after processing them, I want Plant Simulation to show those goods accumulated area automatically.
What is best solution for that ?
Would you plz post your good ideas for that?
Thanks in adavnce !
I don't understand what exactly you want to do.
Do you want to show the accumulated area (sum over each MUs "length*width") that has gone through the drain or while the MUs are in a buffer or...?
And how do you want to show this value - as a number, in a chart, as a colored area in the network which dynamically adjusts to the acuumulated area, or...?
Thank you for your kind comment.
Actually, I want to show accumulated area through some objects such as drain or store and so on in number first automatically.
For example, there are some 100 MUs (1 MU size : length 3m & width 2m).
Then, as you know, we need at least 600 m2 area.
I want to show this kind of accumulated area in Plant Simulation with Method or built-in some information and so on.
Do you have any good idea for that ?
Thanks in advance.
1. Place a Variable-object from the toolbox "Information Flow" next to the Drain and name it, e.g., v_cumArea (or v_cumArea1/2/3... if you have several drains)
2. Open the dialog of v_cumArea and check the box "Initial Value"; you can also change the datatype to Real, if you like, depending on whether all your MU's have an integer length and width (like you said: 3m*2m) or not.
3. Open the Drain-dialog, go to tab Controls, right-click into the field for Entrance and select "Create Control (F4)".
4. In the auto-created method OnEntrance, type this (if you use SimTalk 1.0, enter the code after "do" and before "end;"):
-- cumulate the total area v_cumArea := v_cumArea + (@.MUlength * @.MUwidth);
5. Run the model
If you use the datatype Real instead, you may want to use this code instead:
-- cumulate the total area v_cumArea := round(v_cumArea + @.MUlength * @.MUwidth, 4);
IF all your MU's have the same size anyway, so the cumulated area is just
then you could do this instead:
1. Place a Display from toolbox "User Interface" next to the Drain.
2. Drag-and-drop the Drain onto the Display
3. Open the Display-dialog, and add "3*2*" into the field "Path" at the beginning; write "**bleep**. Area [m2]: " into the field "Comment".
4. Run the model
I saw your answer in the other thread, so here's some more hints:
You can use a similar approach to show the area used by all MU's currently in a buffer (or ParallelProc):
-- cumulate the total area v_cumArea := round(v_cumArea - @.MUlength * @.MUwidth, 4);