Click or drag to resize

APIaddSineFunction Method

Add a sine function to the model. It can be growing or not.
REST path: /function/sine/[frequency]/[phase]/[stp]/[duration]/[maxAmplitude]/[isGrowing]/[type]
REST verb: GET
REST header: {"units", units}

Namespace: NextFEMapi
Assembly: NextFEMapi (in NextFEMapi.dll) Version: 2.6.0.0 (2.6.0.0)
Syntax
public int addSineFunction(
	double frequency,
	double phase,
	int stp,
	double duration,
	double maxAmplitude,
	bool isGrowing = false,
	int type = 0,
	string units = ""
)

Parameters

frequency  Double
Frequency of sine function, in Hz
phase  Double
Phase angle, in radians
stp  Int32
Number of step per cycle
duration  Double
Duration of the function
maxAmplitude  Double
Amplitude of the function
isGrowing  Boolean  (Optional)
Optional: True if growing sine function. Default: false.
type  Int32  (Optional)
Optional: 0 displacement TH, 1 velocity TH, 2 acceleration TH, 3 acceleration spectrum, 4 displacement spectrum
units  String  (Optional)
Optional: Units of measure for data in ordinate (Y)

Return Value

Int32
The ID of the time series
See Also