Public Member Functions | List of all members
VibrationDefinition Class Reference

VibrationDefinition class is used for vibration calculation.
This class can be obtained from Study class.
. More...

Public Member Functions

void ClearExcitationResultDefinition (Variant &indexName, int slotIndex)
 Set Part/Surface/Edge calculation for excitation point. More...
 
DataSetGetCaseDataSet (int caseno, int index=0)
 Returns DataSet for a specified case. More...
 
String GetCoordinateName ()
 Returns the name of the coordinate system of transfer function model. More...
 
DataSetGetDataSet (int index=0)
 Returns a DataSet object. More...
 
String GetExcitationCalculationType (Variant &indexName)
 Returns the calculation type of excitation point. More...
 
ConditionGetExcitationCondition (Variant &indexName)
 Get the referenced condition. More...
 
String GetExcitationName (int index)
 Returns the title of a excitation point. More...
 
CalculationDefinitionGetExcitationResultDefinition (Variant &indexName, int slotIndex)
 Get referenced Part/Surface/Edge calculation result. More...
 
int GetExcitationResultDefinitionSeriesIndex (Variant &indexName)
 Get series ID of calculation result. More...
 
String GetForceUnit ()
 Get force unit. More...
 
int GetFourierTransformEndStep ()
 Get the reference end step for fourier transform. More...
 
String GetFourierTransformPeriodicity ()
 Get the periodicity of the fourier transform. More...
 
int GetFourierTransformStartStep ()
 Get the reference start step for fourier transform. More...
 
double GetFrequency ()
 Get the frequency. More...
 
bool GetGroupExcitationPoints ()
 Get whether to group the excitation points.
 
String GetLengthUnit ()
 Get length unit. More...
 
String GetName ()
 Returns a title. More...
 
int GetPoles ()
 Get the poles' number. More...
 
String GetResultDataType ()
 Get the result data type. More...
 
String GetResultType ()
 Get the result type. More...
 
double GetRevolutionSpeed ()
 
double GetRotationSpeed ()
 Get the rotation speed. More...
 
bool IsValid ()
 Returns True if an object is valid. More...
 
void LoadTransferFunctionFile (String &path)
 Load the transfer function file. More...
 
int NumExcitationPoints ()
 Returns the number of the excitation points. More...
 
void Reset (Variant &indexName)
 Clear this excitation point. More...
 
void SetCoordinate (Variant &name)
 Specifies coordinate system for transfer function model by specifying its name or index. More...
 
void SetExcitationCondition (Variant &indexName, Condition *condition)
 Set condition for excitation point. More...
 
void SetExcitationResultDefinition (Variant &indexName, int slotIndex, CalculationDefinition *cal, int seriesIndex)
 Set Part/Surface/Edge calculation for excitation point. More...
 
void SetFourierTransformEndStep (Variant &end)
 Set the reference end step for fourier transform. More...
 
void SetFourierTransformPeriodicity (Variant &mode)
 Set the periodicity for the fourier transform. More...
 
void SetFourierTransformStartStep (Variant &begin)
 Set the reference start step for fourier transform. More...
 
void SetFrequency (Variant &frequency)
 Set the frequency. More...
 
void SetGroupExcitationPoints (bool isGroup)
 Group the excitation points. More...
 
void SetName (String &name)
 Specifies a title. More...
 
void SetPoles (Variant &poles)
 Set the poles' number. More...
 
void SetResultDataType (Variant &mode)
 Set the result data type. More...
 
void SetResultType (Variant &mode)
 Set the result type. More...
 
void SetRevolutionSpeed (Variant &speed)
 
void SetRotationSpeed (Variant &speed)
 Set rotation speed. More...
 

Detailed Description

VibrationDefinition class is used for vibration calculation.
This class can be obtained from Study class.
.

Example of calling the class object:

app.GetModel(0).GetStudy(0).GetVibrationDefinition(0)

Member Function Documentation

void VibrationDefinition::ClearExcitationResultDefinition ( Variant &  indexName,
int  slotIndex 
)

Set Part/Surface/Edge calculation for excitation point.

Parameters
indexNameExcitation point's ID or name
slotIndexThe ID of the component (0 ~ 2)
DataSet * VibrationDefinition::GetCaseDataSet ( int  caseno,
int  index = 0 
)

Returns DataSet for a specified case.

Parameters
casenoCase number
indexDataSet number
Returns
DataSet object

caseno is the one-based number.

String VibrationDefinition::GetCoordinateName ( )

Returns the name of the coordinate system of transfer function model.

Returns
Name of the coordinate system
DataSet * VibrationDefinition::GetDataSet ( int  index = 0)

Returns a DataSet object.

Returns
DataSet object

For more information about DataSet, see DataSet .

String VibrationDefinition::GetExcitationCalculationType ( Variant &  indexName)

Returns the calculation type of excitation point.

Returns
Excitation point's calculation type
"NoExcitation": This excitation point is not used in vibration calculation.
"Condition": This excitation point references the result from condition for vibration calculation.
"CalculationResult": This excitation point references the part/surface/edge calculation result for vibration calculation.
Condition * VibrationDefinition::GetExcitationCondition ( Variant &  indexName)

Get the referenced condition.

Parameters
indexNameExcitation point's ID or name
String VibrationDefinition::GetExcitationName ( int  index)

Returns the title of a excitation point.

Returns
Excitation point's title
CalculationDefinition * VibrationDefinition::GetExcitationResultDefinition ( Variant &  indexName,
int  slotIndex 
)

Get referenced Part/Surface/Edge calculation result.

Parameters
indexNameExcitation point's ID or name
slotIndexThe ID of the component (0 ~ 2)
int VibrationDefinition::GetExcitationResultDefinitionSeriesIndex ( Variant &  indexName)

Get series ID of calculation result.

Parameters
indexNameExcitation point's ID or name
String VibrationDefinition::GetForceUnit ( )

Get force unit.

Returns
Force unit's notation
int VibrationDefinition::GetFourierTransformEndStep ( )

Get the reference end step for fourier transform.

Returns
Reference end step
String VibrationDefinition::GetFourierTransformPeriodicity ( )

Get the periodicity of the fourier transform.

Returns
The fourier transform periodicity
int VibrationDefinition::GetFourierTransformStartStep ( )

Get the reference start step for fourier transform.

Returns
Reference start step
double VibrationDefinition::GetFrequency ( )

Get the frequency.

Returns
Frequency
String VibrationDefinition::GetLengthUnit ( )

Get length unit.

Returns
Length unit's notation
String VibrationDefinition::GetName ( )

Returns a title.

Returns
Title (string)
int VibrationDefinition::GetPoles ( )

Get the poles' number.

Returns
Poles number
String VibrationDefinition::GetResultDataType ( )

Get the result data type.

Returns
The result data type
String VibrationDefinition::GetResultType ( )

Get the result type.

Returns
The result type
double VibrationDefinition::GetRevolutionSpeed ( )
Deprecated:
Get the revolution speed.
Returns
Revolution speed
double VibrationDefinition::GetRotationSpeed ( )

Get the rotation speed.

Returns
Rotation speed
bool VibrationDefinition::IsValid ( )

Returns True if an object is valid.

Returns
Whether or not the VibrationDefinition objects in the list are valid
void VibrationDefinition::LoadTransferFunctionFile ( String &  path)

Load the transfer function file.

Parameters
pathTransfer function file path
int VibrationDefinition::NumExcitationPoints ( )

Returns the number of the excitation points.

Returns
Excitation points' number
void VibrationDefinition::Reset ( Variant &  indexName)

Clear this excitation point.

Parameters
indexNameExcitation point's ID or name
void VibrationDefinition::SetCoordinate ( Variant &  name)

Specifies coordinate system for transfer function model by specifying its name or index.

Parameters
nameName or index of the coordinate system
void VibrationDefinition::SetExcitationCondition ( Variant &  indexName,
Condition condition 
)

Set condition for excitation point.

Parameters
indexNameExcitation point's ID or name
conditionThe condition for vibration calculation
void VibrationDefinition::SetExcitationResultDefinition ( Variant &  indexName,
int  slotIndex,
CalculationDefinition cal,
int  seriesIndex 
)

Set Part/Surface/Edge calculation for excitation point.

Parameters
indexNameExcitation point's ID or name
slotIndexThe ID of the component (0 ~ 2)
calPart/Surface/Edge calculation result
seriesIndexThe series ID of in calculation result
void VibrationDefinition::SetFourierTransformEndStep ( Variant &  end)

Set the reference end step for fourier transform.

Parameters
endReference end step
void VibrationDefinition::SetFourierTransformPeriodicity ( Variant &  mode)

Set the periodicity for the fourier transform.

Parameters
mode
Mode type
"None" or "0" = No periodicity
"Half" or "1" = 1/2
void VibrationDefinition::SetFourierTransformStartStep ( Variant &  begin)

Set the reference start step for fourier transform.

Parameters
beginReference begin step
void VibrationDefinition::SetFrequency ( Variant &  frequency)

Set the frequency.

Parameters
frequencyFrequency
void VibrationDefinition::SetGroupExcitationPoints ( bool  isGroup)

Group the excitation points.

Parameters
isGroup
True : Group the excitation points
False : Do not group the excitation points
void VibrationDefinition::SetName ( String &  name)

Specifies a title.

Parameters
nameName
void VibrationDefinition::SetPoles ( Variant &  poles)

Set the poles' number.

Parameters
polesPoles' number
SetPoles(NUM_POLE);
void VibrationDefinition::SetResultDataType ( Variant &  mode)

Set the result data type.

Parameters
mode
Mode type
"AmplitudePhase" or "0" = AmplitudePhase
"RealImag" or "1" = RealImag
void VibrationDefinition::SetResultType ( Variant &  mode)

Set the result type.

Parameters
mode
Mode type
"Acceleration" or "1" = Acceleration
"Velocity" or "2" = Velocity
"Displacement" or "3" = Displacement
void VibrationDefinition::SetRevolutionSpeed ( Variant &  speed)
Deprecated:
Set revolution speed.
Parameters
speedRevolution speed
SetRevolutionSpeed(REVOLUTION_SPEED);
void VibrationDefinition::SetRotationSpeed ( Variant &  speed)

Set rotation speed.

Parameters
speedRotation speed
SetRotationSpeed(REVOLUTION_SPEED);