-
Notifications
You must be signed in to change notification settings - Fork 1
Computation Simulation Extension
papousek edited this page Nov 19, 2012
·
4 revisions
The extension provides ODE simulation. The provided services are placed in ComputationInstanceScope
.
<dependency>
<groupId>org.sybila.parasim.extension</groupId>
<artifactId>computation-simulation-impl</artifactId>
<version>${parasim.version}</version>
</dependency>
public class MyClass {
@Provide
@SimulationSpace
private OrthogonalSpace simulationSpace;
@Provide
private PrecisionConfiguration precisionConfiguration;
@Inject
private AdaptiveStepSimulator simulator;
@Inject
private AdaptiveStepConfiguration configuration;
public void main(DataBlock trajectories) {
SimulatedDataBlock simulated = simulator.simulate(configuration, trajectories);
...
}
}
Property | Type |
---|---|
odepkgFunction | OdePkgEngineFactory |
lsodeIntegrationMethod |
LsodeEngineFactory.IntegrationMethod: adams , nonstiff, bdf , stiff
|