"A user-specified power distribution was supplied but it does not normalize to unity: "+str(avePow))
elifnotcustomPowerandnotnp.isclose(avePow,1.0):
@@ -1769,12 +1769,6 @@ class Model:
raiseRuntimeError(
"`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
ifme._uniformInletMassFlux():
me.nonuniformInletMdot=False
else:
me.nonuniformInletMdot=True
# Determine the start/end axial locations of the sections
z=0.0
@@ -1853,6 +1847,15 @@ class Model:
me._gapChecks()
def_inletMassflowsSpecified(me):
""" Returns True if any mass flow rates were specified for the inlet"""