ACLineSegment.py 3.63 KB
Newer Older
1
from cimpy.output.Conductor import Conductor
2
3
4
5
6
7


class ACLineSegment(Conductor):
	'''
	A wire or combination of wires, with consistent electrical characteristics, building a single electrical system, used to carry alternating current between points in the power system. For symmetrical, transposed 3ph lines, it is sufficient to use  attributes of the line segment, which describe impedances and admittances for the entire length of the segment.  Additionally impedances can be computed by using length and associated per length impedances. The BaseVoltage at the two ends of ACLineSegments in a Line shall have the same BaseVoltage.nominalVoltage. However, boundary lines  may have slightly different BaseVoltage.nominalVoltages and  variation is allowed. Larger voltage difference in general requires use of an equivalent branch.

8
9
10
11
12
13
14
15
16
	:bch: Positive sequence shunt (charging) susceptance, uniformly distributed, of the entire line section.  This value represents the full charging over the full length of the line. Default: 
	:gch: Positive sequence shunt (charging) conductance, uniformly distributed, of the entire line section. Default: 
	:r: Positive sequence series resistance of the entire line section. Default: 
	:x: Positive sequence series reactance of the entire line section. Default: 
	:b0ch: Zero sequence shunt (charging) susceptance, uniformly distributed, of the entire line section. Default: 
	:g0ch: Zero sequence shunt (charging) conductance, uniformly distributed, of the entire line section. Default: 
	:r0: Zero sequence series resistance of the entire line section. Default: 
	:shortCircuitEndTemperature: Maximum permitted temperature at the end of SC for the calculation of minimum short-circuit currents. Used for short circuit data exchange according to IEC 60909 Default: 
	:x0: Zero sequence series reactance of the entire line section. Default: 
17
18
		'''

19
20
	cgmesProfile = Conductor.cgmesProfile

21
22
23
24
25
26
27
28
29
30
	possibleProfileList = {'class': [cgmesProfile.{'$rdf:datatype': 'http://www.w3.org/2001/XMLSchema#string', '_': 'EQ'}.value, ],
						'bch': [cgmesProfile.{'$rdf:datatype': 'http://www.w3.org/2001/XMLSchema#string', '_': 'EQ'}.value, ],
						'gch': [cgmesProfile.{'$rdf:datatype': 'http://www.w3.org/2001/XMLSchema#string', '_': 'EQ'}.value, ],
						'r': [cgmesProfile.{'$rdf:datatype': 'http://www.w3.org/2001/XMLSchema#string', '_': 'EQ'}.value, ],
						'x': [cgmesProfile.{'$rdf:datatype': 'http://www.w3.org/2001/XMLSchema#string', '_': 'EQ'}.value, ],
						'b0ch': [cgmesProfile.{'$rdf:datatype': 'http://www.w3.org/2001/XMLSchema#string', '_': 'EQ'}.value, ],
						'g0ch': [cgmesProfile.{'$rdf:datatype': 'http://www.w3.org/2001/XMLSchema#string', '_': 'EQ'}.value, ],
						'r0': [cgmesProfile.{'$rdf:datatype': 'http://www.w3.org/2001/XMLSchema#string', '_': 'EQ'}.value, ],
						'shortCircuitEndTemperature': [cgmesProfile.{'$rdf:datatype': 'http://www.w3.org/2001/XMLSchema#string', '_': 'EQ'}.value, ],
						'x0': [cgmesProfile.{'$rdf:datatype': 'http://www.w3.org/2001/XMLSchema#string', '_': 'EQ'}.value, ],
Philipp Reuber's avatar
Philipp Reuber committed
31
32
						 }

33
	serializationProfile = {}
34
35
36

	__doc__ += '\n Documentation of parent class Conductor: \n' + Conductor.__doc__ 

37
	def __init__(self, bch = , gch = , r = , x = , b0ch = , g0ch = , r0 = , shortCircuitEndTemperature = , x0 = ,  *args, **kw_args):
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
		super().__init__(*args, **kw_args)
	
		self.bch = bch
		self.gch = gch
		self.r = r
		self.x = x
		self.b0ch = b0ch
		self.g0ch = g0ch
		self.r0 = r0
		self.shortCircuitEndTemperature = shortCircuitEndTemperature
		self.x0 = x0
		
	def __str__(self):
		str = 'class=ACLineSegment\n'
		attributes = self.__dict__
		for key in attributes.keys():
			str = str + key + '={}\n'.format(attributes[key])
		return str