Commit 0f5910cb authored by Salko Jr, Robert's avatar Salko Jr, Robert
Browse files

updates for MR

parent e0939878
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -1769,19 +1769,6 @@ class Model:
                raise RuntimeError(
                    "`setInitial` was not called and the channels do not all have inlet mass/temp and outlet pressure BCs with uniform values, so cannot infer the correct initial conditions")

        # If the inlet mass flow rate distribution was non-uniform, the initial absolute mass flow rate
        # must be defined in CTF, mass flux set to zero, and inlet mass flow rate set to zero
        if me._inletMassflowsSpecified():
           if me._uniformInletMassFlux():
               me.nonuniformInletMdot = False
           else:
               me.nonuniformInletMdot = True
        else:
            # No inlet mass flow rates were defined for individual channels, so a uniform inlet mass flow
            # rate will have been specified for the model if possible and if not possible, the code will
            # have failed
            me.nonuniformInletMdot = False


        # Determine the start/end axial locations of the sections
        z = 0.0
+0 −2
Original line number Diff line number Diff line
@@ -51,8 +51,6 @@ t_MPa_Pa = 1e6
t_Pa_MPa = 1 / t_MPa_Pa
t_bar_Pa = t_bar_MPa * t_MPa_Pa
t_Pa_bar = 1 / t_bar_Pa
t_bar_MPa = t_bar_Pa*t_Pa_MPa
t_MPa_bar = 1/t_bar_MPa
t_K_F = 1.8
t_bar_psi = 14.5038