opm-simulators icon indicating copy to clipboard operation
opm-simulators copied to clipboard

Definition of User Defined Connection Variables

Open mbmfer opened this issue 1 year ago • 2 comments

Hi,

I'm trying to create an ACTIONX keyword to execute an action based on a connection gas flow rate summary vector: I've tried with CGFR, CGFRL CGFRF and CGPR. All runs abort stating that the keyword is not supported in ACTIONX. Is there an a;ternative summary vector that I may use?. I['ve also tried defining an UDQ based on CGFR with no success.

Thanks a lot,

Mariano Fernandez

mbmfer avatar Jan 05 '24 16:01 mbmfer

I'm trying to create an ACTIONX keyword to execute an action based on a connection gas flow rate summary vector: I've tried with CGFR, CGFRL, CGFRF, and CGPR. All runs abort stating that the keyword is not supported in ACTIONX.

Would you mind elaborating a little on how you're writing these conditions, please? Do you spell out "scalar" values of the form

CGFR 'PROD-01' 11 22 33 > 1234.56

or do you use some kind of wildcard/pattern matching in the condition? What diagnostic message do you get?

Is there an alternative summary vector that I may use?

WIthout knowing more about the problem you're facing, I can't really give any specific advice.

I've also tried defining an UDQ based on CGFR with no success.

Right. At the moment, the simulator does not support connection-level UDQs. We added segment-level UDQs in the 2023.10 release, but connection-level UDQ don't even exist in the current development sources.

bska avatar Jan 09 '24 13:01 bska

Thanks a lot for your reply.

  1. The syntax I'm using for the ACTIONX is:

    ACTIONX
    S10 3/
    CGFR 'AN1' 83 49 14 < 100000 /
    /
    COMPDAT
    'AN1' 83 49 14 14 5* 10.1 /
    /
    ENDACTIO
    
  2. The diagnostic message I get is:

    Simulation aborted as program threw an unexpected exception: Could not allocate the problem: Keyword category 'Connection' (e.g., summary keyword CGFR) is not supported in ACTIONX (on rank 0)
    

Kind regards,

Mariano Fernandez

mbmfer avatar Jan 09 '24 14:01 mbmfer