BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
cl_Resistor.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_RESISTOR_HPP
13#define BELFEM_CL_RESISTOR_HPP
14
15#include "cl_TwoTerminals.hpp"
16#include "Component_Enums.hpp"
17
18namespace belfem
19{
20 namespace electronics
21 {
22//-----------------------------------------------------------------------------
23
24 class Resistor : public TwoTerminals
25 {
27 real mValue ;
28
29//------------------------------------------------------------------------------
30 public:
31//------------------------------------------------------------------------------
32
33 Resistor(const real aValue, Cell < ElectricNode* > & aTerminals, string aLabel = "") ;
34
35//------------------------------------------------------------------------------
36
38 component_type() const override ;
39
40//-----------------------------------------------------------------------------
41
42 void
43 compute_current() override ;
44
45//------------------------------------------------------------------------------
46
47 real
48 get_value() const override ;
49
50//------------------------------------------------------------------------------
51
52 void
53 set_value( const real aValue ) ;
54
55//------------------------------------------------------------------------------
56
57 };
58
59 inline ComponentType
64
65//-----------------------------------------------------------------------------
66 }
67}
68
69#endif //BELFEM_CL_RESISTOR_HPP
void compute_current() override
Definition cl_Resistor.cpp:27
ComponentType component_type() const override
Definition cl_Resistor.hpp:60
void set_value(const real aValue)
Definition cl_Resistor.cpp:44
Resistor(const real aValue, Cell< ElectricNode * > &aTerminals, string aLabel="")
Definition cl_Resistor.cpp:20
real get_value() const override
Definition cl_Resistor.cpp:36
TwoTerminals(Cell< ElectricNode * > &aTerminals, string aLabel="")
Definition cl_TwoTerminals.cpp:20
Definition cl_Capacitor.cpp:18
ComponentType
Definition Component_Enums.hpp:22
@ RESISTOR
Definition Component_Enums.hpp:23
USER GUIDES:
Definition cl_Capacitor.cpp:16
double real
Definition typedefs.hpp:36