55 lines
1.5 KiB
C++
55 lines
1.5 KiB
C++
/*
|
|
* Copyright (C) 2023 Gadi Lahav (gadi@rfwithcare.com)
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef ENGINE_EXT_LUMPEDRLC_H
|
|
#define ENGINE_EXT_LUMPEDRLC_H
|
|
|
|
#include "engine_extension.h"
|
|
#include "FDTD/engine.h"
|
|
#include "FDTD/operator.h"
|
|
|
|
class Operator_Ext_LumpedRLC;
|
|
|
|
class Engine_Ext_LumpedRLC : public Engine_Extension
|
|
{
|
|
friend class Operator_Ext_LumpedRLC;
|
|
friend class Operator;
|
|
friend class ContinuousStructure;
|
|
|
|
public:
|
|
|
|
Engine_Ext_LumpedRLC(Operator_Ext_LumpedRLC *op_ext_RLC);
|
|
virtual ~Engine_Ext_LumpedRLC();
|
|
|
|
virtual void DoPreVoltageUpdates();
|
|
virtual void Apply2Voltages();
|
|
|
|
protected:
|
|
Operator_Ext_LumpedRLC* m_Op_Ext_RLC;
|
|
|
|
// Auxilliary containers
|
|
|
|
// Array setup: volt_C_ADE[mesh_pos]
|
|
FDTD_FLOAT *v_Il; // Container for current on inductor- Parallel RLC
|
|
|
|
FDTD_FLOAT **v_Vdn; // Container for nodal vd at [n],[n-1],[n-2]
|
|
FDTD_FLOAT **v_Jn; // Container for nodal J at [n],[n-1],[n-2]
|
|
|
|
};
|
|
|
|
#endif // ENGINE_EXT_LORENTZMATERIAL_H
|