""" Set global modeling options for solid conductors in the model.
@@ -1333,6 +1344,13 @@ class Model:
raiseRuntimeError(
"setInitialConditions 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
forsecIDinsorted(me.sections.keys()):
@@ -1410,6 +1428,23 @@ class Model:
me._gapChecks()
def_uniformInletMassFlux(me):
""" Returns True if the inlet mass flux in all Section 1 channels are the same and False otherwise.
If no inlet mdot values are applied, this returns False. If only some of the channels have inlet mass
flow rate type BCs, this returns False, even if they all match."""