Frame
- class simframe.frame.Frame(integrator=None, writer=None, updater=None, verbosity=2, progressbar=None, description='')[source]
Bases:
GroupThis is the parent object of type
Groupthat contains all other objects.During integration the
update()function of theFrameobject will be called. You have to sub-delegete the updates of your otherGroupandFieldobjects within this function.Framehas additional functionality for writing output files and for integration.- Attributes:
descriptionDescription of the instance.
integratorIntegratorthat controls the simulation.listenerListener for file or system signals.
progressbarProgressbarfor displaying current status.tocComplete table of contents starting from this object.
updateorderUpdate order if updater was set with list of strings.
updaterHeartbeatobject with update instructions.verbosityVerbosity of the
Frameobjects.writerWriterobject for writing output files.
Methods
addfield(name, value[, updater, ...])Function to add a new
Fieldto the object.addgroup(name[, updater, description])Function to add a new
Groupto the object.addintegrationvariable(name, value[, ...])Function to add a new integration variable
IntVarto the object.memory_usage([print_output, skip_hidden])Determine memory usage of a Group
run()This method starts the simulation.
update(*args, **kwargs)Function to update the object.
writeoutput([i, forceoverwrite, filename])Writes output to file, if
Writeris specified.Attributes Summary
Integratorthat controls the simulation.Listener for file or system signals.
Progressbarfor displaying current status.Verbosity of the
Frameobjects.Writerobject for writing output files.Methods Summary
run()This method starts the simulation.
writeoutput([i, forceoverwrite, filename])Writes output to file, if
Writeris specified.Attributes Documentation
- integrator
Integratorthat controls the simulation.
- listener
Listener for file or system signals.
- progressbar
Progressbarfor displaying current status.
- verbosity
Verbosity of the
Frameobjects.
- writer
Writerobject for writing output files.
Methods Documentation
- writeoutput(i=0, forceoverwrite=False, filename=None, **kwargs)[source]
Writes output to file, if
Writeris specified.- Parameters:
i (int, optional, default : 0) – Number of output
forceoverwrite (boolean, optional, default: False) – If True, this overrules the seetings of the Writer and enforces the file to be overwritten.
filename (string, optional, default: None) – if given this will write the output to this file. Otherwise, it uses the standard scheme.
kwargs (additional keyword arguments) – Additional options that can be passed to the writer