BELFEM
0.9.0
Berkeley Lab Finite Element Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
cl_TwoTerminals.hpp
Go to the documentation of this file.
1
/*
2
* BELFEM -- The Berkeley Lab Finite Element Framework
3
* Copyright (c) 2026, The Regents of the University of California,
4
* through Lawrence Berkeley National Laboratory (subject to receipt of any required
5
* approvals from the U.S. Dept. of Energy). All rights reserved.
6
*
7
* Developers: Christian Messe, Gregory Giard
8
*
9
* See the top-level LICENSE file for the complete license and disclaimer.
10
*/
11
12
#ifndef BELFEM_CL_TWOTERMINALS_HPP
13
#define BELFEM_CL_TWOTERMINALS_HPP
14
15
#include "
cl_Component.hpp
"
16
17
namespace
belfem
18
{
19
namespace
electronics
20
{
21
//-----------------------------------------------------------------------------
22
class
TwoTerminals
:
public
Component
23
{
24
protected
:
25
27
real
mCurrent
= 0.0 ;
28
29
//------------------------------------------------------------------------------
30
public
:
31
//------------------------------------------------------------------------------
32
33
TwoTerminals
(Cell < ElectricNode* > & aTerminals,
string
aLabel =
""
) ;
34
35
//------------------------------------------------------------------------------
36
37
real
38
get_current
()
const override
;
39
40
//------------------------------------------------------------------------------
41
42
ComponentType
43
component_type
()
const override
;
44
45
//-----------------------------------------------------------------------------
46
47
void
48
set_current
(
const
real
aCurrent)
override
;
49
50
//------------------------------------------------------------------------------
51
52
ElectricNode
*
53
get_node_plus
()
const override
;
54
55
//------------------------------------------------------------------------------
56
57
ElectricNode
*
58
get_node_minus
()
const override
;
59
60
//------------------------------------------------------------------------------
61
62
};
63
64
inline
ComponentType
65
TwoTerminals::component_type
()
const
66
{
67
return
ComponentType::TERMINALPAIR
;
68
}
69
70
//-----------------------------------------------------------------------------
71
}
72
}
73
74
#endif
//BELFEM_CL_TWOTERMINALS_HPP
cl_Component.hpp
belfem::electronics::Component::Component
Component(const uint aNumTerminals, Cell< ElectricNode * > &aTerminals, string aLabel="")
Definition
cl_Component.cpp:21
belfem::electronics::ElectricNode
Circuit node; the unknowns of the modified nodal analysis.
Definition
cl_ElectricNode.hpp:31
belfem::electronics::TwoTerminals::get_node_minus
ElectricNode * get_node_minus() const override
Definition
cl_TwoTerminals.cpp:52
belfem::electronics::TwoTerminals::component_type
ComponentType component_type() const override
Definition
cl_TwoTerminals.hpp:65
belfem::electronics::TwoTerminals::get_current
real get_current() const override
Definition
cl_TwoTerminals.cpp:28
belfem::electronics::TwoTerminals::mCurrent
real mCurrent
Current.
Definition
cl_TwoTerminals.hpp:27
belfem::electronics::TwoTerminals::TwoTerminals
TwoTerminals(Cell< ElectricNode * > &aTerminals, string aLabel="")
Definition
cl_TwoTerminals.cpp:20
belfem::electronics::TwoTerminals::set_current
void set_current(const real aCurrent) override
Definition
cl_TwoTerminals.cpp:36
belfem::electronics::TwoTerminals::get_node_plus
ElectricNode * get_node_plus() const override
Definition
cl_TwoTerminals.cpp:44
belfem::electronics
Definition
cl_Capacitor.cpp:18
belfem::electronics::ComponentType
ComponentType
Definition
Component_Enums.hpp:22
belfem::electronics::ComponentType::TERMINALPAIR
@ TERMINALPAIR
Definition
Component_Enums.hpp:31
belfem
USER GUIDES:
Definition
cl_Capacitor.cpp:16
belfem::real
double real
Definition
typedefs.hpp:36
src
circuit
cl_TwoTerminals.hpp
Generated by
1.18.0