First time here? Check out the Help page!
1 | initial version |
Thanks for your help @Denis Bourgeois. As outlined in your previous instructions, we ran a measure in OpenStudio which generated the trench ground field and an associated OS:Site:GroundTemperature:Undisturbed:KusudaAchenbach object. We then modified the default parameters for KusudaAchenbach in the osm file because OpenStudio's interface didn't seem to allow revisions to this object's parameters. For anybody who has this issue in the future, here is the code for the measure that we ran:
# start the measure class AddHorizontalTrenchFieldForGSHP < OpenStudio::Measure::ModelMeasure # human readable name def name return "Add trench horizontal ground field for GSHP." end # human readable description def description return "This measure adds a trench horizontal ground field." end # human readable description of modeling approach def modeler_description return " This measure adds a trench horizontal ground field. " end
# define what happens when the measure is run def run(model, runner, user_arguments) super(model, runner, user_arguments) trench = OpenStudio::Model::GroundHeatExchangerHorizontalTrench.new(model) loop = model.getPlantLoopByName("GSHP Loop Name").get loop.addSupplyBranchForComponent(trench) end end
# register the measure to be used by the application AddHorizontalTrenchFieldForGSHP.new.registerWithApplication
Hopefully this will be helpful to someone.