DPsim
Loading...
Searching...
No Matches
dpsim-models
include
dpsim-models
Base
Base_Ph1_Resistor.h
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
14
namespace
CPS {
15
namespace
Base {
16
namespace
Ph1 {
17
class
Resistor {
18
public
:
20
const
CPS::Attribute<Real>::Ptr
mResistance
;
21
22
explicit
Resistor(CPS::AttributeList::Ptr attributeList)
23
:
mResistance
(attributeList->create<Real>(
"R"
)){};
24
26
void
setParameters(Real resistance) { **
mResistance
= resistance; }
27
};
28
}
// namespace Ph1
29
}
// namespace Base
30
}
// namespace CPS
CPS::Base::Ph1::Resistor::mResistance
const CPS::Attribute< Real >::Ptr mResistance
Resistance [ohm].
Definition
Base_Ph1_Resistor.h:20
Generated by
1.13.2