def runMechanicalMass(plot = False): from MechanicalSystem import MechSystem from smo.dynamical_models.core.TransientSimulation import TransientSimulation cir = MechSystem() sim = TransientSimulation(cir) sim.initializeModel() sim.run(tFinal = 10., tPrint = 0.1) if (plot): plotResults(sim)
def runFluidSystem(plot = False): from FluidSystem import FluidSystem from smo.dynamical_models.core.TransientSimulation import TransientSimulation cir = FluidSystem() sim = TransientSimulation(cir) sim.initializeModel() sim.run(tFinal = 100., tPrint = 0.1) if (plot): plotResults(sim)
def runThermalMass(plot = False): from ThermalMassSystem import Tank from smo.dynamical_models.core.TransientSimulation import TransientSimulation cir = Tank() sim = TransientSimulation(cir) sim.initializeModel() print("Initialized") sim.run(tFinal = 10000., tPrint = 10.) if (plot): plotResults(sim)