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

Revision history [back]

Your questions is for Energyplus, but if you use OpenStudio you can use the following script to get the total heat capacity for all the surfaces in your model as long as you hard assigned the constructions (eg. did not use space types to assign a construction set):

model_surfaces = model.getPlanarSurfaces
building_mass = 0
model_surfaces.each do |surface|
    if not surface.heatCapacity.empty?
        puts surface.heatCapacity.get
        building_mass += surface.heatCapacity.get
    end
end
puts building_mass

Your questions is for Energyplus, but if you use OpenStudio you can use the following script to get the total heat capacity for all the surfaces in your model as long as you hard assigned the constructions (eg. did not use space types to assign a construction set):

model_surfaces = model.getPlanarSurfaces
building_mass = 0
model_surfaces.each do |surface|
    if not surface.heatCapacity.empty?
        puts surface.heatCapacity.get
        building_mass += surface.heatCapacity.get
    end
end
puts building_mass