Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Definition of User Defined Connection Variables #5095

Open
mbmfer opened this issue Jan 5, 2024 · 2 comments
Open

Definition of User Defined Connection Variables #5095

mbmfer opened this issue Jan 5, 2024 · 2 comments

Comments

@mbmfer
Copy link

mbmfer commented Jan 5, 2024

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

@bska
Copy link
Member

bska commented Jan 9, 2024

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.

@mbmfer
Copy link
Author

mbmfer commented Jan 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants