Running with Different Timesteps

Use this forum to post Vensim related questions.
Post Reply
sankee82
Member
Posts: 28
Joined: Mon Oct 01, 2018 5:56 pm
Vensim version: DSS

Running with Different Timesteps

Post by sankee82 »

Hello Everyone,

Is it possible to run one part of my model on daily time step and the other part of it on yearly time step?

Thanks and Regards,
Sankeerthana
tomfid
Administrator
Posts: 3806
Joined: Wed May 24, 2006 4:54 am

Re: Running with Different Timesteps

Post by tomfid »

No (except perhaps for some complex tricks). What are you trying to do?
sankee82
Member
Posts: 28
Joined: Mon Oct 01, 2018 5:56 pm
Vensim version: DSS

Re: Running with Different Timesteps

Post by sankee82 »

In the model attached, I want to run the hydrological parameters on daily timestep as I have daily data. Whereas, I want to calculate the crop yield at the end of each year. Can you please help me with it? Can the functions related to DELAY be of any help?
Attachments
250419_1.mdl
(10.04 KiB) Downloaded 219 times
tomfid
Administrator
Posts: 3806
Joined: Wed May 24, 2006 4:54 am

Re: Running with Different Timesteps

Post by tomfid »

You don't need different time steps. Run daily, and accumulate the results for annual reporting. See viewtopic.php?f=2&t=7199
sankee82
Member
Posts: 28
Joined: Mon Oct 01, 2018 5:56 pm
Vensim version: DSS

Re: Running with Different Timesteps

Post by sankee82 »

Hello everyone!

In the model attached, I have tried to accumulate the crop yield on annual basis after every 365 days. But from my observation the annual crop yield reduction is being calculated using every 365th value of crop yield reduction. Can you please help me in solving this? Also instead of accumulating crop yield I rather want to accumulate AET and PET annually and from there calculate the crop yield, Is that feasible? Any other suggestions to correct the model are also appreciated.

Thanks and Regards,
Sankeerthana.
Attachments
110519.mdl
(14.68 KiB) Downloaded 209 times
tomfid
Administrator
Posts: 3806
Joined: Wed May 24, 2006 4:54 am

Re: Running with Different Timesteps

Post by tomfid »

Without units and longer variable names, it's hard to know how to interpret AET and PET here.
sankee82
Member
Posts: 28
Joined: Mon Oct 01, 2018 5:56 pm
Vensim version: DSS

Re: Running with Different Timesteps

Post by sankee82 »

Thank you fro the response. AET is Actual Evapotranspiration and PET is Potential Evapotranspiration whose units are m/day. In the attached model, I have corrected the units for all the variables except farm balance since I am confused about how to define those variables. Can you please help me with this and previously mentioned problems?

Thanks and Regards,
Sankeerthana.
Attachments
110519_1.mdl
(16.52 KiB) Downloaded 210 times
tomfid
Administrator
Posts: 3806
Joined: Wed May 24, 2006 4:54 am

Re: Running with Different Timesteps

Post by tomfid »

The units don't balance on previous farm balance because the time constant (1) needs to be a dimensioned parameter.

I think the issue with the farm balance is that it should have units of Rs/ha, which means that income should be Rs/ha/day. Since income and yield are flow concepts, they should have time in the denominator.
sankee82
Member
Posts: 28
Joined: Mon Oct 01, 2018 5:56 pm
Vensim version: DSS

Re: Running with Different Timesteps

Post by sankee82 »

Thank you for the response. Can you please also help me with why the annual crop yield reduction is being calculated using every 365th value of crop yield reduction whereas I want to accumulate the crop yield on annual basis after every 365 days. Also instead of accumulating crop yield I rather want to accumulate EvapoTtanspiration and Potential EvapoTranspiration annually and from there calculate the crop yield, Is that feasible?

Regards,
Sankeerthana.
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Running with Different Timesteps

Post by Administrator »

sankee82 wrote: Mon May 13, 2019 6:19 am Thank you for the response. Can you please also help me with why the annual crop yield reduction is being calculated using every 365th value of crop yield reduction whereas I want to accumulate the crop yield on annual basis after every 365 days. Also instead of accumulating crop yield I rather want to accumulate EvapoTtanspiration and Potential EvapoTranspiration annually and from there calculate the crop yield, Is that feasible?
We cannot run the model to investigate (it's missing the source data).

I cannot find a parameter in your model called "EvapoTanspiration", can you clarify which variable you are interested in?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
sankee82
Member
Posts: 28
Joined: Mon Oct 01, 2018 5:56 pm
Vensim version: DSS

Re: Running with Different Timesteps

Post by sankee82 »

It is not EvapoTranspiration, it is Actual Evapotranspiration. I am also attaching the file that has source data.

Thank you!
Attachments
220419.xlsx
(1.94 MiB) Downloaded 199 times
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Running with Different Timesteps

Post by Administrator »

sankee82 wrote: Mon May 13, 2019 6:19 amCan you please also help me with why the annual crop yield reduction is being calculated using every 365th value of crop yield....
I'd suggest trying to keep your equations a little more simple.
Introduce a new variable (I'm not sure what it should be called, so I've named it "aux"),
aux = actual evapotranspiration/potential evapotranspiration

Now change
yield reduction = YIELD RESPONSE FACTOR*(1-(aux))/TIME STEP

Look at the values for "aux" and you will see why you are not getting the behaviour you want.
I rather want to accumulate EvapoTtanspiration and Potential EvapoTranspiration annually and from there calculate the crop yield, Is that feasible?
Use a level to accumulate these.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
tomfid
Administrator
Posts: 3806
Joined: Wed May 24, 2006 4:54 am

Re: Running with Different Timesteps

Post by tomfid »

Two issues here:

1. I think the model would be clearer with more physical variable names and concepts. For example, "yield reduction" is not a thing. You want to model the physical state, which is - I think - the amount of crops in the field.

2. I'm not sure why TIME STEP is in the denominator for Yield Reduction. Generally, TIME STEP should not figure in equations. The only exception is when you want to measure an instantaneous derivative or model a discrete event. This may be the latter, but I'm not sure.
tomfid
Administrator
Posts: 3806
Joined: Wed May 24, 2006 4:54 am

Re: Running with Different Timesteps

Post by tomfid »

Combining these, I think you want something like the following:
crops.png
crops.png (14.19 KiB) Viewed 6483 times
Growth will be a continuous process, something like:

Growth = Effect of Water Availability * Crops * Normal Growth Rate * (1 - Crops/Max Crops)

Then Harvest is a discrete event:

Harvest Trigger = PULSE TRAIN( ... )
Harvest = Harvest Trigger*Crops/TIME STEP
sankee82
Member
Posts: 28
Joined: Mon Oct 01, 2018 5:56 pm
Vensim version: DSS

Re: Running with Different Timesteps

Post by sankee82 »

Thank you so much for the response. To simulate Harvest as annual discrete event, I am using a reporting interval of 365 days. But I am running the model for 20 years. How should I account for leap years which have 366 days and give reporting interval as 366 days for those particular years?
tomfid
Administrator
Posts: 3806
Joined: Wed May 24, 2006 4:54 am

Re: Running with Different Timesteps

Post by tomfid »

My inclination would be to ignore such details - just make every year 365.25 days.

Otherwise, you could create a schedule of leap years in a lookup.
sankee82
Member
Posts: 28
Joined: Mon Oct 01, 2018 5:56 pm
Vensim version: DSS

Re: Running with Different Timesteps

Post by sankee82 »

Thank you!
Post Reply