Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.07 KB

callback.rst

File metadata and controls

33 lines (21 loc) · 1.07 KB

Callback Functions

elastica.callback_functions

Description

The frequency at which you have your callback function save data will depend on what information you need from the simulation. Excessive call backs can cause performance penalties, however, it is rarely necessary to make call backs at a frequency that this becomes a problem. We have found that making a call back roughly every 100 iterations has a negligible performance penalty.

Currently, all data saved from call back functions is saved in memory. If you have many rods or are running for a long time, you may want to consider editing the call back function to write the saved data to disk so you do not run out of memory during the simulation.

CallBackBaseClass ExportCallBack MyCallBack

Built-in Constraints

CallBackBaseClass

ExportCallBack

MyCallBack