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
BeginGroup Indicates whether the load object will have a separator before it when shown in the context menu. Boolean False True, False
caption Caption of the object. String
class Class name of the controller of the object. String
color Color of the scoped entities. String #00ff00
ContextGroup Indicates which group the load will be shown in the context menu. String
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
LazyActivateSelectProperties Determines when onActivate callback is called for the properties. Boolean False True, False
localize Indicates whether the caption and value string need to be localized by the application. 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.
CanCreate Callback that is invoked to determine whether the object can be created via the Object Creation API.
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.
OnDrawBodyViews(IUserLoad, IBodyView, IBodyView) Called to collect all commands to add to the solver input file.
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.