🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Activate vs Modelica bus conversion? (for Include block)

User: "andyer"
Altair Employee
Updated by andyer

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

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "andyer"
    Altair Employee
    OP
    Updated by andyer

    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

    User: "andyer"
    Altair Employee
    OP
    Updated by andyer

    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 :)