Time Energy Harvester

Parent Previous Next

Power / Time_Energy_Harvester

Block Name: Time_Energy_Harvester

Code File Location: VisualSim/actor/lib/power/Time_Energy_Harvester

Block Overview:

  • Provides a convinent way to emulate time based power havertesrs
  • Supports different mechanism in time based Eg. Constant, Time based and file based
  • Can be directly connected to device that has to be charged like battery

Description:

Three different types of power charge generation methods are available, Viz constant or steady, trace file, and time-based. Generates power (as a double value) on the output for used to trigger direct consumption components such as BatteryModel.

Constant- This is activated by the 'UseConstant" parameter set to true. This generates a fixed charge at a regular interval of time. The ChargeCapacity is converted in Watts-seconds and sent out through the output port. 

Trace File- This is activated by the 'UseTraceFile" parameter set to true. The fileName field must be empty if this feature is not used.  Otherwise a error will be generated. This uses an existing trace file. The trace file requires two fields 'timeStamp' and 'ChargeOutput' which are mandatory fields in the trace file for power generation.

UseTimeBased-This is activated by the 'UseTimeBased" parameter set to true.  In this case, there is a time window called 'TimeDuration'. During the time window, the setup can define periods and charges for the periods.  If the StartWHR is smaller than the EndWHR value, the charge will be computed in a downward slope. The next charge update time will have a lower charge value than the previous point. If the StartWHR is greater than the EndWHR value, the charge will be computed in an upward slope. The next charge update time will have a higher charge value than the previous point. If the StartWHR and EndWHR are the same, then the values will be a flat line.  If the StartWHR and EndWHR are zero, then no charge is generated for that period of time. The Time-based mode is best used where the source of energy has different charge over time. Good examples are Solar Arrays and automobile motors.  

Parameters:

Parameter

Descrtipn

Value

UseTimeBased

Activate the Time Based mode

false /* boolean enables mode */

Time_Based_Duration

Time duration of one cycle to match the Time Based Setup. Time in seconds

10.0E-03 /* time seconds */

Time_Based_Charge_Setup

This is a table containing five columns. The first row must not be modified- ID StartWHR EndWHR Efficiency PercentTime ; There must be a space between columns followed by the ; at the end of each line. 

/* Time-Based Charge Profile */
ID  StartWHR  EndWHR  Efficiency  PercentTime  ;    
 1     0.0             20.0           100.0       15.0        ;
 2    20.0             20.0           100.0       50.0        ;
 3    20.0             0.0              100.0       15.0        ;
 4     0.0               0.0              100.0       20.0        ;

UseTraceFile

Activate the trace file mode

false /* boolean enables mode */

Trace_File_Name

Name of the trace file. This uses the standard format followed in the Traffic_Reader block. To understand the format of the trace file and the types of files supported, look at the Traffic_Reader documentation.
Note: there are two fields 'timeStamp' and 'ChargeOutput' are mandatory fields in the trace file. timeStamp corresponds to the time interval between each power output and the ChargeOutput corresponds to the amount of charge being generated. The library block generates an error if these two fields are not present.

/* file name */

UseConstant

Activate the constant mode

true /* boolean enables mode */

ConstantChargeCapacity

This is the charge in Watt-Hour. The actual charge for each transaction of this Power Generator will be this value /3600*Charge_Update_Interval.

1.0E-2 /* charge rate in Watt-Hr */

SimTime

Global simulation time

1.0 /* second */



Ports

Port Name

Description

Power_out

Generated Power is sent on this port as a double value


Created with the Personal Edition of HelpNDoc: Free PDF documentation generator