The FreqVibration class gives you access to *FREQUENCY_DOMAIN_RANDOM_VIBRATION 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 | Description |
| FreqVibration.FATIGUE | FreqVibration option for *FREQUENCY_DOMAIN_RANDOM_VIBRATION_FATIGUE. |
| FreqVibration.VIBRATION | FreqVibration option for *FREQUENCY_DOMAIN_RANDOM_VIBRATION. |
| Name | Type | Description |
| dampf | real | Modal damping coefficient. |
| dmpmas | real | Mass proportional damping constant in Rayleigh damping. |
| dmpstf | real | Stiffness proportional damping constant in Rayleigh damping. |
| dmptyp | integer | Tytpe of Damping. |
| exists (read only) | logical | true if *FREQUENCY_DOMAIN_RANDOM_VIBRATION 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). |
| icoarse | integer | Option for PSD curve coarsening. |
| include | integer | The Include file number that the *FREQUENCY_DOMAIN_RANDOM_VIBRATION is in. |
| inftg | integer | Flag for including initial damage ratio. |
| ipanelu | integer | Number of strips in U-direction (used only for vaflag = 5,6,7). |
| ipanelv | integer | Number of strips in V-direction (used only for vaflag = 5,6,7). |
| label (read only) | integer | The label the *FREQUENCY_DOMAIN_RANDOM_VIBRATION has in PRIMER. |
| lcdam | integer | Load Curve ID defining mode dependent modal damping coefficient. |
| lctyp | integer | Type of load curve defining modal damping coefficient. |
| ldflag | integer | Type of loading curves. |
| ldtyp | Integer | Excitation load type. |
| mdmax | integer | The last mode in modal superposition method (optional). |
| mdmin | integer | The first mode in modal superposition method (optional). |
| method | integer | Method for modal response analysis. |
| mftg | integer | Method for random fatigue analysis. |
| model (read only) | integer | The Model number that the *FREQUENCY_DOMAIN_RANDOM_VIBRATION is in. |
| napsd | integer | Number of auto PSD load definition. |
| ncpsd | integer | Number of cross PSD load definition. |
| nftg | integer | Field specifying the number of S-N curves to be defined. |
| option | constant | The *FREQUENCY_DOMAIN_RANDOM_VIBRATION option. Can be FreqVibration.VIBRATION, FreqVibration.FATIGUE. |
| pref | real | Reference pressure |
| restrm | integer | Restart option. |
| restrt | integer | Restart option. |
| strsf | real | Stress scale factor to accommodate different ordinates in S-N curve (not used if nftg = -999). |
| strtyp | integer | Stress type of S-N curve in fatigue analysis. |
| tcoarse | real | Tolerance for slope change percentage for removing intermediate points from PSD curve for icoarse = 2. |
| temper | real | Temperature. |
| texpos | real | Exposure time. |
| umlt | real | Multiplier for converting g to [length unit]/[time unit]^2 (used only for UNIT = -1). |
| unit | integer | Flag for acceleration unit conversion. |
| vaflag | integer | Loading type. |
| vapsd | integer | Flag for PSD output. |
| varms | integer | Flag for RMS output. |
Detailed DescriptionThe FreqVibration class allows you to create, modify, edit and manipulate *FREQUENCY_DOMAIN_RANDOM_VIBRATION. See the documentation below for more details. |
Constructornew FreqVibration(Model[Model], option[constant])DescriptionCreate a new FreqVibration object. |
Model that *FREQUENCY_DOMAIN_RANDOM_VIBRATION will be created in.
Specify the type of *FREQUENCY_DOMAIN_RANDOM_VIBRATION. Can be FreqVibration.VIBRATION, FreqVibration.FATIGUE.
ReturnsFreqVibration object Return typeFreqVibration |
ExampleTo create a new *FREQUENCY_DOMAIN_RANDOM_VIBRATION in model m, of type FATIGUE var f = new FreqVibration(m, FreqVibration.FATIGUE);
|
Details of functionsAddAutoPsdLoadData()DescriptionAllows user to add a new Auto PSD load card in *FREQUENCY_DOMAIN_RANDOM_VIBRATION. The new card has uninitialised fields and should be updated by FreqVibration.SetAutoPsdLoadData(). |
No arguments
ReturnsIndex of the new auto PSD load Return typeinteger |
ExampleTo add a new auto PSD load data card in *FREQUENCY_DOMAIN_RANDOM_VIBRATION f: f.AddAutoPsdLoadData();
|
AddCrossPsdLoadData()DescriptionAllows user to add a new Cross PSD load card in *FREQUENCY_DOMAIN_RANDOM_VIBRATION. The new card has uninitialised fields and should be updated by FreqVibration.SetCrossPsdLoadData(). |
No arguments
ReturnsIndex of the new cross PSD load Return typeinteger |
ExampleTo add a new cross PSD load data card in *FREQUENCY_DOMAIN_RANDOM_VIBRATION f: f.AddCrossPsdLoadData();
|
AddInftgData()DescriptionAllows user to add new Initial Damage cards in *FREQUENCY_DOMAIN_RANDOM_VIBRATION. This method is only applicable when option is FreqVibration.FATIGUE. The new cards have uninitialised fields and should be updated by FreqVibration.SetInftgData(). |
No arguments
ReturnsIndex of the new initial damage card Return typeinteger |
ExampleTo add a new initial damage card in *FREQUENCY_DOMAIN_RANDOM_VIBRATION f: f.AddInftgData();
|
AddSNCurveData()DescriptionAllows user to add new S-N curve cards in *FREQUENCY_DOMAIN_RANDOM_VIBRATION. This method is only applicable when option is FreqVibration.FATIGUE. The new cards have uninitialised fields and should be updated by FreqVibration.SetSNCurveData(). |
No arguments
ReturnsIndex of the new S-N curve card Return typeinteger |
ExampleTo add a new S-N curve card in *FREQUENCY_DOMAIN_RANDOM_VIBRATION f: f.AddSNCurveData();
|
AssociateComment(Comment[Comment])DescriptionAssociates a comment with a *FREQUENCY_DOMAIN_RANDOM_VIBRATION. |
Comment that will be attached to the *FREQUENCY_DOMAIN_RANDOM_VIBRATION
ReturnsNo return value |
ExampleTo associate comment c to the *FREQUENCY_DOMAIN_RANDOM_VIBRATION 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_RANDOM_VIBRATION f: f.Browse();
|
ClearFlag(flag[Flag])DescriptionClears a flag on the *FREQUENCY_DOMAIN_RANDOM_VIBRATION. |
Flag to clear on the *FREQUENCY_DOMAIN_RANDOM_VIBRATION
ReturnsNo return value |
ExampleTo clear flag f for *FREQUENCY_DOMAIN_RANDOM_VIBRATION f: f.ClearFlag(f);
|
Copy(range (optional)[boolean])DescriptionCopies the *FREQUENCY_DOMAIN_RANDOM_VIBRATION. The target include of the copied *FREQUENCY_DOMAIN_RANDOM_VIBRATION 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().
ReturnsFreqVibration object Return typeFreqVibration |
ExampleTo copy *FREQUENCY_DOMAIN_RANDOM_VIBRATION f into *FREQUENCY_DOMAIN_RANDOM_VIBRATION z: var z = f.Copy();
|
Create(Model[Model], modal (optional)[boolean]) [static]DescriptionStarts an interactive editing panel to create a *FREQUENCY_DOMAIN_RANDOM_VIBRATION |
Model that the *FREQUENCY_DOMAIN_RANDOM_VIBRATION 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.
ReturnsFreqVibration object (or null if not made). Return typeFreqVibration |
ExampleTo start creating a *FREQUENCY_DOMAIN_RANDOM_VIBRATION in model m: var f = FreqVibration.Create(m);
|
DetachComment(Comment[Comment])DescriptionDetaches a comment from a *FREQUENCY_DOMAIN_RANDOM_VIBRATION. |
Comment that will be detached from the *FREQUENCY_DOMAIN_RANDOM_VIBRATION
ReturnsNo return value |
ExampleTo detach comment c from the *FREQUENCY_DOMAIN_RANDOM_VIBRATION 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_RANDOM_VIBRATION f: f.Edit();
|
Error(message[string], details (optional)[string])DescriptionAdds an error for *FREQUENCY_DOMAIN_RANDOM_VIBRATION. 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_RANDOM_VIBRATION f: f.Error("My custom error");
|
First(Model[Model]) [static]DescriptionReturns the first *FREQUENCY_DOMAIN_RANDOM_VIBRATION in the model. |
Model to get first *FREQUENCY_DOMAIN_RANDOM_VIBRATION in
ReturnsFreqVibration object (or null if there are no *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs in the model). Return typeFreqVibration |
ExampleTo get the first *FREQUENCY_DOMAIN_RANDOM_VIBRATION in model m: var f = FreqVibration.First(m);
|
FlagAll(Model[Model], flag[Flag]) [static]DescriptionFlags all of the *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs in the model with a defined flag. |
Model that all *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs will be flagged in
Flag to set on the *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs
ReturnsNo return value |
ExampleTo flag all of the *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs with flag f in model m: FreqVibration.FlagAll(m, f);
|
Flagged(flag[Flag])DescriptionChecks if the *FREQUENCY_DOMAIN_RANDOM_VIBRATION is flagged or not. |
Flag to test on the *FREQUENCY_DOMAIN_RANDOM_VIBRATION
Returnstrue if flagged, false if not. Return typeBoolean |
ExampleTo check if *FREQUENCY_DOMAIN_RANDOM_VIBRATION 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_RANDOM_VIBRATION in the model. |
Model that all *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs are in
Function to call for each *FREQUENCY_DOMAIN_RANDOM_VIBRATION
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 FreqVibration objects or properties for all of the *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs in a model in PRIMER. If the optional property argument is not given then an array of FreqVibration objects is returned. If the property argument is given, that property value for each *FREQUENCY_DOMAIN_RANDOM_VIBRATION is returned in the array instead of a FreqVibration object |
Model to get *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs from
Name for property to get for all *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs in the model
ReturnsArray of FreqVibration objects or properties Return typeArray |
GetAutoPsdLoadData(index[integer]) [static]DescriptionReturns the Auto PSD load data for a specific Auto PSD Load definition as an array. For each Auto PSD load definition there will be 8 values. There are napsd Auto PSD load definitions. |
Index you want the Auto PSD load data for. Note that indices start at 0.
ExampleTo get the data for the 3rd Auto PSD load data for *FREQUENCY_DOMAIN_RANDOM_VIBRATION f: var apsd_data = f.GetAutoPsdLoadData(2);
|
GetComments()DescriptionExtracts the comments associated to a *FREQUENCY_DOMAIN_RANDOM_VIBRATION. |
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_RANDOM_VIBRATION f: var comm_array = f.GetComments();
|
GetCrossPsdLoadData(index[integer]) [static]DescriptionReturns the Cross PSD load data for a specific Cross PSD Load definition as an array. For each Cross PSD load definition there will be 5 values. There are ncpsd Cross PSD load definitions. |
Index you want the Cross PSD load data for. Note that indices start at 0.
ReturnsAn array containing the Cross PSD load data (values: load_i[integer], load_j[integer], lctyp2[integer], ldpsd1[integer], ldpsd2[integer]). The array length will be 5. Return typeNumber |
ExampleTo get the data for the 3rd Cross PSD load data for *FREQUENCY_DOMAIN_RANDOM_VIBRATION f: var cpsd_data = f.GetCrossPsdLoadData(2);
|
GetFlagged(Model[Model], flag[Flag], property (optional)[string]) [static]DescriptionReturns an array of FreqVibration objects for all of the flagged *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs in a model in PRIMER If the optional property argument is not given then an array of FreqVibration objects is returned. If the property argument is given, then that property value for each *FREQUENCY_DOMAIN_RANDOM_VIBRATION is returned in the array instead of a FreqVibration object |
Model to get *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs from
Flag set on the *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs that you want to retrieve
Name for property to get for all flagged *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs in the model
ReturnsArray of FreqVibration objects or properties Return typeArray |
GetFromID(Model[Model], number[integer]) [static]DescriptionReturns the FreqVibration object for a *FREQUENCY_DOMAIN_RANDOM_VIBRATION ID. |
Model to find the *FREQUENCY_DOMAIN_RANDOM_VIBRATION in
number of the *FREQUENCY_DOMAIN_RANDOM_VIBRATION you want the FreqVibration object for
ReturnsFreqVibration object (or null if *FREQUENCY_DOMAIN_RANDOM_VIBRATION does not exist). Return typeFreqVibration |
ExampleTo get the FreqVibration object for *FREQUENCY_DOMAIN_RANDOM_VIBRATION 100 in model m var f = FreqVibration.GetFromID(m, 100);
|
GetInftgData(index[integer]) [static]DescriptionReturns the path and filename of a binary database for fatigue information from a specific initial damage card. There are inftg filenames. This method is only applicable when option is FreqVibration.FATIGUE. |
Index of an initial damage card that you want the filename from. Note that indices start at 0.
ReturnsReturn value from an initial damage card (values: filename[string]) Return typeString |
ExampleTo get the filename from the 2nd initial damage card for *FREQUENCY_DOMAIN_RANDOM_VIBRATION f: var fdata = f.GetInftgData(1);
|
GetParameter(prop[string])DescriptionChecks if a FreqVibration 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 FreqVibration.ViewParameters() method and 'method chaining' (see the examples below). |
*FREQUENCY_DOMAIN_RANDOM_VIBRATION property to get parameter for
ReturnsParameter object if property is a parameter, null if not. Return typeParameter |
GetSNCurveData(index[integer]) [static]DescriptionReturns the data of a specific zone for fatigue analysis as an array. For each zone there will be 8 values. There are nftg zone definitions for fatigue analysis. This method is only applicable when option is FreqVibration.FATIGUE. |
Index you want the zone data for. Note that indices start at 0.
ExampleTo get the data for the 4th zone for *FREQUENCY_DOMAIN_RANDOM_VIBRATION f: var sndata = f.GetSNCurveData(3);
|
Keyword()DescriptionReturns the keyword for this *FREQUENCY_DOMAIN_RANDOM_VIBRATION. Note that a carriage return is not added. See also FreqVibration.KeywordCards() |
No arguments
Returnsstring containing the keyword. Return typeString |
ExampleTo get the keyword for *FREQUENCY_DOMAIN_RANDOM_VIBRATION f: var key = f.Keyword();
|
KeywordCards()DescriptionReturns the keyword cards for the *FREQUENCY_DOMAIN_RANDOM_VIBRATION. Note that a carriage return is not added. See also FreqVibration.Keyword() |
No arguments
Returnsstring containing the cards. Return typeString |
ExampleTo get the cards for *FREQUENCY_DOMAIN_RANDOM_VIBRATION f: var cards = f.KeywordCards();
|
Last(Model[Model]) [static]DescriptionReturns the last *FREQUENCY_DOMAIN_RANDOM_VIBRATION in the model. |
Model to get last *FREQUENCY_DOMAIN_RANDOM_VIBRATION in
ReturnsFreqVibration object (or null if there are no *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs in the model). Return typeFreqVibration |
ExampleTo get the last *FREQUENCY_DOMAIN_RANDOM_VIBRATION in model m: var f = FreqVibration.Last(m);
|
Next()DescriptionReturns the next *FREQUENCY_DOMAIN_RANDOM_VIBRATION in the model. |
No arguments
ReturnsFreqVibration object (or null if there are no more *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs in the model). Return typeFreqVibration |
ExampleTo get the *FREQUENCY_DOMAIN_RANDOM_VIBRATION in model m after *FREQUENCY_DOMAIN_RANDOM_VIBRATION f: var f = f.Next();
|
Previous()DescriptionReturns the previous *FREQUENCY_DOMAIN_RANDOM_VIBRATION in the model. |
No arguments
ReturnsFreqVibration object (or null if there are no more *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs in the model). Return typeFreqVibration |
ExampleTo get the *FREQUENCY_DOMAIN_RANDOM_VIBRATION in model m before *FREQUENCY_DOMAIN_RANDOM_VIBRATION f: var f = f.Previous();
|
RemoveAutoPsdLoadData(index[integer])DescriptionAllows user to remove a specified Auto PSD load card in *FREQUENCY_DOMAIN_RANDOM_VIBRATION. |
Index of the auto PSD load card you want to remove. Note that indices start at 0.
ReturnsNo return value |
ExampleTo remove first load card in *FREQUENCY_DOMAIN_RANDOM_VIBRATION f: f.RemoveAutoPsdLoadData(0);
|
RemoveCrossPsdLoadData(index[integer])DescriptionAllows user to remove a specified Cross PSD load card in *FREQUENCY_DOMAIN_RANDOM_VIBRATION. |
Index of the cross PSD load card you want to remove. Note that indices start at 0.
ReturnsNo return value |
ExampleTo remove third load card in *FREQUENCY_DOMAIN_RANDOM_VIBRATION f: f.RemoveCrossPsdLoadData(2);
|
RemoveInftgData(index[integer])DescriptionAllows user to remove a specified Initial Damage card in *FREQUENCY_DOMAIN_RANDOM_VIBRATION. This method is only applicable when option is FreqVibration.FATIGUE. |
Index of the Initrial Damage card you want to remove. Note that indices start at 0.
ReturnsNo return value |
ExampleTo remove second Initial Damage card in *FREQUENCY_DOMAIN_RANDOM_VIBRATION f: f.RemoveInftgData(1);
|
RemoveSNCurveData(index[integer])DescriptionAllows user to remove a specified S-N curve card in *FREQUENCY_DOMAIN_RANDOM_VIBRATION. This method is only applicable when option is FreqVibration.FATIGUE. |
Index of the S-N curve card you want to remove. Note that indices start at 0.
ReturnsNo return value |
ExampleTo remove second S-N curve card in *FREQUENCY_DOMAIN_RANDOM_VIBRATION f: f.RemoveSNCurveData(1);
|
Select(flag[Flag], prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean]) [static]DescriptionAllows the user to select *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs using standard PRIMER object menus. |
Flag to use when selecting *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs
Text to display as a prompt to the user
If the argument is a Model then only *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs from that model can be selected. If the argument is a Flag then only *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs that are flagged with limit can be selected (limit should be different to flag). If omitted, or null, any *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs 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_RANDOM_VIBRATIONs selected or null if menu cancelled Return typeNumber |
SetAutoPsdLoadData(index[integer], data[Array of data]) [static]DescriptionSet the data for a specific Auto PSD load card. For each Auto PSD load card there will be 8 values. There are napsd Auto PSD load cards. |
Index you want to set Auto PSD load data for. Note that indices start at 0.
An array containing the Auto PSD load data (values: sid[integer], stype[integer], dof[integer], ldpsd[integer], ldvel[integer], ldflw[integer], ldspn[integer], cid[integer]). The array length should be 8.
ReturnsNo return value. |
ExampleTo set the 3rd Auto PSD load data for *FREQUENCY_DOMAIN_RANDOM_VIBRATION f to the values in array adata: f.SetAutoPsdLoadData(2, adata);
|
SetCrossPsdLoadData(index[integer], data[Array of data]) [static]DescriptionSet the data for a specific Cross PSD load card. For each Cross PSD load card there will be 5 values. There are ncpsd Cross PSD load cards. |
Index you want to set Cross PSD load data for. Note that indices start at 0.
An array containing the Cross PSD load data (values: load_i[integer], load_j[integer], lctyp2[integer], ldpsd1[integer], ldpsd2[integer]). The array length should be 5.
ReturnsNo return value. |
ExampleTo set the 4th Cross PSD load data for *FREQUENCY_DOMAIN_RANDOM_VIBRATION f to the values in array cdata: f.SetCrossPsdLoadData(2, cdata);
|
SetFlag(flag[Flag])DescriptionSets a flag on the *FREQUENCY_DOMAIN_RANDOM_VIBRATION. |
Flag to set on the *FREQUENCY_DOMAIN_RANDOM_VIBRATION
ReturnsNo return value |
ExampleTo set flag f for *FREQUENCY_DOMAIN_RANDOM_VIBRATION f: f.SetFlag(f);
|
SetInftgData(index[integer], filename[string]) [static]DescriptionSet the filename data for an existing binary database for fatigue infromation for a specific initial damage card. There are inftg filenames. This method is only applicable when option is FreqVibration.FATIGUE. |
Index of an initial damage card that you want the filename for. Note that indices start at 0.
Path and name of existing binary database fro fatigue information.
ReturnsNo return value. |
ExampleTo set the file name for the 2nd initial damage card of *FREQUENCY_DOMAIN_RANDOM_VIBRATION f to have filename "d3ftg": f.SetInftgData(1, "d3ftg");
|
SetSNCurveData(index[integer], data[Array of data]) [static]DescriptionSet the data for a specific zone for fatigue analysis. For each zone there will be 8 values. There are nftg zone definitions for fatigue analysis. This method is only applicable when option is FreqVibration.FATIGUE. |
Index you want to set the fatigue analysis zone data for. Note that indices start at 0.
An array containing the zone data (values: pid[integer], lcid[integer], ptype[integer], ltype[integer], a[float], b[float], sthres[float], snlimt[integer]). The array length will be 8.
ReturnsNo return value. |
ExampleTo set the data for 4th fatigue analysis zone in *FREQUENCY_DOMAIN_RANDOM_VIBRATION f to the values in array sndata: f.SetSNCurveData(3, sndata);
|
Total(Model[Model], exists (optional)[boolean]) [static]DescriptionReturns the total number of *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs in the model. |
Model to get total for
true if only existing *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs should be counted. If false or omitted referenced but undefined *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs will also be included in the total.
Returnsnumber of *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs Return typeNumber |
ExampleTo get the total number of *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs in model m: var total = FreqVibration.Total(m);
|
UnflagAll(Model[Model], flag[Flag]) [static]DescriptionUnsets a defined flag on all of the *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs in the model. |
Model that the defined flag for all *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs will be unset in
Flag to unset on the *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs
ReturnsNo return value |
ExampleTo unset the flag f on all the *FREQUENCY_DOMAIN_RANDOM_VIBRATIONs in model m: FreqVibration.UnflagAll(m, f);
|
No arguments
ReturnsFreqVibration object. Return typeFreqVibration |
ExampleTo check if FreqVibration property f.example is a parameter by using the FreqVibration.GetParameter() method: if (f.ViewParameters().GetParameter(f.example) ) do_something...
|
Warning(message[string], details (optional)[string])DescriptionAdds a warning for *FREQUENCY_DOMAIN_RANDOM_VIBRATION. 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_RANDOM_VIBRATION f: f.Warning("My custom warning");
|
Xrefs()DescriptionReturns the cross references for this *FREQUENCY_DOMAIN_RANDOM_VIBRATION. |
No arguments
ReturnsXrefs object. Return typeXrefs |
ExampleTo get the cross references for *FREQUENCY_DOMAIN_RANDOM_VIBRATION f: var xrefs = f.Xrefs();
|
toString()DescriptionCreates a string containing the *FREQUENCY_DOMAIN_RANDOM_VIBRATION data in keyword format. Note that this contains the keyword header and the keyword cards. See also FreqVibration.Keyword() and FreqVibration.KeywordCards(). |
No arguments
Returnsstring Return typeString |
ExampleTo get data for *FREQUENCY_DOMAIN_RANDOM_VIBRATION f in keyword format var s = f.toString();
|