How to use the pysd.functions.Integ function in pysd

To help you get started, we’ve selected a few pysd examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SDXorg / test-models / samples / teacup / teacup.py View on Github external
return time_step()


@cache('run')
def time_step():
    """
    TIME STEP

    Minute [0,?]

    The time step for the simulation.
    """
    return 0.125


integ_teacup_temperature = functions.Integ(lambda: -heat_loss_to_room(), lambda: 180)
github SDXorg / test-models / tests / lookups / test_lookups.py View on Github external
return time_step()


@cache('run')
def time_step():
    """
    TIME STEP

    Minute [0,?]

    The time step for the simulation.
    """
    return 0.25


integ_accumulation = functions.Integ(lambda: rate(), lambda: 0)