Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

90 vs 90.0002 degree angle

90 vs 90.0002 degree angle

Hello,

i hope im in the right section here.

The Problem i have with OpenModelica is, that if i put 90 deg as a parameter unit for til in the Class "GasConvection", it will convert it in radiant like shown below.

til (displayUnit = "deg") = 1.5708

When i open the Class "GasConvection" again, it shows 90.0002 and will not accept it, since only 0, 90 and 180 degrees are implemented.

What can i do to make OpenModelica accept 90 degree?

Regards,
Andre

Re: 90 vs 90.0002 degree angle

There is no GasConvection class in the standard library; what library are you using?

Re: 90 vs 90.0002 degree angle

It is located in Buildings.HeatTransfer.Windows.BaseClasses.GasConvection

Re: 90 vs 90.0002 degree angle

https://trac.openmodelica.org/OpenModelica/ticket/5856

The workaround is to input it using radians instead (Modelica.Constants.pi / 2 for example), until there is a new nightly build (where I output full precision scientific format). I'll let Adeel (the OMEdit maintainer) fix this properly when he is back.

Re: 90 vs 90.0002 degree angle

It worked! Thank you very much!

There are 0 guests and 0 other users also viewing this topic