how to create a loop in simulink for runoff model

조회 수: 1 (최근 30일)
Poornima Chandra Lekha Posa
Poornima Chandra Lekha Posa 2021년 2월 26일
답변: Rhea Chandy 2021년 3월 1일
i have data of one year and i need to calculate runoff for each day of the day and the equation is as follows: rainfall + storage - evaporation - infiltration = runoff for 1st day and
for second day runoff, equation changes as follows:
rainfall on 2nd day + infiltration of 1st day is storage of 2nd day - evaporation on 2nd day - infiltration on 2nd day = runoff on 2nd day

답변 (1개)

Rhea Chandy
Rhea Chandy 2021년 3월 1일
Hi Poornima
If you are asking how to implement a for loop inside the model, there is a "For Iterator Subsytem" to repeats the execution in a time step.
Are you having difficulty building the model itself? If you aren't sure where to start because you're not familiar with how to model in Simulink, I suggest you start with the Simulink Onramp tutorial (https://www.mathworks.com/help/simulink/slref/simulinkonramp.html) to quickly learn the essentials.
If you can give some more information on where you are facing difficulties in your model, we may be able to give you more specific help.

카테고리

Help CenterFile Exchange에서 Verification, Validation, and Test에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by