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