Hi,
It's the first time I'm working with the flow library. My question relates to configuring a flow of two liquids that come from a single source, but may be of two kinds (different densities). I would like to have one table, describing the properties of the entities, and another table, having one field as a model type, and another one as the weight limit in the flow sequence.
So, basically
Table1:
--Entity--- ---Density (kg/cubic meter)--- ... some other props
TypeA 5000
TypeB 10000
Table2:
RowNumber (not a field, just for sequence) --Entity--- ---Amount (cubic meters)---
1 TypeA 10000
2 TypeA 20000
3 TypeB 30000
4 TypeB 25000
5 TypeA 10000
6 TypeB 12000
7 TypeB 10000
I need to make pauses between the sequential flows of different (or the same) liquids, in the order presented in 2nd table, but I believe, I'll figure out how to achieve this.
The question is - how do I configure the source? I need to reference both tables, since I need to limit certain values by weight in the source, but have input in volume.
I also have some other entity properties that I would need to access further in the simulation. They are in Table1, which is the descriptive table, not the one used for initializing the flow source.
What I tried to do - is
1. Specified the entity type as a referenced property from the Initialization table (Table2)
2. I created the RunInitialized trigger for the flow source to SetRow to number 1 (I will further increment the rownumber - if there is a better solution, please advise)
3. I tried to limit MaximumVolume by accessing another table - and here I'm stuck. I need to lookup Table1, but not by id (integer), but by the entity type. So, the lookup table seems not to fit here.
Please advise of this design, how do I lookup in a Table1, when I have an entity of known type.