public class DStabSolverImpl extends AbstractDStabSolver
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
Modifier and Type | Field and Description |
---|---|
protected double |
converge_tol |
protected IPSSMsgHub |
msg |
protected java.util.Hashtable<java.lang.String,org.apache.commons.math3.complex.Complex> |
voltageRecTable |
dstabAlgo, maxIterationTimes, outCnt, outPerSteps, simuPercent, simuTime, timestep
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
Constructor and Description |
---|
DStabSolverImpl(DynamicSimuAlgorithm algo,
IPSSMsgHub msg) |
Modifier and Type | Method and Description |
---|---|
void |
afterStep(double t)
implement the post simulation function
|
protected void |
applyDynamicEvent(double time)
Apply dynamic event if necessary at t = time
|
void |
beforeStep(double time)
implement the before simulation function
|
void |
consoleMsg(java.lang.String msg)
Send a string message to console
|
void |
diffEqnIntegrationStep(double t,
double dt,
DynamicSimuMethod method,
int flag) |
boolean |
hasDynEvent(double t) |
boolean |
networkSolutionStep() |
protected void |
output(BaseDStabBus<?,?> bus,
double t,
boolean plotOutput)
output simulation results
|
protected void |
output(DStabBranch bra,
double t,
boolean plotOutput) |
boolean |
procInitOutputEvent()
process initial output events
|
protected void |
procOutputEvent(byte eventType,
java.util.Hashtable<java.lang.String,java.lang.Object> states)
Process output event with event object
|
getMaxIterationTimes, getOutputPerSteps, getSimuTime, initialization, nextStep, performSimulation, setMaxIterationTimes, setOutputPerSteps, setSimuTime, solveDEqnStep
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI, eStaticClass
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues, toString
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
protected IPSSMsgHub msg
protected java.util.Hashtable<java.lang.String,org.apache.commons.math3.complex.Complex> voltageRecTable
protected double converge_tol
public DStabSolverImpl(DynamicSimuAlgorithm algo, IPSSMsgHub msg)
public void beforeStep(double time) throws DStabSimuException
IDStabSolver
DStabSimuException
public boolean networkSolutionStep() throws DStabSimuException
networkSolutionStep
in class AbstractDStabSolver
DStabSimuException
public void diffEqnIntegrationStep(double t, double dt, DynamicSimuMethod method, int flag) throws DStabSimuException
diffEqnIntegrationStep
in class AbstractDStabSolver
DStabSimuException
public void afterStep(double t) throws DStabSimuException
IDStabSolver
DStabSimuException
public boolean procInitOutputEvent()
AbstractDStabSolver
protected void output(BaseDStabBus<?,?> bus, double t, boolean plotOutput) throws DStabSimuException
bus
- t
- plotOutput
- if true, output results for plottingDStabSimuException
protected void output(DStabBranch bra, double t, boolean plotOutput) throws DStabSimuException
DStabSimuException
protected void procOutputEvent(byte eventType, java.util.Hashtable<java.lang.String,java.lang.Object> states) throws DStabSimuException
eventType
- event type, type is defined in DStabSimuAction, for example DStabSimuAction.EndOfSimuStepDStabSimuException
protected void applyDynamicEvent(double time) throws DStabSimuException
time
- DStabSimuException
public void consoleMsg(java.lang.String msg)
msg
- public boolean hasDynEvent(double t)
hasDynEvent
in class AbstractDStabSolver