-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathFeeder.h
116 lines (83 loc) · 2.96 KB
/
Feeder.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#ifndef FeederH
#define FeederH
/*
----------------------------------------------------------
Copyright (c) 2008-2021, Electric Power Research Institute, Inc.
All rights reserved.
----------------------------------------------------------
*/
/* Feeder Class
User cannot instantiate this object. Feeders are created on the fly when
a radial system is specified. Feeders are created from Energymeters and are
given the same name.
6-24-04 Created from Isource (a simple PC Element)
8-13-2006 Radial circuit solution removed
Feeders get created from energy meters if Radial is set to yes and meter zones
are already computed. If Radial=Yes and the meterzones are reset, then the feeders
are redefined. If Radial is subsequently set to NO or a solution mode is used
that doesn't utilize feeders, the get currents routines will not do anything.
Feeders cannot be re-enabled unless the energymeter object allows them to be.
Feeders are not saved. This is implicit with the Energymeter saving.
*/
//#include <System.hpp>
#include "DSSClass.h"
#include "PCClass.h"
#include "PCElement.h"
#include "Ucmatrix.h"
#include "Ucomplex.h"
#include "PointerList.h"
#include "CktElement.h"
#include "CktTree.h"
namespace Feeder
{
//class TFeeder;
//class TFeederObj;
// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
class TFeeder : public TPCClass {
public:
typedef TPCClass inherited;
friend class TFeederObj;
// private:
protected:
void DefineProperties();
virtual int MakeLike(const String OtherFeederName);
public:
TFeeder();
virtual ~TFeeder();
virtual int Edit(int ActorID);
virtual int Init(int Handle, int ActorID);
virtual int NewObject(const String ObjName);
};
// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
using namespace DSSClass;
class TFeederObj : public PCElement::TPCElement {
typedef TPCElement inherited;
friend class TFeeder;
public:
// private:
PointerList::TPointerList sequenceList, ShuntList;
TDSSCktElement RootElement;
int FromTerminalOffset;
public:
bool IsSynched;
void InitializeFeeder(TCktTree BranchList, int ActorID);
void SetCktElementFeederFlags(bool Value);
TFeederObj(DSSClass::TDSSClass* ParClass, const String MeterName);
virtual ~TFeederObj();
virtual void RecalcElementData(int ActorID);
virtual void CalcYPrim(int ActorID);
virtual void MakePosSequence(int ActorID) // Make a positive Sequence Model - N/A
;
virtual int InjCurrents(int ActorID);
virtual void GetInjCurrents(pComplexArray Curr, int ActorID);
virtual void GetCurrents(pComplexArray Curr, int ActorID);
virtual void InitPropertyValues(int ArrayOffset);
virtual void DumpProperties(Textfile& F, bool Complete);
};
extern TFeederObj* ActiveFeederObj;
// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
}
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE)
using namespace Feeder;
#endif
#endif // FeederH