DPsim
Loading...
Searching...
No Matches
Base_Ph1_CurrentSource.h
Go to the documentation of this file.
1
/* Copyright 2017-2021 Institute for Automation of Complex Power Systems,
2
* EONERC, RWTH Aachen University
3
*
4
* This Source Code Form is subject to the terms of the Mozilla Public
5
* License, v. 2.0. If a copy of the MPL was not distributed with this
6
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
7
*********************************************************************************/
8
9
#pragma once
10
11
#include <
dpsim-models/Definitions.h
>
12
13
namespace
CPS
{
14
namespace
Base
{
15
namespace
Ph1
{
16
class
CurrentSource
{
17
protected
:
19
Complex
mCurrentRef
;
21
Real
mSrcFreq
= -1;
22
23
public
:
25
void
setParameters
(
Complex
currentRef,
Real
srcFreq = -1) {
26
mCurrentRef
= currentRef;
27
mSrcFreq
= srcFreq;
28
}
29
};
30
}
// namespace Ph1
31
}
// namespace Base
32
}
// namespace CPS
CPS::Base::Ph1::CurrentSource
Definition
Base_Ph1_CurrentSource.h:16
CPS::Base::Ph1::CurrentSource::mSrcFreq
Real mSrcFreq
Source frequency [Hz].
Definition
Base_Ph1_CurrentSource.h:21
CPS::Base::Ph1::CurrentSource::mCurrentRef
Complex mCurrentRef
Current set point [A].
Definition
Base_Ph1_CurrentSource.h:19
CPS::Base::Ph1::CurrentSource::setParameters
void setParameters(Complex currentRef, Real srcFreq=-1)
Sets model specific parameters.
Definition
Base_Ph1_CurrentSource.h:25
Definitions.h
CPS::Base::Ph1
Definition
Base_Ph1_Capacitor.h:16
CPS::Base
Definition
Base_AvVoltageSourceInverterDQ.h:15
CPS
Definition
Attribute.h:17
CPS::Real
double Real
Definition
Definitions.h:62
CPS::Complex
std::complex< Real > Complex
Definition
Definitions.h:63
dpsim-models
include
dpsim-models
Base
Base_Ph1_CurrentSource.h
Generated by
1.13.2