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

rtsuchiya's profile - activity

2022-04-19 18:47:21 -0500 commented answer HAMT: how does it split surfaces into cells?

Thank you for the information.

2022-04-19 18:46:53 -0500 marked best answer HAMT: how does it split surfaces into cells?

Hello.

I am now trying to apply HAMT in my project. In that, there is a thing I cannot understand.

When checking Engineering Reference, it says

"“Surfaces” are made of a number of layers of potentially any combination of materials. Each surface is split into its constituent materials and is then split up further into cells through its depth."

Here, how does the program split a surface into cells?

Automatically, or are there any ways to define coordinates of cells by users?

In addition, my target has an earth floor.

In this case, what kind of the outside boundary of RH is used if I apply HAMT to the floor; always 0 ? (I understand this method is not suitable for vertical water movement underground which is driven by gravity. But I want to know this.)

I would appreciate for any kinds of information from you...

2021-02-19 01:14:14 -0500 asked a question What is the difference between Array1D & Array1S in the source code of EP?

What is the difference between Array1D & Array1S in the source code of EP? Dear all, I am now learning the source c

2021-01-13 07:44:23 -0500 marked best answer Surface inside conduction with HAMT

I am now trying to apply HAMT in my simulation and want to compare simulated value with the observed value. I have the observation data of surface heat flux of floor.

However, I cannot find the output variable of conduction in HAMT output group.

I tried using Surface Inside Face Conduction Heat Transfer Rate per Area, but it outputted just 0 for any timesteps.

Thus, I think I have to find the output variables about conduction for HAMT algorithm.

Is it impossible in the current EP?

If you have any tips, I'd like to know.

Best regards,

2019-11-15 14:52:36 -0500 commented answer Changing Fuel Type in Coil:Heating:Fuel in OS

Thank you very much for your advice. I will try it.

2019-11-15 14:51:37 -0500 marked best answer Changing Fuel Type in Coil:Heating:Fuel in OS

Dear all, now I am trying to modify the fuel type in Coil:Heating:Fuel with OpenStudio.

In my understanding, Coil:Heating:Gas was modified to Coil:Heating:Fuel in the current version of EP and OS have not prepare the input for fuel type.

So, I would like to modify the fuel type with OpenStudio measure (is this OK?).

Though I wrote the measure as below, it didn't work.

I think I don't understand so many things. So, any tips from you will be helpful.

# see the URL below for information on how to write OpenStudio measures
# http://nrel.github.io/OpenStudio-user-documentation/reference/measure_writing_guide/

# start the measure
class ChangeFuelTypeInCoilHeatingFuel < OpenStudio::Measure::ModelMeasure
  # human readable name
  def name
    return "Change Fuel Type in Coil:Heating:Fuel"
  end
  # human readable description
  def description
    return "This measure is used to change the type of fuel in Coil:Heating:Fuel of HVAC. This is currently not supported in OS. In the interface, the component is named Coil:Heating:Gas."
  end
  # human readable description of modeling approach
  def modeler_description
    return "Now construction"
  end
  # define the arguments that the user will input
  def arguments(workspace)
    args = OpenStudio::Measure::OSArgumentVector.new

    #The Name of the component 
    comp_name = OpenStudio::Measure::OSArgument.makeStringArgument("comp_name", true)
    comp_name.setDisplayName("The name of component modified by this measure")
    args << comp_name

    # the type of fuel
    vfuel_chs = OpenStudio::StringVector.new
    vfuel_chs << "Gas"
    vfuel_chs << "NaturalGas"
    vfuel_chs << "Propane"
    vfuel_chs << "FuelOil#1"
    vfuel_chs << "FuelOil#2"
    vfuel_chs << "Diesel"
    vfuel_chs << "Gasoline"
    vfuel_chs << "Coal"
    vfuel_chs << "Steam"    
    vfuel_chs << "OtherFuel1"   
    vfuel_chs << "OtherFuel2"       
    fueltype = OpenStudio::Measure::OSArgument::makeChoiceArgument('fueltype',vfuel_chs,true)
    fueltype.setDisplayName('Fuel type for Coil:Heating:Fuel(represented as Gas in the current OS)')
    fueltype.setDescription('Choose the fuel type used in your system.')
    fueltype.setDefaultValue("Gas")
    args << fueltype

    return args
  end

  # define what happens when the measure is run
  def run(workspace, runner, user_arguments)
    super(workspace, runner, user_arguments)

    # use the built-in error checking
    if !runner.validateUserArguments(arguments(workspace), user_arguments)
      return false
    end

    # assign the user inputs to variables
    comp_name = runner.getStringArgumentValue('comp_name',user_arguments)
    fueltype = runner.getStringArgumentValue('fueltype', user_arguments)

    # check the user_name for reasonableness
    if comp_name.empty?
      runner.registerError('Error')
      return false
    end

    # modifying fuel type of idf
    chgs = model.getCoilHeatingGases
    chgs.each do |chg|
      if CHG.name.get.match(comp_name)
        CHG.setfuelType(fueltype)
      end
    end
    runner.registerInfo("Completed.")
    return true
  end
end

# register the measure to be used by the application
ChangeFuelTypeInCoilHeatingFuel.new.registerWithApplication

The error message says

Applying ChangeFuelTypeInCoilHeatingFuel
  Result: Fail
  Error: undefined local variable or method `model' for #<ChangeFuelTypeInCoilHeatingFuel:0x00022952e03378>
    C:/xxx/measure.rb:71:in `run'
    :/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:502:in `apply_measure'
    :/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:109:in `block in apply_measures'
    :/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:67:in `each_index'
    :/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:67:in `apply_measures'
    :/ruby/2.2.0/gems/openstudio-workflow-1.3.4 ...
(more)
2019-11-15 07:13:32 -0500 commented answer Changing Fuel Type in Coil:Heating:Fuel in OS

Ahh, thank you so much. I am still confused with that point. In addition, how about the "chgs = model.getCoilHeatingGas

2019-11-15 02:08:32 -0500 asked a question Changing Fuel Type in Coil:Heating:Fuel in OS

Changing Fuel Type in Coil:Heating:Fuel in OS Dear all, now I am trying to modify the fuel type in Coil:Heating:Fuel wit

2019-06-19 20:11:03 -0500 commented answer The error occurs in the measure "TimeseriesObjectiveFunction"

Thank you for your information! I copied and pasted your code, and it seems that it works now!

2019-06-10 03:24:18 -0500 received badge  Enthusiast
2019-06-07 00:43:42 -0500 commented question Site:WeatherStation when using OpenStudio

Thank you all! I will try your suggestions!

2019-06-06 21:47:24 -0500 edited question The error occurs in the measure "TimeseriesObjectiveFunction"

The error occurs in the measure "TimeseriesObjectiveFunction" Hello. I am using the measure TimeSeriesObjectiveFunction

2019-06-06 21:39:50 -0500 edited question The error occurs in the measure "TimeseriesObjectiveFunction"

The error occurs in the measure "TimeseriesObjectiveFunction" Hello. I am using the measure TimeSeriesObjectiveFunction

2019-06-06 21:39:41 -0500 commented question The error occurs in the measure "TimeseriesObjectiveFunction"

Thank you for your reply. At first, my simulation is between Feb. 7 to Feb.13 in 2019. Error comment is added to the ma

2019-06-05 05:34:26 -0500 asked a question The error occurs in the measure "TimeseriesObjectiveFunction"

The error occurs in the measure "TimeseriesObjectiveFunction" Hello. I am using the measure TimeSeriesObjectiveFunction

2019-06-03 23:55:04 -0500 edited question Site:WeatherStation when using OpenStudio

Site:WeatherStation when using OpenStudio Hello. I use the EP model with OpenStudio. Now, I have a weather data monitor

2019-06-03 23:54:31 -0500 asked a question Site:WeatherStation when using OpenStudio

Site:WeatherStation when using OpenStudio Hello. I use the EP model with OpenStudio. Now, I have a weather data monitor

2019-04-18 05:46:27 -0500 marked best answer How can I check ground heat flux?

Dear everyone on Unmet Hours,

I am now working to apply EP to agricultural production in greenhouses. I have observed data of temperature, humidity and ground heat transfer. Because, usually, ground in greenhouses is exposed, the condition of floor is so different from the other types of building.

So, I want to check how ground heat flux is estimated in EP. But rdd file doesn't include any output variables related to ground heat flux.

In this case, is there any way to check ground heat flux? I need any kind of tips from you.

Thanks.

2018-11-20 00:58:57 -0500 edited question [OS, PAT] Detailed information on "measure_attributes.json"

[OS, PAT] Detailed information on "measure_attributes.json" Hello. When I used PAT in OS, there were measures which had

2018-11-20 00:57:32 -0500 asked a question [OS, PAT] Detailed information on "measure_attributes.json"

[OS, PAT] Detailed information on "measure_attributes.json" Hello. When I used PAT in OS, there are measures which have

2018-09-25 04:53:20 -0500 commented answer Calibrating the model with PAT in hourly time step

@David Goldwasser Thank you very much for your kind help. Finally, I understood the process!

2018-09-22 22:43:56 -0500 commented answer Calibrating the model with PAT in hourly time step

@David Goldwasser Thank you for the information. I tried as you explained but errors still remain. Inputted information

2018-09-22 22:43:34 -0500 commented answer Calibrating the model with PAT in hourly time step

@David Goldwasser Thank you for the information. I tried as you explained but errors still remain. Inputted information

2018-09-22 22:43:04 -0500 commented answer Calibrating the model with PAT in hourly time step

@David Goldwasser Thank you for the information. I tried as you explained but errors still remain. Inputted information

2018-09-21 08:34:34 -0500 marked best answer Calibrating the model with PAT in hourly time step

Hello.

I am now considering how to calibrate the model using PAT cloud computing with EC2. I understood that PAT can do the multiple simulation and calibrate the model by energy consumption. But in my case I'd like to calibrate the model using observed room temperature (or/and humidity).

My idea is like;

image description

Here, I don't know how to get the CSV file of the best simulation's result generated by the measure "Export Variable To CSV". I'd like to know any kinds of tips to do this kind of experiment.

Thank you.