DPsim
Loading...
Searching...
No Matches
DP_Ph3_SynchronGeneratorDQTrapez.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
12
13namespace CPS {
14namespace DP {
15namespace Ph3 {
17 : public SynchronGeneratorDQ,
18 public SharedFactory<SynchronGeneratorDQTrapez> {
19public:
21 Logger::Level loglevel = Logger::Level::off);
23 Logger::Level loglevel = Logger::Level::off);
24
25 void setMultisamplingRate(Int rate);
26
27 // #### MNA Section ####
28 void mnaCompInitialize(Real omega, Real timeStep,
29 Attribute<Matrix>::Ptr leftVector) override;
30
33 AttributeBase::List &prevStepDependencies,
34 AttributeBase::List &attributeDependencies,
35 AttributeBase::List &modifiedAttributes) override;
36 void mnaCompPreStep(Real time, Int timeStepCount) override;
37
38protected:
41
42 // #### Trapezoidal Section ####
43
46 void stepInPerUnit(Real time);
47};
48} // namespace Ph3
49} // namespace DP
50} // namespace CPS
std::vector< Ptr > List
Definition Attribute.h:123
AttributePointer< Attribute< T > > Ptr
Definition Attribute.h:250
SynchronGeneratorDQ(String name, String uid, Logger::Level logLevel=Logger::Level::off)
Defines UID, name and logging level.
void mnaCompAddPreStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes) override
Add MNA pre step dependencies.
void mnaCompPreStep(Real time, Int timeStepCount) override
SynchronGeneratorDQTrapez(String uid, String name, Logger::Level loglevel=Logger::Level::off)
void mnaCompInitialize(Real omega, Real timeStep, Attribute< Matrix >::Ptr leftVector) override
Initializes variables of component.
String uid()
Returns unique id.
spdlog::level::level_enum Level
Definition Logger.h:33
std::string String
Definition Definitions.h:65
double Real
Definition Definitions.h:62
int Int
Definition Definitions.h:61