How can I change analysis length in life cycle costs to 50 years?
25 years is maximum and program does not accept more then this value
First time here? Check out the Help page!
25 years is maximum and program does not accept more then this value
REVISED
In OpenStudio 1.14.0 on the Site tab click on the Life Cycle Costs. Change the "Analysis Type" to "Custom" and the "Use National Institute of Standards and Technology (NIST) Fuel Escalation Rates to "No" then in the "Analysis Length (Years)" field enter the number 50.
As a work around here is code with use in some utility tariff EnergyPlus measures. You could use this to set an analysis period greater than 30 years in OpenStudio 1.14.0. This was too long to put as comment under @JasonGlazer's answer.
#remove any existing lifecycle cost parameters
workspace.getObjectsByType("LifeCycleCost:Parameters".to_IddObjectType).each do |object|
runner.registerInfo("removed existing lifecycle parameters named #{object.name}")
workspace.removeObjects([object.handle])
end
#and replace with the FEMP ones
life_cycle_params_string = "
LifeCycleCost:Parameters,
FEMP LifeCycle Cost Parameters, !- Name
EndOfYear, !- Discounting Convention
ConstantDollar, !- Inflation Approach
0.03, !- Real Discount Rate
, !- Nominal Discount Rate
, !- Inflation
, !- Base Date Month
2011, !- Base Date Year
, !- Service Date Month
2011, !- Service Date Year
25, !- Length of Study Period in Years
, !- Tax rate
None; !- Depreciation Method
"
life_cycle_params = OpenStudio::IdfObject::load(life_cycle_params_string).get
workspace.addObject(life_cycle_params)
runner.registerInfo("added lifecycle cost parameters named #{life_cycle_params.name}")
I'm a beginner, how can i implement that? Where should I paste this code? Will it also work in Open Studio v.2.0.0?
Just wondering, are you adding any economics to your model other than tariffs? If not then changing the analysis length won't mean much. It is more important if you have objects with an effective life less than your analysis period that need to be replaced, or O&M costs that don't occur annually.
If you are a beginner, then altering or writing measures may not be easy. We will fix this, just don't have a timeframe for when that will happen. The same issues exists in OpenStudio 2.0 as well.
I will need to create LCC life cycle cost analysis for 50 years period. I shoudl change https://github.com/NREL/openstudio-st... Should I download whole SDK?
By the way, I am launching the Open Studio and the first information is "Could not find or download Open Studio Result Measure."
You can take the code from my answer and put the in the run method of an new EnergyPlus measure in place of everything after super(workspace, runner, user_arguments)
. As far as the issue finding OpenStudio Results. Were you online when you launched OpenStudio and did that happen in 1.14 or 2.0
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2016-12-22 12:48:15 -0600
Seen: 503 times
Last updated: Jan 05 '17
What program are you using?
I use OpenStudio