public abstract class AbstractDStabSolver extends org.eclipse.emf.ecore.impl.EObjectImpl implements IDStabSolver
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImplorg.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 DynamicSimuAlgorithm |
dstabAlgo |
protected int |
maxIterationTimes |
protected int |
outCnt |
protected int |
outPerSteps |
protected int |
simuPercent |
protected double |
simuTime |
protected double |
timestep |
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY| Constructor and Description |
|---|
AbstractDStabSolver(DynamicSimuAlgorithm algo) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
diffEqnIntegrationStep(double t,
double dt,
DynamicSimuMethod method,
int flag) |
int |
getMaxIterationTimes() |
int |
getOutputPerSteps()
return the value of output per steps
|
double |
getSimuTime()
return the current simulation
|
abstract boolean |
hasDynEvent(double t) |
boolean |
initialization() |
abstract boolean |
networkSolutionStep() |
void |
nextStep(double time,
double dt,
DynamicSimuMethod method)
implement the nextStep simulation function
|
boolean |
performSimulation()
Perform dynamic simulation
|
void |
setMaxIterationTimes(int maxIterationTimes) |
void |
setOutputPerSteps(int outPerSteps)
set the value for output per steps.
|
void |
setSimuTime(double t)
set the current simulation
|
boolean |
solveDEqnStep(boolean updateTime)
perform a full step of simulation by solving the differential
eqn
|
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI, eStaticClasseAddVirtualValue, 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, toStringeBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitafterStep, beforeStepeAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetprotected DynamicSimuAlgorithm dstabAlgo
protected int simuPercent
protected double timestep
protected double simuTime
protected int outPerSteps
protected int outCnt
protected int maxIterationTimes
public AbstractDStabSolver(DynamicSimuAlgorithm algo)
public boolean initialization()
IDStabSolverinitialization in interface IDStabSolverpublic boolean performSimulation()
IDStabSolverperformSimulation in interface IDStabSolverpublic boolean solveDEqnStep(boolean updateTime)
solveDEqnStep in interface IDStabSolverupdateTime - indicator to update the simuTime fieldpublic void nextStep(double time,
double dt,
DynamicSimuMethod method)
throws DStabSimuException
IDStabSolvernextStep in interface IDStabSolverDStabSimuExceptionpublic abstract boolean networkSolutionStep()
throws DStabSimuException
DStabSimuExceptionpublic abstract void diffEqnIntegrationStep(double t,
double dt,
DynamicSimuMethod method,
int flag)
throws DStabSimuException
DStabSimuExceptionpublic double getSimuTime()
getSimuTime in interface IDStabSolverpublic void setSimuTime(double t)
setSimuTime in interface IDStabSolverpublic int getOutputPerSteps()
IDStabSolvergetOutputPerSteps in interface IDStabSolverpublic void setOutputPerSteps(int outPerSteps)
IDStabSolversetOutputPerSteps in interface IDStabSolverpublic abstract boolean hasDynEvent(double t)
public int getMaxIterationTimes()
public void setMaxIterationTimes(int maxIterationTimes)