The InterfaceSpringback class gives you access to interface springback cards in PRIMER. More...
The PRIMER JavaScript API provides many class constants, properties and methods. For Arup to
be able to extend and enhance the API in the future any constant, property or method names beginning with a lowercase
or uppercase letter are reserved.
If you need to add your own properties or methods to one of the existing classes then to avoid any potential future conflict you
should ensure that the name begins with either an underscore (_) or a dollar sign ($) or the name is prefixed with your
own unique identifier.
For example if company 'ABC' need to add a property called 'example' then to avoid any potential future conflict use one of:
| Name | Type | Description |
| cflag | integer | Output contact state. |
| dtwrt | real | Time Interval. |
| exists (read only) | logical | true if interface springback exists, false if referred to but not defined. |
| fsplit | integer | Flag for splitting of the dynain file (0 - One file, 1 - Two files.). Used for OPTCARD field. |
| ftensr | integer | Flag for dumping tensor data from the element history variables into the dynain file (0/1). |
| ftype | integer | Filetype (0-3, 10-12). |
| hflag | integer | Output hourglass state. |
| include | integer | The Include file number that the interface springback is in. |
| intstrn | integer | Output of strains at all integration points of shell element is requested. |
| ivflg | integer | Initial volume output. |
| model (read only) | integer | The Model number that the interface springback is in. |
| ncyc | integer | Number of process cycles. Used for OPTCARD field. |
| ndflag | integer | Flag to dump nodes into dynain file. |
| nexclude | integer | gives the number of excluded keywords. Needed only for InterfaceSpringback.EXCLUDE. |
| nmwrt | integer | Maximum number of files. |
| nnodes | integer | gives the number of nodal points constrained for this keyword. (read_only) |
| nothickness | logical | true if _NOTHICKNESS (option2) is set. _NOTHICKNESS can be used only for InterfaceSpringback.LSDYNA or InterfaceSpringback.NASTRAN. |
| nshv | integer | Num additional Shell/Solid history variables number. |
| nthhsv | integer | Number of thermal history variables. |
| optcard | integer | (0) no optional cards (1) to have optional card 2 (2) to have optional cards 2, 3.1, 3.2. |
| psid | integer | Part set ID for springback. |
| sldo | integer | Output of solid element data as 0 - *ELEMENT_SOLID, 1- *ELEM_SOLID_ORTHO. Used for OPTCARD field. |
| type (read only) | integer | gives the type of InterfaceSpringback object. |
Detailed DescriptionThe InterfaceSpringback class allows you to create, modify, edit and manipulate interface springback cards. See the documentation below for more details. |
Constructornew InterfaceSpringback(Model[Model], options [object])DescriptionCreate a new InterfaceSpringback object. |
Model that interface springback will be created in
Options for creating the interface springback
Object has the following properties:
| Name | Type | Description |
| cflag (optional) | integer | Output contact state. |
| dtwrt | real | Time Interval. |
| fsplit (optional) | integer | Flag for splitting of the dynain file (0 - One file, 1 - Two files.). Used only for optional card. |
| ftensr (optional) | integer | Flag for dumping tensor data from the element history variables into the dynain file (0/1). |
| ftype (optional) | integer | Filetype (0-3, 10-12). |
| hflag (optional) | integer | Output hourglass state. |
| intstrn (optional) | integer | Output of strains at all integration points of shell element is requested. |
| ivflg | integer | Initial volume output. |
| keylist (optional) | Array of strings | List of keywords to be excluded.(ONLY for EXCLUDE) |
| ncyc (optional) | integer | Number of process cycles. Used only for optional card. |
| ndflag (optional) | integer | Flag to dump nodes into dynain file. |
| nmwrt | integer | Maximum number of files. |
| nshv (optional) | integer | Num additional Shell/Solid history variables number. |
| nthhsv (optional) | integer | Number of thermal history variables. |
| optcard (optional) | integer | (0) no optional cards (1) to have optional card 2 (2) to have optional cards 2, 3.1, 3.2. |
| psid (optional) | integer | Part set ID for springback.(NOT for _EXCLUDE) |
| sldo (optional) | integer | Output of solid element data as 0 - *ELEMENT_SOLID, 1- *ELEM_SOLID_ORTHO. Used only for optional card. |
| type | constant | Specify the type of InterfaceSpringback (Can be InterfaceSpringback.NIKE3D or InterfaceSpringback.LSDYNA or InterfaceSpringback.NASTRAN or InterfaceSpringback.SEAMLESS ) |
ReturnsInterfaceSpringback object Return typeInterfaceSpringback |
ExampleTo create a new interface springback in model m, type LSDYNA, part set id 100: var i_s = new InterfaceSpringback(m, InterfaceSpringback.LSDYNA, 100);
|
Details of functionsAssociateComment(Comment[Comment])DescriptionAssociates a comment with a interface springback. |
Comment that will be attached to the interface springback
ReturnsNo return value |
ExampleTo associate comment c to the interface springback i_s: i_s.AssociateComment(c);
|
Browse(modal (optional)[boolean])DescriptionStarts an edit panel in Browse mode. |
If this window is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the window will be modal.
Returnsno return value |
ExampleTo Browse interface springback i_s: i_s.Browse();
|
ClearFlag(flag[Flag])DescriptionClears a flag on the interface springback. |
Flag to clear on the interface springback
ReturnsNo return value |
ExampleTo clear flag f for interface springback i_s: i_s.ClearFlag(f);
|
Copy(range (optional)[boolean])DescriptionCopies the interface springback. The target include of the copied interface springback can be set using Options.copy_target_include. |
If you want to keep the copied item in the range specified for the current include. Default value is false. To set current include, use Include.MakeCurrentLayer().
ReturnsInterfaceSpringback object Return typeInterfaceSpringback |
ExampleTo copy interface springback i_s into interface springback z: var z = i_s.Copy();
|
Create(Model[Model], modal (optional)[boolean]) [static]DescriptionStarts an interactive editing panel to create a interface springback |
Model that the interface springback will be created in.
If this window is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the window will be modal.
ReturnsInterfaceSpringback object (or null if not made). Return typeInterfaceSpringback |
ExampleTo start creating a interface springback in model m: var i_s = InterfaceSpringback.Create(m);
|
DetachComment(Comment[Comment])DescriptionDetaches a comment from a interface springback. |
Comment that will be detached from the interface springback
ReturnsNo return value |
ExampleTo detach comment c from the interface springback i_s: i_s.DetachComment(c);
|
Edit(modal (optional)[boolean])DescriptionStarts an interactive editing panel. |
If this window is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the window will be modal.
Returnsno return value |
ExampleTo Edit interface springback i_s: i_s.Edit();
|
Error(message[string], details (optional)[string])DescriptionAdds an error for interface springback. For more details on checking see the Check class. |
The error message to give
An optional detailed error message
ReturnsNo return value |
ExampleTo add an error message "My custom error" for interface springback i_s: i_s.Error("My custom error");
|
First(Model[Model]) [static]DescriptionReturns the first interface springback in the model. |
Model to get first interface springback in
ReturnsInterfaceSpringback object (or null if there are no interface springbacks in the model). Return typeInterfaceSpringback |
ExampleTo get the first interface springback in model m: var i_s = InterfaceSpringback.First(m);
|
FlagAll(Model[Model], flag[Flag]) [static]DescriptionFlags all of the interface springbacks in the model with a defined flag. |
Model that all interface springbacks will be flagged in
Flag to set on the interface springbacks
ReturnsNo return value |
ExampleTo flag all of the interface springbacks with flag f in model m: InterfaceSpringback.FlagAll(m, f);
|
Flagged(flag[Flag])DescriptionChecks if the interface springback is flagged or not. |
Flag to test on the interface springback
Returnstrue if flagged, false if not. Return typeBoolean |
ExampleTo check if interface springback i_s has flag f set on it: if (i_s.Flagged(f) ) do_something...
|
ForEach(Model[Model], func[function], extra (optional)[any]) [static]DescriptionCalls a function for each interface springback in the model. |
Model that all interface springbacks are in
Function to call for each interface springback
An optional extra object/array/string etc that will appended to arguments when calling the function
ReturnsNo return value |
GetAll(Model[Model], property (optional)[string]) [static]DescriptionReturns an array of InterfaceSpringback objects or properties for all of the interface springbacks in a model in PRIMER. If the optional property argument is not given then an array of InterfaceSpringback objects is returned. If the property argument is given, that property value for each interface springback is returned in the array instead of a InterfaceSpringback object |
Model to get interface springbacks from
Name for property to get for all interface springbacks in the model
ReturnsArray of InterfaceSpringback objects or properties Return typeArray |
GetComments()DescriptionExtracts the comments associated to a interface springback. |
No arguments
ReturnsArray of Comment objects (or null if there are no comments associated to the node). Return typeArray |
ExampleTo get the array of comments associated to the interface springback i_s: var comm_array = i_s.GetComments();
|
GetExcludeKeyword(idx[integer])DescriptionReturns the keyword string excluded at given index in Keyword list. Needed only for InterfaceSpringback.EXCLUDE. |
The index in Keyword list you want the Keyword string for. Note that indices start at 0, not 1.
ReturnsA Keyword string at index "idx" from excluded keyword list . Return typeString |
ExampleTo get the 3rd Keyword string in Interface Springback i_s: if (i_s.nexclude >= 3)
{
var keyword = i_s.GetExcludeKeyword(2);
}
|
GetFlagged(Model[Model], flag[Flag], property (optional)[string]) [static]DescriptionReturns an array of InterfaceSpringback objects for all of the flagged interface springbacks in a model in PRIMER If the optional property argument is not given then an array of InterfaceSpringback objects is returned. If the property argument is given, then that property value for each interface springback is returned in the array instead of a InterfaceSpringback object |
Model to get interface springbacks from
Flag set on the interface springbacks that you want to retrieve
Name for property to get for all flagged interface springbacks in the model
ReturnsArray of InterfaceSpringback objects or properties Return typeArray |
GetFromID(Model[Model], number[integer]) [static]DescriptionReturns the InterfaceSpringback object for a interface springback ID. |
Model to find the interface springback in
number of the interface springback you want the InterfaceSpringback object for
ReturnsInterfaceSpringback object (or null if interface springback does not exist). Return typeInterfaceSpringback |
ExampleTo get the InterfaceSpringback object for interface springback 100 in model m var i_s = InterfaceSpringback.GetFromID(m, 100);
|
GetNodalPoint(npt[integer])DescriptionReturns the data for nodal point constrained for *INTERFACE_SPRINGBACK. |
The nodal point you want the data for. Note that nodal points start at 0, not 1.
ReturnsAn array containing the Node id, translational constraint (TC) and rotational constraint (RC) constants. Return typeArray |
ExampleTo get the nodal point data for the 3rd nodal constraint for Interface Springback i_s: if (i_s.nnodes >= 3)
{
var npt_data = i_s.GetNodalPoint(2);
}
|
GetParameter(prop[string])DescriptionChecks if a InterfaceSpringback property is a parameter or not. Note that object properties that are parameters are normally returned as the integer or float parameter values as that is virtually always what the user would want. For this function to work the JavaScript interpreter must use the parameter name instead of the value. This can be done by setting the Options.property_parameter_names option to true before calling the function and then resetting it to false afterwards.. This behaviour can also temporarily be switched by using the InterfaceSpringback.ViewParameters() method and 'method chaining' (see the examples below). |
interface springback property to get parameter for
ReturnsParameter object if property is a parameter, null if not. Return typeParameter |
Keyword()DescriptionReturns the keyword for this Interface Springback (*INTERFACE_SPRINGBACK_xxxx_xxxx) Note that a carriage return is not added. See also InterfaceSpringback.KeywordCards() |
No arguments
Returnsstring containing the keyword. Return typeString |
ExampleTo get the keyword for InterfaceSpringback i_s: var key = i_s.Keyword();
|
KeywordCards()DescriptionReturns the keyword cards for the InterfaceSpringback. Note that a carriage return is not added. See also InterfaceSpringback.Keyword() |
No arguments
Returnsstring containing the cards. Return typeString |
ExampleTo get the cards for InterfaceSpringback i_s: var cards = i_s.KeywordCards();
|
Last(Model[Model]) [static]DescriptionReturns the last interface springback in the model. |
Model to get last interface springback in
ReturnsInterfaceSpringback object (or null if there are no interface springbacks in the model). Return typeInterfaceSpringback |
ExampleTo get the last interface springback in model m: var i_s = InterfaceSpringback.Last(m);
|
Next()DescriptionReturns the next interface springback in the model. |
No arguments
ReturnsInterfaceSpringback object (or null if there are no more interface springbacks in the model). Return typeInterfaceSpringback |
ExampleTo get the interface springback in model m after interface springback i_s: var i_s = i_s.Next();
|
Previous()DescriptionReturns the previous interface springback in the model. |
No arguments
ReturnsInterfaceSpringback object (or null if there are no more interface springbacks in the model). Return typeInterfaceSpringback |
ExampleTo get the interface springback in model m before interface springback i_s: var i_s = i_s.Previous();
|
RemoveExcludeKeyword(idx[integer])DescriptionRemoves the keyword string excluded at given index in Keyword list. Needed only for InterfaceSpringback.EXCLUDE |
The index in Keyword list you removed. Note that indices start at 0, not 1.
ReturnsNo return value. |
ExampleTo remove the 3rd Keyword string in Interface Springback i_s: if (i_s.nexclude >= 3)
{
var keyword = i_s.RemoveExcludeKeyword(2);
}
|
RemoveNodalPoint(npt[integer])DescriptionRemoves the nodal point for constrained node for *INTERFACE_SPRINGBACK. |
The nodal point you want to remove. Note that nodal points start at 0, not 1.
ReturnsNo return value. |
ExampleTo remove the nodal point for the 3rd node for InterfaceSpringback i_s: i_s.RemoveNodalPoint(2);
|
Select(flag[Flag], prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean]) [static]DescriptionAllows the user to select interface springbacks using standard PRIMER object menus. |
Flag to use when selecting interface springbacks
Text to display as a prompt to the user
If the argument is a Model then only interface springbacks from that model can be selected. If the argument is a Flag then only interface springbacks that are flagged with limit can be selected (limit should be different to flag). If omitted, or null, any interface springbacks can be selected. from any model.
If selection is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the selection will be modal.
ReturnsNumber of interface springbacks selected or null if menu cancelled Return typeNumber |
SetExcludeKeyword(keystr[string], index (optional)[integer])DescriptionSets a keyword string to be excluded. Adds a new keyword if index value is not given, else replaces the keyword string at given index. Note that indices start at 0, not 1. Needed only for InterfaceSpringback.EXCLUDE |
The keyword string you want to be excluded.
The index at which keyword string should be set.
ReturnsNo return value. |
ExampleTo set a keyword string at index 3 to be excluded for InterfaceSpringback i_s:
if(i_s.nexclude >= 4)
i_s.SetExcludeKeyword("ELEMENT_SHELL", 3);
|
SetFlag(flag[Flag])DescriptionSets a flag on the interface springback. |
Flag to set on the interface springback
ReturnsNo return value |
ExampleTo set flag f for interface springback i_s: i_s.SetFlag(f);
|
SetNodalPoint(npt[integer], nid[integer], tc[real], rc[real])DescriptionSets the nodal point data for a node in *INTERFACE_SPRINGBACK. |
The nodal point you want to set the data for. Note that nodal points start at 0, not 1.
Node ID for the nodal point.
Translational constraint constant of the nodal point. (0-7)
Rotational constraint constant of the nodal point. (0-7)
ReturnsNo return value. |
ExampleTo set the nodal data for the 3rd nodal point to node 1, tc 2 and rc 4, for InterfaceSpringback i_s: i_s.SetNodalPoint(2, 1, 2, 4);
|
Total(Model[Model], exists (optional)[boolean]) [static]DescriptionReturns the total number of interface springbacks in the model. |
Model to get total for
true if only existing interface springbacks should be counted. If false or omitted referenced but undefined interface springbacks will also be included in the total.
Returnsnumber of interface springbacks Return typeNumber |
ExampleTo get the total number of interface springbacks in model m: var total = InterfaceSpringback.Total(m);
|
UnflagAll(Model[Model], flag[Flag]) [static]DescriptionUnsets a defined flag on all of the interface springbacks in the model. |
Model that the defined flag for all interface springbacks will be unset in
Flag to unset on the interface springbacks
ReturnsNo return value |
ExampleTo unset the flag f on all the interface springbacks in model m: InterfaceSpringback.UnflagAll(m, f);
|
No arguments
ReturnsInterfaceSpringback object. Return typeInterfaceSpringback |
ExampleTo check if InterfaceSpringback property i_s.example is a parameter by using the InterfaceSpringback.GetParameter() method: if (i_s.ViewParameters().GetParameter(i_s.example) ) do_something...
|
Warning(message[string], details (optional)[string])DescriptionAdds a warning for interface springback. For more details on checking see the Check class. |
The warning message to give
An optional detailed warning message
ReturnsNo return value |
ExampleTo add a warning message "My custom warning" for interface springback i_s: i_s.Warning("My custom warning");
|
Xrefs()DescriptionReturns the cross references for this interface springback. |
No arguments
ReturnsXrefs object. Return typeXrefs |
ExampleTo get the cross references for interface springback i_s: var xrefs = i_s.Xrefs();
|
toString()DescriptionCreates a string containing the InterfaceSpringback data in keyword format. Note that this contains the keyword header and the keyword cards. See also InterfaceSpringback.Keyword() and InterfaceSpringback.KeywordCards(). |
No arguments
Returnsstring Return typeString |
ExampleTo get data for InterfaceSpringback i_s in keyword format var i_str = i_s.toString();
|