This page contains the Simulation Package documentation.
This package contains the interface to different simulation packages.
This file contains code for mapping our JMI Models to the Problem specifications required by Assimulo.
Bases: exceptions.Exception
A FMIModel Exception.
Bases: assimulo.problem.Explicit_Problem
An Assimulo Explicit Model extended to FMI interface.
Property for accessing the input. The input must be a 2-tuple with the first object as a list of names of the input variables and with the other as a subclass of the class Trajectory.
The jacobian function for an ODE problem.
Property for accessing the values should be written to the file continuously during the simulation.
Bases: assimulo.problem.Implicit_Problem
An Assimulo Implicit Model extended to JMI interface.
Helper function for handle_event to determine if we have event iteration.
Parameters:
Values of the event indicator functions (state_events) before and
after we have changed mode of operations.
Property for accessing the epsilon used for adjusting the event indicators.
This is where we turn the switches. If we have an event, this is where it will be taken care of.
event_info is a vector consisting of -1, 0, +1, and is as long as
the number of event functions. A -1 symbolises that an event has
occured at the specified switch and is decreasing. A 0 symbolises
that nothing has happend. A +1 symbolises that an event has occured
at the specified switch and is increasing.
This is the default event handling.
This function adjusts the event functions according to Martin Otter et al defined in ‘Modeling of Mixed Continuous/Discrete Systems in Modelica’.
Property for accessing the input. The input must be a 2-tuple with the first object as a list of names of the input variables and with the other as a subclass of the class Trajectory.
Property for accessing the logging level. Determines if the logging should be activated (True) or deactivated (False).
Property for setting the maximum number of event iterations allowed.
Property for accessing the values should be written to the file continuously during the simulation.
Bases: assimulo.problem.Implicit_Problem
An Assimulo Implicit Model extended to JMI interface with support for sensitivities.
Returns the sensitivity results together with the names.
Returns:
parameter_names, sensitivity_matrix = JMIDAESens.get_sens_result()
parameters_names --
The names of the parameters for which sensitivities have been
calculated.
sensitivity_matrix --
A matrix containing the sensitivities for all the parameters.
sensitivity_matrix[0], gives the result for the first parameter
in the parameters_names list.
Post processing (stores the time points and the sensitivity result).
Property for accessing the logging level. Determines if the logging should be activated (True) or deactivated (False).
Property for accessing the values should be written to the file continuously during the simulation.
Bases: exceptions.Exception
A JMIModel Exception.
Bases: assimulo.problem.Explicit_Problem
An Assimulo Explicit Model extended to JMI interface.
Not extended with handling for discontinuities.
To use an explicit solver the problem have to be defined in specific way, namely: der(x) = f(t,x) in the modelica model. See http://www.jmodelica.org/page/10
Property for accessing the input. The input must be a 2-tuple with the first object as a list of names of the input variables and with the other as a subclass of the class Trajectory.
Property for accessing the values should be written to the file continuously during the simulation.