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.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 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, 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
afterStep, beforeStep
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
protected 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()
IDStabSolver
initialization
in interface IDStabSolver
public boolean performSimulation()
IDStabSolver
performSimulation
in interface IDStabSolver
public boolean solveDEqnStep(boolean updateTime)
solveDEqnStep
in interface IDStabSolver
updateTime
- indicator to update the simuTime fieldpublic void nextStep(double time, double dt, DynamicSimuMethod method) throws DStabSimuException
IDStabSolver
nextStep
in interface IDStabSolver
DStabSimuException
public abstract boolean networkSolutionStep() throws DStabSimuException
DStabSimuException
public abstract void diffEqnIntegrationStep(double t, double dt, DynamicSimuMethod method, int flag) throws DStabSimuException
DStabSimuException
public double getSimuTime()
getSimuTime
in interface IDStabSolver
public void setSimuTime(double t)
setSimuTime
in interface IDStabSolver
public int getOutputPerSteps()
IDStabSolver
getOutputPerSteps
in interface IDStabSolver
public void setOutputPerSteps(int outPerSteps)
IDStabSolver
setOutputPerSteps
in interface IDStabSolver
public abstract boolean hasDynEvent(double t)
public int getMaxIterationTimes()
public void setMaxIterationTimes(int maxIterationTimes)