Activate vs Modelica bus conversion? (for Include block)

andyer
andyer
Altair Employee
edited May 2021 in Community Q&A

Hi everyone!

 

Wondering if anyone might have an idea about converting Activate bus to Modelica bus,  this one might be a little tricky.

I want to use the very nice "IncludeDiagram" block in Activate, but I also want to use *both* Modelica and Signal input/outputs for the Include block; currently there is only either all Modelica (IncludeDiagramComponent) or all Signal (IncludeDiagram).  For the signal output I want to use a bus.  For the Modelica inputs/outputs I use electrical and thermal domain.

So, I wonder if I can use a a IncludeDiagramComponent and then convert an Activate bus to a Modelica bus (e.g. structureField to interface).  I've been playing around, I haven't figured out a way to do this yet, wondering if anyone has an example that works.

 

Thanks,

 

Andy

Answers

  • andyer
    andyer
    Altair Employee
    edited May 2021

    Well, I can answer my own question since I figured it out :)   I have a solution for this if I just directly create an Activate bus from Modelica inputs (rather than trying to create a Modelica bus). 

    It seems to work fine except that you cannot directly connect from a Modelica signal to an Activate bus input.  If I manually enter the FromModelica block to connect, it works fine.  

     

    Attached is an example showing a couple of different ways to do this in case this helps anyone :)


    Best -Andy

  • andyer
    andyer
    Altair Employee
    edited May 2021

    Here's really what I wanted in the end -  Using the Modelica Multiplex/DeMultiplex + Modelica interface blocks I can a single output into an Activate bus :)