Head (before)

I want to pull materials in decimal numbers, help — Simul8 Community Forum

Head (after)

Ask the Simul8 Community

Content (before)

I want to pull materials in decimal numbers, help

igormannigormann
Created at
in Community support
Hi everyone,

In my model, i m using a material which consists of four different sub-materials.

For one unit, I use 0,030kg of the first, 0,116kg of the second and third and 0,026kg of the fourth.

As you see, I want to pull material in decimal numbers into my system. Is there any way to do it?

Thanks


Comments

  • Was this answer helpful?


    0
    Depends on how you are storing the material. You would multiply by 1000 then you have integer values you would collect from a storage bin. Do you need this material to start the operation, or is this just to keep track of how much is being used; e.g., if the material is not available, does the activity stop?



    There are other ways you can do this, but would have to have a better understanding of the problem you are trying to solve.
  • BetweenComments (1)

  • Was this answer helpful?


    0
    <QUOTE author="jholtman">
    jholtman wrote:
    Depends on how you are storing the material. You would multiply by 1000 then you have integer values you would collect from a storage bin.



    Yeah, I did like this. But i want to do it with decimals. However I'd like to learn other ways you mention too.



    Yes, I need this combined material to start the operation... For a bettew view, I put that part of the model for you.



    <IMG src="http://img248.imageshack.us/img248/3769/forumkz.jpg">[img]<URL url="http://img248.imageshack.us/img248/3769/forumkz.jpg">http://img248.imageshack.us/img248/3769/forumkz.jpg</URL>[/img]</IMG>;
  • BetweenComments (2)

  • Was this answer helpful?


    0
    If on your model each of the 4 input paths on the left are always creating the same quantity of an item to be processed in MIX1, then you can have accumulate the product coming into ADSTIF, for example, and when you have enough of the product, then create a "unit" of that size that would go into the buffer feeding MIX1; therefore all the buffers feeding MIX1 have the approprietly sized items in there that MIX1 can collect.



    You can probably do some stuff with the Before Selecting logic, but this would be messier and might impact performance depending on how often it might run.



    So if MIX1/MIX2 always need the same sized "unit", then put an extra layer in the model to accumulate and output when the unit is collected.
  • BetweenComments (3)

  • Was this answer helpful?


    0
    This is messing everything up. Developers should make a decimal option.
  • BetweenComments (4)

  • Was this answer helpful?


    0
    have you looked at tanks and pipes?
  • BetweenComments (5)

  • Was this answer helpful?


    0

    I couldn't find a way to do this either. I can't seem to find how to do anything in decimals. I have created something similar in Witness, but I don't think it's possible in Simul8. Yet it does say that tanks are ideal for liquids and gases, but I can't see how this is so, especially if you are calculating concentrations etc to dilute things.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Attach file
Attach image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file

Content (after)