- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Problem of ThickEdgedOrifice model...
Problem of ThickEdgedOrifice model definition
Problem of ThickEdgedOrifice model definition
Hello,
I'm a beginner with OpenModelica so I apologize if my question is trivial.
I would like to define the ThickEdgedOrifice with a circular geometry (diameter=0.002, venaDiameter=0.001, venaLength=0.0016) but I don't succeed...
if i try:
Modelica.Fluid.Fittings.Orifices.ThickEdgedOrifice Orifice1(geometry = circular(diameter = 0.002, venaDiameter = 0.001, venaLength = 0.0016)) annotation(Placement(visible = true, transformation(origin = {-22, -2}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Error=> Class circular not found in scope orifice (looking for a function or record).
I think I have to call the function "circular", but I don't know how to do
Thanks in advance for your help !
Re: Problem of ThickEdgedOrifice model definition
Hi GN,
You must specify the full path to the circular class, i.e. your code should be
Code:
Modelica.Fluid.Fittings.Orifices.ThickEdgedOrifice Orifice1(geometry =Modelica.Fluid.Fittings.BaseClasses.Orifices.ThickEdgedOrifice.Choices.circular(diameter = 0.002, venaDiameter = 0.001, venaLength = 0.0016)) annotation(Placement(visible = true, transformation(origin = {-22, -2}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Best regards,
Rene Just Nielsen
- justnielsen
- 40 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Problem of ThickEdgedOrifice model...