Exemplo n.º 1
0
def set_gen_pf(gen_pf):
    """This parameter sets the pf for generators in AutoAdd mode."""
    return dsslib.SolutionF(ctypes.c_int32(15), ctypes.c_double(gen_pf))
Exemplo n.º 2
0
def total_write_time():
    """This parameter sets the accumulated time (microseconds) register. The new value for this register must be specified in the argument."""
    return dsslib.SolutionF(ctypes.c_int32(26), ctypes.c_double(0))
Exemplo n.º 3
0
def set_frequency(frequency=50.0):
    """This parameter sets the frequency for the next solution."""
    return dsslib.SolutionF(ctypes.c_int32(1), ctypes.c_double(frequency))
Exemplo n.º 4
0
def step_size_min(minutes):
    """This parameter sets the step size in minutes."""
    return dsslib.SolutionF(ctypes.c_int32(22), ctypes.c_double(minutes))
Exemplo n.º 5
0
def process_time():
    """This parameter retrieves the time required (microseconds) to perform the latest solution time step, this time does not includes the time required for sampling meters/monitors."""
    return dsslib.SolutionF(ctypes.c_int32(24), ctypes.c_double(0))
Exemplo n.º 6
0
def get_gen_mult():
    """This parameter returns the default multiplier applied to generators (like LoadMult)."""
    return dsslib.SolutionF(ctypes.c_int32(18), ctypes.c_double(0))
Exemplo n.º 7
0
def get_dbl_hour():
    """This parameter returns the hour as a double, including fractional part."""
    return dsslib.SolutionF(ctypes.c_int32(20), ctypes.c_double(0))
Exemplo n.º 8
0
def set_load_mult(load_mult=1.0):
    """This parameter sets the default load multiplier applied to all non-fixed loads."""
    return dsslib.SolutionF(ctypes.c_int32(7), ctypes.c_double(load_mult))
Exemplo n.º 9
0
def get_tolerance():
    """This parameter returns the solution convergence tolerance."""
    return dsslib.SolutionF(ctypes.c_int32(8), ctypes.c_double(0))
Exemplo n.º 10
0
def set_step_size(step_size):
    """This parameter sets the step size for the next solution."""
    return dsslib.SolutionF(ctypes.c_int32(5), ctypes.c_double(step_size))
Exemplo n.º 11
0
def get_load_mult():
    """This parameter returns the default load multiplier applied to all non-fixed loads."""
    return dsslib.SolutionF(ctypes.c_int32(6), ctypes.c_double(0))
Exemplo n.º 12
0
def get_step_site():
    """This parameter returns the step size for the next solution."""
    return dsslib.SolutionF(ctypes.c_int32(4), ctypes.c_double(0))
Exemplo n.º 13
0
def set_seconds(seconds):
    """This parameter sets the seconds from top of the hour."""
    return dsslib.SolutionF(ctypes.c_int32(3), ctypes.c_double(seconds))
Exemplo n.º 14
0
def get_seconds():
    """This parameter returns the seconds from top of the hour."""
    return dsslib.SolutionF(ctypes.c_int32(2), ctypes.c_double(0))
Exemplo n.º 15
0
def get_cap_var():
    """This parameter returns the capacitor kvar for adding in AutoAdd mode."""
    return dsslib.SolutionF(ctypes.c_int32(16), ctypes.c_double(0))
Exemplo n.º 16
0
def set_tolerance(tolerance):
    """This parameter sets the solution convergence tolerance."""
    return dsslib.SolutionF(ctypes.c_int32(9), ctypes.c_double(tolerance))
Exemplo n.º 17
0
def set_cap_var(cap_var):
    """This parameter sets the capacitor kvar for adding in AutoAdd mode."""
    return dsslib.SolutionF(ctypes.c_int32(17), ctypes.c_double(cap_var))
Exemplo n.º 18
0
def get_pct_annual_growth():
    """This parameter returns the percent default annual load growth rate."""
    return dsslib.SolutionF(ctypes.c_int32(10), ctypes.c_double(0))
Exemplo n.º 19
0
def set_gen_mult(gen_mult=1.0):
    """This parameter sets the default multiplier applied to generators (like LoadMult)."""
    return dsslib.SolutionF(ctypes.c_int32(19), ctypes.c_double(gen_mult))
Exemplo n.º 20
0
def set_pct_annual_grotth(pct_annual_growth):
    """This parameter sets the percent default annual load growth rate."""
    return dsslib.SolutionF(ctypes.c_int32(11),
                            ctypes.c_double(pct_annual_growth))
Exemplo n.º 21
0
def set_dbl_hour(dbl_hour):
    """This parameter sets the hour as a double, including fractional part."""
    return dsslib.SolutionF(ctypes.c_int32(21), ctypes.c_double(dbl_hour))
Exemplo n.º 22
0
def get_gen_kW():
    """This parameter returns the generator kW for AutoAdd mode."""
    return dsslib.SolutionF(ctypes.c_int32(12), ctypes.c_double(0))
Exemplo n.º 23
0
def step_size_hr(hours):
    """This parameter sets the step size in Hours."""
    return dsslib.SolutionF(ctypes.c_int32(23), ctypes.c_double(hours))
Exemplo n.º 24
0
def set_gen_kW(gen_kW):
    """This parameter sets the generator kW for AutoAdd mode."""
    return dsslib.SolutionF(ctypes.c_int32(13), ctypes.c_double(gen_kW))
Exemplo n.º 25
0
def total_read_time():
    """This parameter retrieves the accumulated time required (microseconds) to perform the simulation."""
    return dsslib.SolutionF(ctypes.c_int32(25), ctypes.c_double(0))
Exemplo n.º 26
0
def get_gen_pf():
    """This parameter returns the pf for generators in AutoAdd mode."""
    return dsslib.SolutionF(ctypes.c_int32(14), ctypes.c_double(0))
Exemplo n.º 27
0
def time_time_step():
    """This parameter retrieves the time required (microseconds) to perform the latest solution time step including the time required for sampling meters/monitors."""
    return dsslib.SolutionF(ctypes.c_int32(27), ctypes.c_double(0))
Exemplo n.º 28
0
def get_frequency():
    """This parameter returns the frequency for the next solution."""
    return dsslib.SolutionF(ctypes.c_int32(0), ctypes.c_double(0))