Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Masoud's profile - activity

2023-06-21 16:04:54 -0500 answered a question How do I run a simulation using the C++ API?

You need to make a system call to the openstudio CLI , You should create osw file based on model class and epw file. To

2023-06-21 16:04:54 -0500 received badge  Rapid Responder (source)
2023-04-27 09:53:06 -0500 commented question AHU Single Zone & AirWasher Template in Ruby or C#

Yes Aaron, an AHU that uses an evaporation system instead of a cooling coil

2023-04-27 09:51:45 -0500 commented question AHU Single Zone & AirWasher Template in Ruby or C#

Yes Aaron, An AHU that uses an evaporation system instead of a cooling coil

2023-04-26 17:03:31 -0500 edited question AHU Single Zone & AirWasher Template in Ruby or C#

AHU Single Zone & AirWasher Template in Ruby or C# Hello to all friends I need an example to simulate a single-zone

2023-04-25 14:52:29 -0500 commented question This sub surface was not in the same plane as its base surface.

I feel that the window is not set on the desired surface. Or maybe the coordinates of the window are different from the

2023-04-25 06:38:35 -0500 marked best answer Error while simulating the 4pipefan coil system in C#

Hi, I defined a thermal zone and defined a fan coil system for it as follows

this.BoilerHotWater = new OpenStudio.BoilerHotWater(Model);
this.BoilerHotWater.setName("BoilerHotwater(" + SystemDrySpaceCollection.Id.ToString() + ")");
this.BoilerHotWater.setNominalThermalEfficiency(0.8);
this.BoilerHotWater.setFuelType("NaturalGas");
this.BoilerHotWater.setSizingFactor(1);
this.BoilerHotWater.setMaximumPartLoadRatio(1.1);
this.BoilerHotWater.setWaterOutletUpperTemperatureLimit(100);

this.HeatingCoil = new OpenStudio.CoilHeatingWater(Model);
this.HeatingCoil.setName("HeatingCoil(" + SystemDrySpaceCollection.Id.ToString() + ")");
this.HeatingCoil.setPerformanceInputMethod("UFactorTimesAreaAndDesignWaterFlowRate");
this.HeatingCoil.setRatedRatioForAirAndWaterConvection(0.5);
this.HeatingCoil.setRatedInletWaterTemperature(82.2);
this.HeatingCoil.setRatedOutletWaterTemperature(71.1);
this.HeatingCoil.setRatedInletAirTemperature(16.6);
this.HeatingCoil.setRatedOutletAirTemperature(32.2);

this.HeatingPlantLoop = new OpenStudio.PlantLoop(Model);
this.HeatingPlantLoop.setName("HeatingPlantLoop(" + SystemDrySpaceCollection.Id.ToString() + ")");
this.HeatingPlantLoop.setFluidType("Water");                              this.HeatingPlantLoop.setMaximumLoopTemperature(85);
this.HeatingPlantLoop.setMinimumLoopTemperature(75);
this.HeatingPlantLoop.addDemandBranchForComponent(this.HeatingCoil);
this.HeatingPlantLoop.addSupplyBranchForComponent(this.BoilerHotWater);

this.HeatingPumpVariableSpeed = new OpenStudio.PumpVariableSpeed(Model);
this.HeatingPumpVariableSpeed.setName("HeatingPumpVariableSpeed(" + SystemDrySpaceCollection.Id.ToString() + ")");
this.HeatingPumpVariableSpeed.addToNode(this.HeatingPlantLoop.supplyInletNode());

this.HeatingSetpointManagerScheduled = new OpenStudio.SetpointManagerScheduled(Model, OpenStudioCollection.Instance.Design.Schedule.GetScheduleById(SystemDrySpaceCollection.Design.HeatingSetPointManegerScheduleIndex));

this.HeatingSetpointManagerScheduled.setName("SetpointManagerScheduled(" + SystemDrySpaceCollection.Id.ToString() + ")");
this.HeatingSetpointManagerScheduled.addToNode(this.HeatingPlantLoop.supplyOutletNode());
this.HeatingSetpointManagerScheduled.setControlVariable("Temperature");

this.ChillerAbsorption = new OpenStudio.ChillerAbsorption(Model);
this.ChillerAbsorption.setName("Chiller(" + SystemDrySpaceCollection.Id.ToString() + ")");
this.ChillerAbsorption.setSizingFactor(1);
this.ChillerAbsorption.setMaximumPartLoadRatio(1.1);
this.ChillerAbsorption.setChilledWaterOutletTemperatureLowerLimit(7);

this.CoolingTowerSingleSpeed = new OpenStudio.CoolingTowerSingleSpeed(Model);
this.CoolingTowerSingleSpeed.setName("CoolingTowerSingleSpeed(" + SystemDrySpaceCollection.Id.ToString() + ")");

this.CondenserPlantLoop = new OpenStudio.PlantLoop(Model);
this.CondenserPlantLoop.setName("CondenserPlantLoop(" + SystemDrySpaceCollection.Id.ToString() + ")");
this.CondenserPlantLoop.setFluidType("Water");
this.CondenserPlantLoop.setMaximumLoopTemperature(40);
this.CondenserPlantLoop.setMinimumLoopTemperature(30);
this.CondenserPlantLoop.addDemandBranchForComponent(this.ChillerAbsorption);
this.CondenserPlantLoop.addSupplyBranchForComponent(this.CoolingTowerSingleSpeed);

this.CondenserPumpVariableSpeed = new OpenStudio.PumpVariableSpeed(Model);
this.CondenserPumpVariableSpeed.setName("CondenserPumpVariableSpeed(" + SystemDrySpaceCollection.Id.ToString() + ")");
this.CondenserPumpVariableSpeed.addToNode(this.CondenserPlantLoop.supplyInletNode());

this.CoolingCoil = new OpenStudio.CoilCoolingWater(Model);
this.CoolingCoil.setName("CoolingCoil(" + SystemDrySpaceCollection.Id.ToString() + ")");

this.CoolingPlantLoop = new OpenStudio.PlantLoop(Model);
this.CoolingPlantLoop.setName("CoolingPlantLoop(" + SystemDrySpaceCollection.Id.ToString() + ")");
this.CoolingPlantLoop.setFluidType("Water");
this.CoolingPlantLoop.setMaximumLoopTemperature(6.6);
this.CoolingPlantLoop.setMinimumLoopTemperature(3.8);
this.CoolingPlantLoop.addDemandBranchForComponent(this.CoolingCoil);
this.CoolingPlantLoop.addSupplyBranchForComponent(this.ChillerAbsorption);

this.CoolingPumpVariableSpeed = new OpenStudio.PumpVariableSpeed(Model);
this.CoolingPumpVariableSpeed.setName("CoolingPumpVariableSpeed(" + SystemDrySpaceCollection.Id.ToString() + ")");
this.CoolingPumpVariableSpeed.addToNode(this.CoolingPlantLoop.supplyInletNode());

this.CoolingSetpointManagerScheduled = new OpenStudio.SetpointManagerScheduled(Model, OpenStudioCollection.Instance.Design.Schedule.GetScheduleById(SystemDrySpaceCollection.Design.CoolingSetPointManegerScheduleIndex));
this.CoolingSetpointManagerScheduled.setName("SetpointManagerScheduled(" + SystemDrySpaceCollection.Id.ToString() + ")");
this.CoolingSetpointManagerScheduled.addToNode(this.HeatingPlantLoop.supplyOutletNode());
this.CoolingSetpointManagerScheduled.setControlVariable("Temperature");

this.FanConstantVolume = new OpenStudio.FanConstantVolume(Model);
this.FanConstantVolume.setName("SupplyFan(" + SystemDrySpaceCollection.Id.ToString() + ")");

this.ZoneHVACFourPipeFanCoil = new OpenStudio.ZoneHVACFourPipeFanCoil(Model,
                                    OpenStudioCollection.Instance.Design.Schedule.GetScheduleById(SystemDrySpaceCollection.Design.SystemAvailabilityScheduleIndex),
 this.FanConstantVolume,
this.CoolingCoil,
this.HeatingCoil);
this.ZoneHVACFourPipeFanCoil.setName("FanCoil(" + SystemDrySpaceCollection.Id.ToString() + ")");

for (int d = 0; d < DrySpaceCollection.Collection.Count; d++)
 {
         if (DrySpaceCollection.Collection[d].Design.SystemNumber == i)
         {                                        
this.ZoneHVACFourPipeFanCoil.addToThermalZone(OpenStudioCollection.Instance.Design.DrySpace.GetDrySpaceById(DrySpaceCollection.Id));
         }
}

But I encountered this error during simulation

 ** Severe  ** DualSetPointWithDeadBand: Effective heating set-point higher than effective cooling set-point - increase deadband if using unmixed air model
   **   ~~~   ** occurs in Zone=THERMALZONE FOR DRYSPACE(1) During Warmup & Sizing, Environment=SUMMERDESIGNDAY, at Simulation time=07/21 00:00 - 00:10
   **   ~~~   ** LoadToHeatingSetPoint=-3522.862, LoadToCoolingSetPoint=-5279.425
   **   ~~~   ** Zone TempDepZnLd=395.23
   **   ~~~   ** Zone TempIndZnLd=14720.95
   **   ~~~   ** Zone Heating ...
(more)
2023-04-25 06:38:07 -0500 received badge  Rapid Responder (source)
2023-04-25 06:38:07 -0500 answered a question Error while simulating the 4pipefan coil system in C#

This error occurred because the winter design temperature should be lower(24C) than the summer design temperature.(28C)

2023-04-24 10:49:43 -0500 asked a question Error while simulating the 4pipefan coil system in C#

Error while simulating the 4pipefan coil system in C# Hi, I defined a thermal zone and defined a fan coil system for it

2023-04-24 05:49:34 -0500 edited question ZoneHVAC:Baseboard:RadiantConvective:Water and Missing required property 'outlet_node_name' error in C#

ZoneHVAC:Baseboard:RadiantConvective:Water and Missing required property 'outlet_node_name' error in C# Hello to all fri

2023-04-24 05:30:30 -0500 commented answer ZoneHVAC:Baseboard:RadiantConvective:Water and Missing required property 'outlet_node_name' error in C#

thank you so much julien

2023-04-24 05:29:23 -0500 commented answer ZoneHVAC:Baseboard:RadiantConvective:Water and Missing required property 'outlet_node_name' error in C#

thank ypu so much julien

2023-04-23 14:40:11 -0500 edited question AHU Single Zone & AirWasher Template in Ruby or C#

AHU Single Zone & AirWasher Ruby Template Hello to all friends I need an example to simulate a single-zone air handl

2023-04-23 12:46:59 -0500 edited question AHU Single Zone & AirWasher Template in Ruby or C#

AHU Single Zone & AirWasher Ruby Template Hello to all friends I need an example to simulate a single-zone air handl

2023-04-23 12:46:57 -0500 edited question AHU Single Zone & AirWasher Template in Ruby or C#

AHU Single Zone & AirWasher Ruby Template Hello to all friends I need an example to simulate a single-zone air handl

2023-04-23 12:46:06 -0500 asked a question AHU Single Zone & AirWasher Template in Ruby or C#

AHU Single Zone & AirWasher Ruby Template Hello to all friends I need an example to simulate a single-zone air handl

2023-04-20 00:37:08 -0500 edited question ZoneHVAC:Baseboard:RadiantConvective:Water and Missing required property 'outlet_node_name' error in C#

ZoneHVAC:Baseboard:RadiantConvective:Water and Missing required property 'outlet_node_name' error in C# Hello to all fri

2023-04-19 18:28:28 -0500 received badge  Rapid Responder (source)
2023-04-19 18:28:28 -0500 answered a question OpenStudio simulation failed to run, with exit code 1. Unable to locate the error.

I think you entered the path of osm and osw incorrectly or you entered the openstudio cli startup command incorrectly, y

2023-04-18 05:57:59 -0500 commented answer ZoneHVAC:Baseboard:RadiantConvective:Water and Missing required property 'outlet_node_name' error in C#

in the second example written for guidance, the temperature of hot water and its value is considered equal to 24. This v

2023-04-17 07:35:37 -0500 received badge  Teacher (source)
2023-04-17 07:13:41 -0500 edited question Start Simulation For ThermalZone With IdealLoadsAirSystem In C#

Start Simulation For ThermalZone With IdealLoadsAirSystem In C# hello to all friend, I have created a simple example con

2023-04-16 09:27:28 -0500 commented answer ZoneHVAC:Baseboard:RadiantConvective:Water and Missing required property 'outlet_node_name' error in C#

Severe * <root>[PlantEquipmentOperationSchemes][HeatingPlantLoop(2) Operation Schemes] - Missing required propert

2023-04-16 09:27:21 -0500 commented answer ZoneHVAC:Baseboard:RadiantConvective:Water and Missing required property 'outlet_node_name' error in C#

thanks a lot Can you help me with these errors?

2023-04-16 09:20:29 -0500 marked best answer ZoneHVAC:Baseboard:RadiantConvective:Water and Missing required property 'outlet_node_name' error in C#

Hello to all friends I am using C# language for simulation. I understood using the ZoneHVACBaseboardRadiantConvectiveWater class to simulate the radiator system. Also, in order to complete the simulation, by reading the tutorial, I realized that I need to define a Node class:

this.HeatingNode = new OpenStudio.Node(Model);
this.HeatingNode.setName("HeatingNode");

I also have PlanLoop class:

this.HeatingPlantLoop = new OpenStudio.PlantLoop(Model);
this.HeatingPlantLoop.setName("HeatingPlantLoop");
this.HeatingPlantLoop.setFluidType("Water");                               
this.HeatingPlantLoop.setMaximumLoopTemperature(85);
this.HeatingPlantLoop.setMinimumLoopTemperature(75);
this.HeatingPlantLoop.addSupplyBranchForComponent(this.HeatingNode);

and a BoilerHotWater class:

this.BoilerHotWater=new OpenStudio.BoilerHotWater(Model);
this.BoilerHotWater.setName("BoilerHotwater");
this.BoilerHotWater.setNominalThermalEfficiency(0.8);
this.BoilerHotWater.setFuelType("NaturalGas");
this.BoilerHotWater.setSizingFactor(1);
this.BoilerHotWater.setMaximumPartLoadRatio(1.1);
this.BoilerHotWater.setWaterOutletUpperTemperatureLimit(100);
this.BoilerHotWater.addToNode(this.HeatingNode);

But when I start calculations, I encounter these errors:

** Severe  ** <root>[PlantEquipmentOperationSchemes][HeatingPlantLoop(2) Operation Schemes] - Missing required property 'control_scheme_1_name'.
** Severe  ** <root>[PlantEquipmentOperationSchemes][HeatingPlantLoop(2) Operation Schemes] - Missing required property 'control_scheme_1_object_type'.
** Severe  ** <root>[PlantEquipmentOperationSchemes][HeatingPlantLoop(2) Operation Schemes] - Missing required property 'control_scheme_1_schedule_name'.
** Severe  ** <root>[ZoneHVAC:Baseboard:RadiantConvective:Water][Zone HVAC Baseboard Radiant Convective Water 1] - Missing required property 'inlet_node_name'.
** Severe  ** <root>[ZoneHVAC:Baseboard:RadiantConvective:Water][Zone HVAC Baseboard Radiant Convective Water 1] - Missing required property 'outlet_node_name'.

Thank you for helping me. As it is clear in the codes, I assigned the nodes to the plantloop and boilerhotwater classes, but it still gives the node error.

2023-04-15 08:12:11 -0500 edited question ZoneHVAC:Baseboard:RadiantConvective:Water and Missing required property 'outlet_node_name' error in C#

ZoneHVAC:Baseboard:RadiantConvective:Water and Missing required property 'outlet_node_name' error in C# Hello to all fri

2023-04-15 07:58:32 -0500 asked a question ZoneHVAC:Baseboard:RadiantConvective:Water and Missing required property 'outlet_node_name' error in C#

ZoneHVAC:Baseboard:RadiantConvective:Water and Missing required property 'outlet_node_name' error in C# Hello to all fri

2023-04-06 12:30:55 -0500 marked best answer Creat Door With Glass

Hello friends I had a question about defining the door along with the glass in the openstudio software in C# language. Which class does this?

2023-04-06 12:29:17 -0500 marked best answer Start Simulation For ThermalZone With IdealLoadsAirSystem In C#

hello to all friend, I have created a simple example consisting of a thermal zone with door and window. Also, I have considered an ideal system for it, I have created the osm file, now I want to get the energy simulation as well as the calculation of the thermal and cooling loads of the system for this thermal zone, which class should I use to Start perform the simulation ?

I wrote the following code to analyze the model that I have attached the osm file But at the time of execution, it gets an error from modelmeasure For modelmeasure, it is not possible to create a manufacturer, thank you for your guidance

OpenStudio.WorkflowJSON workflowJSON = new OpenStudio.WorkflowJSON();
OpenStudio.Workspace workspace = new OpenStudio.Workspace();
OpenStudio.OSArgumentVector arguments = new OpenStudio.OSArgumentVector();
OpenStudio.OSArgumentMap argumentmap = new OpenStudio.OSArgumentMap();
OpenStudio.OSRunner oSRunner = new OpenStudio.OSRunner(workflowJSON);
oSRunner.setLastOpenStudioModel(this.Model);
oSRunner.validateUserArguments(arguments, argumentmap);
oSRunner.setLastEnergyPlusWorkspace(workspace);                     
oSRunner.registerFinalCondition("Generated report");
oSRunner.registerInitialCondition("");

OpenStudio.ModelMeasure modelMeasure = null;
modelMeasure.run(this.Model, oSRunner, argumentmap);