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
  • Index
  • » Users
  • » MSJ
  • » Profile

Posts

Posts

Jul-30-19 03:48:24
Category: Programming

           Hello all,

            I will appreciate the help to resolve following error.
            I have wrote a code using 'for loop' but getting an error as " Basic type inconsistencies detected" while I perform the check.
            I can share some part of code which is as follows

            replaceable package Medium = ThermoFluidPro.Media.Technical.IsoButane constrainedby
                ThermoFluidPro.Media.Interfaces.ExtendedPartialTwoPhaseMedium
                "Medium in the component"
                  annotation(editButton=false,choicesAllMatching,
                Documentation(revisions="<html>
                       .....
                       .....
              for N in 1:N loop
                       ....
                        ....
                      state[N]=Medium.setState_pTX(Sat_P1[N],Tct[N]);
                       Ktp_ct[N]=Medium.thermalConductivity_dTX(state[N].d, state[N].T,state[N].X);
                         ....
                      Cpf_ct[N]=Medium.specificHeatCapacityCp_dTX(d=Rho_tp[N],T=Tct[N],X=Medium.fixedComposition,phase=0);
                     state1[N]=Medium.setState_pTX(Ps_in,Tsl[N]);
                      mug_sl[N]= Medium.dynamicViscosity(state1[N]);
            end for;

            Is there any problem in medium declaration or functions that are used for variable values?

            Thank you.

  • Index
  • » Users
  • » MSJ
  • » Profile
You are here: