The FreqSSD class gives you access to *FREQUENCY_DOMAIN_SSD keyword 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 |
| c | real | Sound speed of the fluid (for option FreqSSD.ERP only). |
| dampf | real | Modal damping coefficient. |
| dmpflg | integer | Damping flag. |
| dmpmas | real | Mass proportional damping constant in Rayleigh damping. |
| dmpstf | real | Stiffness proportional damping constant in Rayleigh damping. |
| erpref | real | ERP reference value (for option FreqSSD.ERP only). |
| erprlf | real | ERP radiation loss factor (for option FreqSSD.ERP only). |
| exists (read only) | logical | true if *FREQUENCY_DOMAIN_SSD exists, false if referred to but not defined. |
| fnmax | real | The maximum natural frequency in modal superposition method (optional). |
| fnmin | real | The minimum natural frequency in modal superposition method (optional). |
| include | integer | The Include file number that the *FREQUENCY_DOMAIN_SSD is in. |
| istress | integer | Stress computation flag (for option FreqSSD.DIRECT only). |
| label (read only) | integer | The label the *FREQUENCY_DOMAIN_SSD has in PRIMER. |
| lcdam | integer | Load Curve ID defining mode dependent modal damping coefficient. |
| lcflag | integer | Load curve definition flag. |
| lcftg | integer | Load Curve ID defining duration of excitation for each frequency (for option FreqSSD.FATIGUE only). |
| lctyp | integer | Type of load curve defining modal damping coefficient. |
| mdmax | integer | The last mode in modal superposition method (optional). |
| mdmin | integer | The first mode in modal superposition method (optional). |
| memory | integer | Memory flag. |
| model (read only) | integer | The Model number that the *FREQUENCY_DOMAIN_SSD is in. |
| nerp | integer | Number of ERP panels. |
| notyp | integer | Type of NOUT. |
| nout | integer | Part, part set, segment set, or node set ID for response output. |
| nova | integer | Response output type. |
| option | constant | The *FREQUENCY_DOMAIN_SSD option. Can be FreqSSD.DIRECT, FreqSSD.DIRECT_FD, FreqSSD.FATIGUE, FreqSSD.FRF, FreqSSD.ERP or FreqSSD.SUBCASE. |
| radeff | integer | Radiation efficiency computation flag (for option FreqSSD.ERP only). |
| relatv | integer | Flag for displacement, velocity and acceleration results. |
| restdp | integer | Restart option. |
| restmd | integer | Restart option. |
| ro | real | Fluid density (for option FreqSSD.ERP only). |
| strtyp | integer | Stress used in fatigue analysis. |
Detailed DescriptionThe FreqSSD class allows you to create, modify, edit and manipulate *FREQUENCY_DOMAIN_SSD. See the documentation below for more details. |
Constructornew FreqSSD(Model[Model], option[constant])DescriptionCreate a new FreqSSD object. |
Model that *FREQUENCY_DOMAIN_SSD will be created in.
Specify the type of *FREQUENCY_DOMAIN_SSD. Can be FreqSSD.DIRECT, FreqSSD.DIRECT_FD, FreqSSD.FATIGUE, FreqSSD.FRF, FreqSSD.ERP or FreqSSD.SUBCASE.
ReturnsFreqSSD object Return typeFreqSSD |
ExampleTo create a new *FREQUENCY_DOMAIN_SSD in model m, of type FATIGUE var f = new FreqSSD(m, FreqSSD.FATIGUE);
|
Details of functionsAddLoadData()DescriptionAllows user to add a new load card in *FREQUENCY_DOMAIN_SSD. This method is only applicable when option is not FreqSSD.SUBCASE. The new card has uninitialised fields and should be updated by FreqSSD.SetLoadData(). |
No arguments
ReturnsIndex of the new load Return typeinteger |
ExampleTo add a new load data card in *FREQUENCY_DOMAIN_SSD f: f.AddLoadData();
|
AddSubcaseData()DescriptionAllows user to add new subcase cards in *FREQUENCY_DOMAIN_SSD. This method is only applicable when option is FreqSSD.SUBCASE. The new cards have uninitialised fields and should be updated by FreqSSD.SetSubcaseData(). |
No arguments
ReturnsIndex of the new subcase Return typeinteger |
ExampleTo add a new load data card in *FREQUENCY_DOMAIN_SSD f: f.AddSubcaseData();
|
AssociateComment(Comment[Comment])DescriptionAssociates a comment with a *FREQUENCY_DOMAIN_SSD. |
Comment that will be attached to the *FREQUENCY_DOMAIN_SSD
ReturnsNo return value |
ExampleTo associate comment c to the *FREQUENCY_DOMAIN_SSD f: f.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 *FREQUENCY_DOMAIN_SSD f: f.Browse();
|
ClearFlag(flag[Flag])DescriptionClears a flag on the *FREQUENCY_DOMAIN_SSD. |
Flag to clear on the *FREQUENCY_DOMAIN_SSD
ReturnsNo return value |
ExampleTo clear flag f for *FREQUENCY_DOMAIN_SSD f: f.ClearFlag(f);
|
Copy(range (optional)[boolean])DescriptionCopies the *FREQUENCY_DOMAIN_SSD. The target include of the copied *FREQUENCY_DOMAIN_SSD 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().
ReturnsFreqSSD object Return typeFreqSSD |
ExampleTo copy *FREQUENCY_DOMAIN_SSD f into *FREQUENCY_DOMAIN_SSD z: var z = f.Copy();
|
Create(Model[Model], modal (optional)[boolean]) [static]DescriptionStarts an interactive editing panel to create a *FREQUENCY_DOMAIN_SSD |
Model that the *FREQUENCY_DOMAIN_SSD 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.
ReturnsFreqSSD object (or null if not made). Return typeFreqSSD |
ExampleTo start creating a *FREQUENCY_DOMAIN_SSD in model m: var f = FreqSSD.Create(m);
|
DetachComment(Comment[Comment])DescriptionDetaches a comment from a *FREQUENCY_DOMAIN_SSD. |
Comment that will be detached from the *FREQUENCY_DOMAIN_SSD
ReturnsNo return value |
ExampleTo detach comment c from the *FREQUENCY_DOMAIN_SSD f: f.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 *FREQUENCY_DOMAIN_SSD f: f.Edit();
|
Error(message[string], details (optional)[string])DescriptionAdds an error for *FREQUENCY_DOMAIN_SSD. 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 *FREQUENCY_DOMAIN_SSD f: f.Error("My custom error");
|
First(Model[Model]) [static]DescriptionReturns the first *FREQUENCY_DOMAIN_SSD in the model. |
Model to get first *FREQUENCY_DOMAIN_SSD in
ReturnsFreqSSD object (or null if there are no *FREQUENCY_DOMAIN_SSDs in the model). Return typeFreqSSD |
ExampleTo get the first *FREQUENCY_DOMAIN_SSD in model m: var f = FreqSSD.First(m);
|
FlagAll(Model[Model], flag[Flag]) [static]DescriptionFlags all of the *FREQUENCY_DOMAIN_SSDs in the model with a defined flag. |
Model that all *FREQUENCY_DOMAIN_SSDs will be flagged in
Flag to set on the *FREQUENCY_DOMAIN_SSDs
ReturnsNo return value |
ExampleTo flag all of the *FREQUENCY_DOMAIN_SSDs with flag f in model m: FreqSSD.FlagAll(m, f);
|
Flagged(flag[Flag])DescriptionChecks if the *FREQUENCY_DOMAIN_SSD is flagged or not. |
Flag to test on the *FREQUENCY_DOMAIN_SSD
Returnstrue if flagged, false if not. Return typeBoolean |
ExampleTo check if *FREQUENCY_DOMAIN_SSD f has flag f set on it: if (f.Flagged(f) ) do_something...
|
ForEach(Model[Model], func[function], extra (optional)[any]) [static]DescriptionCalls a function for each *FREQUENCY_DOMAIN_SSD in the model. |
Model that all *FREQUENCY_DOMAIN_SSDs are in
Function to call for each *FREQUENCY_DOMAIN_SSD
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 FreqSSD objects or properties for all of the *FREQUENCY_DOMAIN_SSDs in a model in PRIMER. If the optional property argument is not given then an array of FreqSSD objects is returned. If the property argument is given, that property value for each *FREQUENCY_DOMAIN_SSD is returned in the array instead of a FreqSSD object |
Model to get *FREQUENCY_DOMAIN_SSDs from
Name for property to get for all *FREQUENCY_DOMAIN_SSDs in the model
ReturnsArray of FreqSSD objects or properties Return typeArray |
GetComments()DescriptionExtracts the comments associated to a *FREQUENCY_DOMAIN_SSD. |
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 *FREQUENCY_DOMAIN_SSD f: var comm_array = f.GetComments();
|
GetErpData(index[integer])DescriptionReturns the ERP data for a specific ERP part as an array. For each ERP part there will be 2 values. There are nerp ERP parts. This method is only applicable when option is FreqSSD.ERP. |
Index you want the ERP data for. Note that indices start at 0.
ReturnsAn array containing the ERP data (values: pid[integer], ptyp[integer]). The array length will be 2. Return typeNumber |
ExampleTo get the data for the 3rd ERP part for *FREQUENCY_DOMAIN_SSD f: var edata = f.GetErpData(2);
|
GetFlagged(Model[Model], flag[Flag], property (optional)[string]) [static]DescriptionReturns an array of FreqSSD objects for all of the flagged *FREQUENCY_DOMAIN_SSDs in a model in PRIMER If the optional property argument is not given then an array of FreqSSD objects is returned. If the property argument is given, then that property value for each *FREQUENCY_DOMAIN_SSD is returned in the array instead of a FreqSSD object |
Model to get *FREQUENCY_DOMAIN_SSDs from
Flag set on the *FREQUENCY_DOMAIN_SSDs that you want to retrieve
Name for property to get for all flagged *FREQUENCY_DOMAIN_SSDs in the model
ReturnsArray of FreqSSD objects or properties Return typeArray |
GetFromID(Model[Model], number[integer]) [static]DescriptionReturns the FreqSSD object for a *FREQUENCY_DOMAIN_SSD ID. |
Model to find the *FREQUENCY_DOMAIN_SSD in
number of the *FREQUENCY_DOMAIN_SSD you want the FreqSSD object for
ReturnsFreqSSD object (or null if *FREQUENCY_DOMAIN_SSD does not exist). Return typeFreqSSD |
ExampleTo get the FreqSSD object for *FREQUENCY_DOMAIN_SSD 100 in model m var f = FreqSSD.GetFromID(m, 100);
|
GetLoadData(index[integer])DescriptionReturns the data for a specific excitation load as an array. For each load there will be 8 values. There can be as many loads as needed. This method is only applicable when option is not FreqSSD.SUBCASE. |
Index you want the load data for. Note that indices start at 0.
ExampleTo get the data for the 4th load for *FREQUENCY_DOMAIN_SSD f: var ldata = f.GetLoadData(3);
|
GetParameter(prop[string])DescriptionChecks if a FreqSSD 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 FreqSSD.ViewParameters() method and 'method chaining' (see the examples below). |
*FREQUENCY_DOMAIN_SSD property to get parameter for
ReturnsParameter object if property is a parameter, null if not. Return typeParameter |
GetSubcaseData(index[integer])DescriptionReturns the data for a specific subcase as an array. For each subcase there will be 3 + 8 x nload values. There can be as many subcases as needed. This method is only applicable when option is FreqSSD.SUBCASE. |
Index you want the subcase data for. Note that indices start at 0.
ExampleTo get the data for the 2nd subcase for *FREQUENCY_DOMAIN_SSD f: var sdata = f.GetSubcaseData(1);
|
Keyword()DescriptionReturns the keyword for this *FREQUENCY_DOMAIN_SSD. Note that a carriage return is not added. See also FreqSSD.KeywordCards() |
No arguments
Returnsstring containing the keyword. Return typeString |
ExampleTo get the keyword for *FREQUENCY_DOMAIN_SSD f: var key = f.Keyword();
|
KeywordCards()DescriptionReturns the keyword cards for the *FREQUENCY_DOMAIN_SSD. Note that a carriage return is not added. See also FreqSSD.Keyword() |
No arguments
Returnsstring containing the cards. Return typeString |
ExampleTo get the cards for *FREQUENCY_DOMAIN_SSD f: var cards = f.KeywordCards();
|
Last(Model[Model]) [static]DescriptionReturns the last *FREQUENCY_DOMAIN_SSD in the model. |
Model to get last *FREQUENCY_DOMAIN_SSD in
ReturnsFreqSSD object (or null if there are no *FREQUENCY_DOMAIN_SSDs in the model). Return typeFreqSSD |
ExampleTo get the last *FREQUENCY_DOMAIN_SSD in model m: var f = FreqSSD.Last(m);
|
Next()DescriptionReturns the next *FREQUENCY_DOMAIN_SSD in the model. |
No arguments
ReturnsFreqSSD object (or null if there are no more *FREQUENCY_DOMAIN_SSDs in the model). Return typeFreqSSD |
ExampleTo get the *FREQUENCY_DOMAIN_SSD in model m after *FREQUENCY_DOMAIN_SSD f: var f = f.Next();
|
Previous()DescriptionReturns the previous *FREQUENCY_DOMAIN_SSD in the model. |
No arguments
ReturnsFreqSSD object (or null if there are no more *FREQUENCY_DOMAIN_SSDs in the model). Return typeFreqSSD |
ExampleTo get the *FREQUENCY_DOMAIN_SSD in model m before *FREQUENCY_DOMAIN_SSD f: var f = f.Previous();
|
RemoveLoadData(index[integer])DescriptionAllows user to remove a specified load card in *FREQUENCY_DOMAIN_SSD. This method is only applicable when option is not FreqSSD.SUBCASE. |
Index of the load card you want to remove. Note that indices start at 0.
ReturnsNo return value |
ExampleTo remove first load card in *FREQUENCY_DOMAIN_SSD f: f.RemoveLoadData(0);
|
RemoveSubcaseData(index[integer])DescriptionAllows user to remove cards for a specified subcase in *FREQUENCY_DOMAIN_SSD. This method is only applicable when option is FreqSSD.SUBCASE. |
Index of the subcase you want to remove cards for. Note that indices start at 0.
ReturnsNo return value |
ExampleTo remove cards corresponding to the second subcase in *FREQUENCY_DOMAIN_SSD f: f.RemoveSubcaseData(1);
|
Select(flag[Flag], prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean]) [static]DescriptionAllows the user to select *FREQUENCY_DOMAIN_SSDs using standard PRIMER object menus. |
Flag to use when selecting *FREQUENCY_DOMAIN_SSDs
Text to display as a prompt to the user
If the argument is a Model then only *FREQUENCY_DOMAIN_SSDs from that model can be selected. If the argument is a Flag then only *FREQUENCY_DOMAIN_SSDs that are flagged with limit can be selected (limit should be different to flag). If omitted, or null, any *FREQUENCY_DOMAIN_SSDs 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 *FREQUENCY_DOMAIN_SSDs selected or null if menu cancelled Return typeNumber |
SetErpData(index[integer], data[Array of data])DescriptionSet the data for a specific ERP part. For each ERP part there will be 2 values. There are nerp ERP parts. This method is only applicable when option is FreqSSD.ERP. |
Index you want to set ERP data for. Note that indices start at 0.
An array containing the ERP data (values: pid[integer], ptyp[integer]). The array length should be 2.
ReturnsNo return value. |
ExampleTo set the 3rd ERP part data for *FREQUENCY_DOMAIN_SSD f to the values in array edata: f.SetErpData(2, edata);
|
SetFlag(flag[Flag])DescriptionSets a flag on the *FREQUENCY_DOMAIN_SSD. |
Flag to set on the *FREQUENCY_DOMAIN_SSD
ReturnsNo return value |
ExampleTo set flag f for *FREQUENCY_DOMAIN_SSD f: f.SetFlag(f);
|
SetLoadData(index[integer], data[Array of data])DescriptionSet the data for a specific excitation load. For each load there will be 8 values. There can be as many loads as needed. This method is only applicable when option is not FreqSSD.SUBCASE. |
Index you want to set load data for. Note that indices start at 0.
An array containing the load data (values: nid[integer], ntyp[integer], dof[integer], vad[integer], lc1[integer], lc2[integer], sf[real], vid[integer]).
The array length should be 8.
ReturnsNo return value. |
ExampleTo set the 4th load data for *FREQUENCY_DOMAIN_SSD f to the values in array ldata: f.SetLoadData(3, ldata);
|
SetSubcaseData(index[integer], caseid[string], title[string], nload[integer], data[Array of data])DescriptionSet the data for a specific subcase. For each subcase, data will have 8 x nload values. There can be as many subcases as needed. This method is only applicable when option is FreqSSD.SUBCASE. |
Index you want to set subcase data for. Note that indices start at 0.
Identification string to be used as the case ID (must include at least one letter).
A description of the current loading case (can be blank).
Number of loads for this loading case.
An array containing the subcase load data (values: nid[integer], ntyp[integer], dof[integer], vad[integer], lc1[integer], lc2[integer], sf[real], vid[integer], ...)
Where values nid to vid are repeated nload times in the array. The array length should be 8 x nload.
ReturnsNo return value. |
ExampleTo set the 2nd subcase data for *FREQUENCY_DOMAIN_SSD f to have caseid "ID2", no title, 2 load cards and load data of ldata: f.SetSubcaseData(1, "ID2", "", 2, ldata);
|
Total(Model[Model], exists (optional)[boolean]) [static]DescriptionReturns the total number of *FREQUENCY_DOMAIN_SSDs in the model. |
Model to get total for
true if only existing *FREQUENCY_DOMAIN_SSDs should be counted. If false or omitted referenced but undefined *FREQUENCY_DOMAIN_SSDs will also be included in the total.
Returnsnumber of *FREQUENCY_DOMAIN_SSDs Return typeNumber |
ExampleTo get the total number of *FREQUENCY_DOMAIN_SSDs in model m: var total = FreqSSD.Total(m);
|
UnflagAll(Model[Model], flag[Flag]) [static]DescriptionUnsets a defined flag on all of the *FREQUENCY_DOMAIN_SSDs in the model. |
Model that the defined flag for all *FREQUENCY_DOMAIN_SSDs will be unset in
Flag to unset on the *FREQUENCY_DOMAIN_SSDs
ReturnsNo return value |
ExampleTo unset the flag f on all the *FREQUENCY_DOMAIN_SSDs in model m: FreqSSD.UnflagAll(m, f);
|
No arguments
ReturnsFreqSSD object. Return typeFreqSSD |
ExampleTo check if FreqSSD property f.example is a parameter by using the FreqSSD.GetParameter() method: if (f.ViewParameters().GetParameter(f.example) ) do_something...
|
Warning(message[string], details (optional)[string])DescriptionAdds a warning for *FREQUENCY_DOMAIN_SSD. 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 *FREQUENCY_DOMAIN_SSD f: f.Warning("My custom warning");
|
Xrefs()DescriptionReturns the cross references for this *FREQUENCY_DOMAIN_SSD. |
No arguments
ReturnsXrefs object. Return typeXrefs |
ExampleTo get the cross references for *FREQUENCY_DOMAIN_SSD f: var xrefs = f.Xrefs();
|
toString()DescriptionCreates a string containing the *FREQUENCY_DOMAIN_SSD data in keyword format. Note that this contains the keyword header and the keyword cards. See also FreqSSD.Keyword() and FreqSSD.KeywordCards(). |
No arguments
Returnsstring Return typeString |
ExampleTo get data for *FREQUENCY_DOMAIN_SSD f in keyword format var s = f.toString();
|