Tag: Load

Simulation Load/Boundary

Tree

Remarks

The <load> element and its children allow you to configure the properties of a custom load and specify the IronPython functions that are invoked based on system and user-generated events.

Examples

The following example defines a load applicable to edges. <load name="DemoLoad" version="1" caption="DemoLoad" icon="tload" color="#00FFFF"> <callbacks> <getnodalvaluesfordisplay>NodeValues</getnodalvaluesfordisplay> </callbacks> <property name="Geometry" caption="Geometry" control="scoping"> <attributes selection_filter="edge" /> </property> </load>

Mandatory Attributes

Name Description Type Allowed Values
name Name of the object. String
version Version of the object. Int32

Optional Attributes

Name Description Type Default Value Allowed Values
caption Caption of the object. String
class Class name of the controller of the object. String
color Color of the scoped entities. String #00ff00
contextual Indicates whether the object has to be displayed in the contextual menu. Boolean True True, False
icon Icon for the object. String
IsLoad Indicates whether the load object should be considered as a load boundary. Boolean False True, False
IsSupport Indicates whether the load object should be considered as a support boundary. Boolean False True, False
unit Default unit used by the contour display. String

Callbacks

Name Description
CanAdd(IDataModelObject, String) Callback that is invoked to determine whether the object can be added.
CanDuplicate(IUserObject, IDataModelObject) Callback that is invoked to determine if the object can be duplicated.
CanRemove(IUserObject) Callback that is invoked to determine if the object can be removed.
GetCommands(IUserLoad, ISolverData, TextWriter) Callback that is invoked to collect all commands to add to the solver input file.
GetNodalValuesForDisplay(IUserLoad, Int32[]) Callback that is invoked to get nodal values associated with the load.
GetPostCommands(IUserLoad, StringWriter) Callback that is invoked to collect all "post" commands to add to the solver input file.
GetPreCommands(IUserLoad, StringWriter) Callback that is invoked to collect all "pre" commands to add to the solver input file.
GetSolveCommands(IUserLoad, StringWriter) Callback that is invoked to collect all "solve" commands to add to the solver input file.
IsValid(IUserObject) Callback that is invoked to determine if the object is valid.
OnAdd(IUserObject) Callback that is invoked when the object is newly added.
OnAfterGenerate(IUserObject) Callback that is invoked after the generation is completed.
OnClearData(IUserObject) Callback that is invoked when object data are cleared.
OnDuplicate(IUserObject) Callback that is invoked when the object is duplicated.
OnGenerate(IUserObject, Func<Int32, String, Boolean>) Callback that is invoked when the load object is generated.
OnHide(IUserObject) Callback that is invoked when the object is hidden.
OnInit(IUserObject) Callback that is invoked when the object is initialized.
OnMigrate(IUserObject, IUserObject) Callback that is invoked when the object version has been changed.
OnRemove(IUserObject) Callback that is invoked when the object is removed.
OnShow(IUserObject) Callback that is invoked when the object is shown.
OnSuppress(IUserObject) Callback that is invoked when the object is suppressed.
OnUnsuppress(IUserObject) Callback that is invoked when the object is unsuppressed.