Xyce  6.1
N_ANP_MPDE.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------------
2 // Copyright Notice
3 //
4 // Copyright 2002 Sandia Corporation. Under the terms
5 // of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S.
6 // Government retains certain rights in this software.
7 //
8 // Xyce(TM) Parallel Electrical Simulator
9 // Copyright (C) 2002-2015 Sandia Corporation
10 //
11 // This program is free software: you can redistribute it and/or modify
12 // it under the terms of the GNU General Public License as published by
13 // the Free Software Foundation, either version 3 of the License, or
14 // (at your option) any later version.
15 //
16 // This program is distributed in the hope that it will be useful,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 // GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program. If not, see <http://www.gnu.org/licenses/>.
23 //-----------------------------------------------------------------------------
24 
25 //-----------------------------------------------------------------------------
26 // Filename : $RCSfile: N_ANP_MPDE.h,v $
27 //
28 // Purpose : MPDE analysis class
29 //
30 // Special Notes : Specify any "hidden" or subtle details of the class here.
31 // Portability details, error handling information, etc.
32 //
33 // Creator : Todd Coffey, 1414, Ting Mei 1437
34 //
35 // Creation Date : 07/23/08
36 //
37 // Revision Information:
38 // ---------------------
39 //
40 // Revision Number: $Revision: 1.34.2.1 $
41 // Revision Date : $Date: 2015/04/02 18:20:06 $
42 // Current Owner : $Author: tvrusso $
43 //-----------------------------------------------------------------------------
44 
45 #ifndef Xyce_N_ANP_MPDE_h
46 #define Xyce_N_ANP_MPDE_h
47 
48 #include <N_ANP_fwd.h>
49 #include <N_TOP_fwd.h>
50 
51 #include <N_ANP_AnalysisBase.h>
52 #include <N_ANP_Factory.h>
53 #include <N_ANP_StepEvent.h>
54 #include <N_UTL_Listener.h>
55 #include <N_UTL_OptionBlock.h>
56 
57 class N_MPDE_Manager;
58 
59 namespace Xyce {
60 namespace Analysis {
61 
62 typedef Util::ListenerAutoSubscribe<StepEvent> StepEventListener;
63 
64 //-------------------------------------------------------------------------
65 // Class : MPDE
66 // Purpose : MPDE analysis class
67 // Special Notes :
68 // Creator : Richard Schiek, SNL, Electrical and Microsystem Modeling
69 // Creation Date : 01/24/08
70 //-------------------------------------------------------------------------
71 class MPDE : public AnalysisBase,
72  public StepEventListener
73 {
74 public:
75  MPDE(
76  AnalysisManager & analysis_manager,
77  Linear::System & linear_system,
78  Nonlinear::Manager & nonlinear_manager,
79  Device::DeviceMgr & device_manager,
80  Linear::Builder & builder,
81  Topo::Topology & topology);
82 
83  virtual ~MPDE();
84 
85 
86  void notify(const StepEvent &event);
87 
88  const TimeIntg::TIAParams &getTIAParams() const; // override
89  TimeIntg::TIAParams &getTIAParams(); // override
90 
91  bool getDCOPFlag() const;
92 
93  bool doRun();
94  bool doInit();
95  bool doLoopProcess();
96  bool processSuccessfulDCOP();
97  bool processFailedDCOP();
99  bool doProcessFailedStep();
100  bool doFinish();
101  bool doHandlePredictor();
102 
103  bool finalVerboseOutput();
104 
105  N_MPDE_Manager &getMPDEManager() {
106  return *mpdeManager_;
107  }
108 
109 private:
112  Linear::System & linearSystem_;
114  Topo::Topology & topology_;
115  N_MPDE_Manager * mpdeManager_;
116 };
117 
119  const std::string & netlist_filename,
120  IO::PkgOptionsMgr & options_manager,
121  AnalysisManager & analysis_manager,
122  Linear::System & linear_system,
123  Nonlinear::Manager & nonlinear_manager,
124  Device::DeviceMgr & device_manager,
125  Linear::Builder & builder,
126  Topo::Topology & topology);
127 
128 } // namespace Analysis
129 } // namespace Xyce
130 
131 #endif // Xyce_N_ANP_MPDE_h
132 
Loader::Loader & loader_
Definition: N_ANP_MPDE.h:111
bool doProcessSuccessfulStep()
Definition: N_ANP_MPDE.C:192
Pure virtual class to augment a linear system.
N_MPDE_Manager & getMPDEManager()
Definition: N_ANP_MPDE.h:105
MPDE(AnalysisManager &analysis_manager, Linear::System &linear_system, Nonlinear::Manager &nonlinear_manager, Device::DeviceMgr &device_manager, Linear::Builder &builder, Topo::Topology &topology)
Definition: N_ANP_MPDE.C:64
bool registerMPDEFactory(const std::string &netlist_filename, IO::PkgOptionsMgr &options_manager, AnalysisManager &analysis_manager, Linear::System &linear_system, Nonlinear::Manager &nonlinear_manager, Device::DeviceMgr &device_manager, Linear::Builder &builder, Topo::Topology &topology)
Definition: N_ANP_MPDE.C:476
Util::ListenerAutoSubscribe< StepEvent > StepEventListener
void notify(const StepEvent &event)
Definition: N_ANP_MPDE.C:81
Nonlinear::Manager & nonlinearManager_
Definition: N_ANP_MPDE.h:113
Linear::System & linearSystem_
Definition: N_ANP_MPDE.h:112
Topo::Topology & topology_
Definition: N_ANP_MPDE.h:114
const TimeIntg::TIAParams & getTIAParams() const
Definition: N_ANP_MPDE.C:103
bool processSuccessfulDCOP()
Definition: N_ANP_MPDE.C:179
Factory for creating analysis objects.
AnalysisManager & analysisManager_
Definition: N_ANP_MPDE.h:110
N_MPDE_Manager * mpdeManager_
Definition: N_ANP_MPDE.h:115
bool doProcessFailedStep()
Definition: N_ANP_MPDE.C:205
bool getDCOPFlag() const
Definition: N_ANP_MPDE.C:122