def __init__(self, system_parameters, geojson_load_id): super().__init__(system_parameters, geojson_load_id) self.id = 'cooInd_' + simple_uuid() # _model_filename is the name of the file we generate, and thus the actual # model to be referenced when instantiating in the District model # TODO: refactor these property names (model_name and model_filename) because # it's confusing self._model_filename = f'CoolingIndirect_{self._geojson_load_id}'
def __init__(self, system_parameters, geojson_load): super().__init__(system_parameters, geojson_load) self.id = 'TimeSerMFTLoa_' + simple_uuid() # Note that the order of the required MO files is important as it will be the order that # the "package.order" will be in. self.required_mo_files.append( os.path.join(self.template_dir, 'getPeakMassFlowRate.mo'))
def __init__(self, system_parameters): super().__init__(system_parameters) self.id = 'cooPla_' + simple_uuid() self.required_mo_files.append( os.path.join(self.template_dir, 'CoolingTowerWithBypass.mo')) self.required_mo_files.append( os.path.join(self.template_dir, 'CoolingTowerParallel.mo')) self.required_mo_files.append( os.path.join(self.template_dir, 'ChilledWaterPumpSpeed.mo')) self.required_mo_files.append( os.path.join(self.template_dir, 'ChillerStage.mo'))
def __init__(self, system_parameters): super().__init__(system_parameters) self.id = 'chpPla_' + simple_uuid() self.chp_installed = self.system_parameters.get_param( "$.district_system.default.central_heating_plant_parameters.chp_installed" ) if not self.chp_installed: self.required_mo_files.append( Path(self.template_dir) / 'CentralHeatingPlant.mo') self.id = 'heaPla' + simple_uuid() self.required_mo_files.append( Path(self.template_dir) / 'Boiler_TParallel.mo') self.required_mo_files.append( Path(self.template_dir) / 'BoilerStage.mo') self.required_mo_files.append( Path(self.template_dir) / 'HeatingWaterPumpSpeed.mo') self.required_mo_files.append( Path(self.template_dir) / 'PartialPlantParallel.mo') self.required_mo_files.append( Path(self.template_dir) / 'PartialPlantParallelInterface.mo') self.required_mo_files.append( Path(self.template_dir) / 'ValveParameters.mo')
def __init__(self, model_a, model_b): model_a, model_b = self._sort_models(model_a, model_b) self._model_a = model_a self._model_b = model_b self._template_base_name = f'{model_a.model_name}_{model_b.model_name}' self._template_dir = Path( __file__).parent / "templates" / self._template_base_name if not Path(self._template_dir).exists(): raise Exception( f'Invalid coupling. Missing {self._template_dir} directory.') self._template_env = Environment( loader=FileSystemLoader(searchpath=self._template_dir), undefined=StrictUndefined) self._template_env.filters.update(ALL_CUSTOM_FILTERS) self._id = simple_uuid()
def __init__(self, system_parameters): super().__init__(system_parameters, None) self.id = 'etsHotWatStub_' + simple_uuid()
def __init__(self, system_parameters, geojson_load): super().__init__(system_parameters, geojson_load) self.id = 'TeaserLoad_' + simple_uuid()
def __init__(self, system_parameters): super().__init__(system_parameters) self.id = 'disNet_' + simple_uuid()