Format Component Library Clause Samples

Format Component Library. The components or sub-systems must be modelled within the user define component of the GES simulation tool. The models in the library components are described in ASCII files with the following format shown in Table 5.  < > Indicates that something must be completed  // text behind is comment  //bold text literally take over //version <lib_name> Version name or number of the component /* Help text */ First comment of the component that can be replayed by pressing on the F1 key of Help button /*Author and revisions */ Under author and revisions specified who the model of the component made and when. It also indicates who and when the model is adjusted, if necessary, provided with an explanation Example: /*Author and revisions ▇. ▇▇▇ ▇▇▇▇ 11-10-2013 ▇. ▇▇▇▇▇▇ 20-11-2013 changed emission */ SWBS=<#>; SWBS number of component, see 7.1 for selection type_fuel=1; Indicates that the component generates emissions //Explanation Information of background of the model init_function; //------------------------------ Init function block. The block begins where a previous block ends. This block is calculated once, before all the other calculations and is a part of the model description. More init blocks on several places can be used in the code and are cat automatically pre_function; //------------------------------- Pre function block. The block begins where a previous block ends. This block is calculated every time step, after the init_function blocks and is a part of the model description. More pre blocks on several places can be used in the code and are cat automatically. <e_gate(#)=>or<f_gate(#)=> //------------------------------ Gate description. The block begins where a previous block ends. A hashtag is the gate number of the component with the block description of the flow or effort of the component. See for the definition of effort of flow For every gate one gate block must be defined. post_function; //------------------------------- Post function block. The block begins where a previous block ends. This block is calculated every time step, after the gate blocks and is a part of the model description. More post blocks on several places can be used in the code and are cat automatically. <Include ‘attributes_inomanship.equ’;> Optional can code included to the component to export the attributes variables of the component. Remark. This include file must be worked out. Example is given.