Relative Content

Tag Archive for modelicaopenmodelica

How to define pressure drop in complexe model?

I’m working on a very complex thermohydraulic model with parallel flows from more than three sources. In my current setup, I’m using the orifice component to define and scale the pressure drop.

Is there a way to define Boundary_pT with a two-phase water?

I’m trying to study a two-phase flow problem where, at the source, I have a quantity x of the mass flow as vapor. From what I understand, the “fixed composition value” “X” can help define this, but in my code, if I apply 0.95 (95% of my flow as fluid), I get the following error:

Clarification of variableFilter in .OpenModelica.Scripting.simulate

I need a clarification about using variableFilter. I only need like 3 variables from my simulation. I want modelica to only output those variables as a csv file. I know the default is .* which outputs all the variables. I only need to select 3, so I was thinking of using variableFilter = x[.*] . I am a little confused about the syntax, but would it be variableFilter = x[.* line1.C, cableTemp.T, commercialCable.l]? Thank you for the help.