DPsim
Loading...
Searching...
No Matches
Base_Ph3_Resistor.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/AttributeList.h
>
12
#include <
dpsim-models/Definitions.h
>
13
namespace
CPS
{
14
namespace
Base
{
15
namespace
Ph3
{
16
class
Resistor
{
17
public
:
19
const
CPS::Attribute<Matrix>::Ptr
mResistance
;
20
21
explicit
Resistor
(
CPS::AttributeList::Ptr
attributeList)
22
:
mResistance
(attributeList->create<
Matrix
>(
"R"
)){};
23
25
void
setParameters
(
Matrix
resistance) { **
mResistance
= resistance; }
26
};
27
}
// namespace Ph3
28
}
// namespace Base
29
}
// namespace CPS
AttributeList.h
CPS::Attribute::Ptr
AttributePointer< Attribute< T > > Ptr
Definition
Attribute.h:250
CPS::AttributeList::Ptr
std::shared_ptr< AttributeList > Ptr
Definition
AttributeList.h:26
CPS::Base::Ph3::Resistor::Resistor
Resistor(CPS::AttributeList::Ptr attributeList)
Definition
Base_Ph3_Resistor.h:21
CPS::Base::Ph3::Resistor::setParameters
void setParameters(Matrix resistance)
Sets model specific parameters.
Definition
Base_Ph3_Resistor.h:25
CPS::Base::Ph3::Resistor::mResistance
const CPS::Attribute< Matrix >::Ptr mResistance
Resistance [ohm].
Definition
Base_Ph3_Resistor.h:19
Definitions.h
CPS::Base::Ph3
Definition
Base_Ph3_Capacitor.h:16
CPS::Base
Definition
Base_AvVoltageSourceInverterDQ.h:15
CPS
Definition
Attribute.h:17
CPS::Matrix
Eigen::Matrix< Real, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor > Matrix
Dense matrix for real numbers.
Definition
Definitions.h:81
dpsim-models
include
dpsim-models
Base
Base_Ph3_Resistor.h
Generated by
1.13.2