Hide Table of Contents
SetFrequencyData Method (ICWTopologyFrequencyConstraint)

Sets the equations for this topology study frequency constraint.

.NET Syntax

Visual Basic (Declaration) 
Function SetFrequencyData( _
   ByVal VarModeShapes As System.Object, _
   ByVal VarComparators As System.Object, _
   ByVal VarFrequencyValues As System.Object _
) As System.Integer
Visual Basic (Usage) 
Dim instance As ICWTopologyFrequencyConstraint
Dim VarModeShapes As System.Object
Dim VarComparators As System.Object
Dim VarFrequencyValues As System.Object
Dim value As System.Integer
 
value = instance.SetFrequencyData(VarModeShapes, VarComparators, VarFrequencyValues)
C# 
System.int SetFrequencyData( 
   System.object VarModeShapes,
   System.object VarComparators,
   System.object VarFrequencyValues
)
C++/CLI 
System.int SetFrequencyData( 
&   System.Object^ VarModeShapes,
&   System.Object^ VarComparators,
&   System.Object^ VarFrequencyValues
) 

Parameters

VarModeShapes
Array of mode shape numbers (see Remarks)
VarComparators

Array of swsTopologyStudyConstraintComparator_e (see Remarks)

VarFrequencyValues
Array of frequency values (see Remarks)

Return Value

Result code as defined in swsTopologyStudy_FrequencyConstraintErrors_e

Example

Remarks

The arrays of VarModeShapes, VarComparators, and VarFrequencyValues map one-to-one and onto. Together they define n frequency constraint equations as follows:

for i = 0 to n-1
  VarModeShapes[i] VarComparators[i] VarFrequencyValues[i]
next  i

 

The VarModeShapes array must be in mode shape ascending order, and the VarFrequencyValues array must be in frequency ascending order.

If the VarComparators array contains swsTopologyStudyConstraintComparator_e.swsTopologyConstraintComparator_IsInBetween, then the corresponding value in VarFrequencyValues must be specified with a range of values, e.g., "200-400".

 

See Also

Availability

SOLIDWORKS Simulation API 2019 SP0


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   SetFrequencyData Method (ICWTopologyFrequencyConstraint)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:




x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2024 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.