DPsim
Loading...
Searching...
No Matches
EMT_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 EMT {
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 // #### MNA Section ####
26 void mnaCompInitialize(Real omega, Real timeStep,
27 Attribute<Matrix>::Ptr leftVector) override;
28 void mnaCompPreStep(Real time, Int timeStepCount) override;
29
32 AttributeBase::List &prevStepDependencies,
33 AttributeBase::List &attributeDependencies,
34 AttributeBase::List &modifiedAttributes) override;
35
36protected:
37 // #### Trapezoidal Section ####
38
41 void stepInPerUnit(Real time);
42};
43} // namespace Ph3
44} // namespace EMT
45} // 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 mnaCompPreStep(Real time, Int timeStepCount) override
void mnaCompAddPreStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes) override
Add MNA pre step dependencies.
SynchronGeneratorDQTrapez(String uid, String name, Logger::Level loglevel=Logger::Level::off)
void mnaCompInitialize(Real omega, Real timeStep, Attribute< Matrix >::Ptr leftVector) override
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