Skip to main content
December 4, 2014
Question

How to set the fiber for pipe segment follow component size

  • December 4, 2014
  • 1 reply
  • 913 views

I have created a fiber with size & size_function as calculated with the p&id component, but the pipe segment end up with message "pipe has no container", I want to know what is wrong with the setting with the parameter driven pipe size? Please help thanks.

    1 reply

    12-Amethyst
    December 4, 2014

    Hi,

    In order set on the P&ID fiber the size as calculated from the P&ID component you need to define the following :

    derived parameter :

    size =dg_derive_indirect2(size_function,0) (see image)

    size_derived_parm.jpg

    add following parameters :

    on the fiber :

    • size_function with value :[dg_inherit_from_connected(size_function,reverse,P&ID,size)]
      * notice this function has direction (can be 'reverse' or 'forward' - define the direction in which to trace)
    • size - mark it to be calculated :

    size_p.jpg

    on the components level:

    • size/nsize - can hold specific value based on dataset setting

    on the component port:

    • size - mark it to be calculated
    • size_function should have the value <container!size> or <container!nsize> (usually for reducers one port has value of size and the other nsize, if the component is connected to pipes which are all of the same size, all ports will use single value of size)

    assuming fibers direction is from left to right - by setting on the components the value of size and nsize, connected fibers (pipes) size parameter will be derived from the compoent port on the left (start of the fiber).

    Regards ,

    Gaby