Menu

Problem with simple Inverter and battery.

Sandy
2015-04-07
2015-04-08
  • Sandy

    Sandy - 2015-04-07

    Hi! I am using
    GridLAB-D 3.1.0-4829 (Hatwai) 64-bit WINDOWS RELEASE

    I have just started with the generators module. its very simple just inverter and battery included. its giving following, error

    C:\Software\gridlabd_practice\module_3>gridlabd battery_1.glm
    battery_1.glm(17): class 'inverter' is not known
    battery_1.glm(17): load failed at or near 'object inver...'
    ERROR [INIT] : unable to load 'battery_1.glm': No such file or directory
    FATAL [INIT] : shutdown after command line rejected

    Please check the glm file bellow:

    The final goal is to run simulations with all appliances for a house having battery storage, solar energy and grid energy.

    Appreciate your help. also, can you please suggest any source which is helpful to learn more about generators?

    module residential;
    module tape;
    module powerflow;
    clock {
    timezone CST6;
    timestamp '2015-01-01 0:00:00';
    stoptime '2015-02-01 0:00:00';
    }

    object triplex_meter {
    name meterBattery;
    phases AS;
    nominal_voltage 120;
    }

    object inverter{
    name BatteryInverter;
    parent meterBattery;
    phases AN;
    inverter_type FOUR_QUADRANT;
    four_quadrant_control_mode LOAD_FOLLOWING;
    rated_power 10000.0;
    rated_battery_power 6000.0; //Per phase rating
    inverter_efficiency 1.0;
    charge_on_threshold 1.0 kW;
    charge_off_threshold 4.0 kW;
    discharge_off_threshold 4.5 kW;
    discharge_on_threshold 4.7 kW;
    max_discharge_rate 2.0 kW;
    max_charge_rate 0.20 kW;
    }

    object battery{
    name Battery;
    parent BatteryInverter;
    use_internal_battery_model true;
    battery_type LI_ION;
    nominal_voltage 240 V;
    Energy 20.0 kWh;
    E_Max 200 ;
    round_trip_efficiency 1.0;
    state_of_charge 0.4;
    generator_mode SUPPLY_DRIVEN;

    object recorder {
    property state_of_charge;
    file battery_1.csv;
    interval 60;
    }
    }

     
  • Jason Fuller

    Jason Fuller - 2015-04-08

    Sandy,

    You will need to let GLD know to activate generator module. Add:

    "module generator;"

    to your GLM.

     

Log in to post a comment.