|
|
MATLAB reference: ofxWizardObject |
The class ofxWizardObject is the MATLAB interface representation of a line type object or a bending stiffness variable data source object. The reason for its existence is purely to provide access to the C API function C_InvokeWizard which operates on these two object types.
This class subclasses ofxObject so offers the same Properties and functions, with the addition of the wizard specific function described here.
A new ofxWizardObject is created from an ofxModel object like this:
linetype = model.CreateObject(ofx.otLineType, 'lt 1') % Create a new line type object called 'lt 1'
Where the OrcaFlex line type already exists, you use the following syntax:
linetype = model('lt 1')
For a bending stiffness variable data item these calls become:
bs1 = model.CreateObject(ofx.otBendingStiffness, 'Bending Stiffness1') % Create a new bending stiffness object
bs2 = model('Bending Stiffness2') % refer to an existing object
linetype.InvokeWizard
This function invokes the line type wizard in OrcaFlex. Before calling this function the line type wizard data items need to be set. For example to create a rope/wire line type:
linetype = model.CreateObject(ofx.otLineType) % create a new line type with a default name
linetype.WizardCalculation = 'Rope/wire'
linetype.RopeNominalDiameter = 0.03
linetype.RopeConstruction = '6x19 wire with fibre core'
linetype.InvokeWizard
bendingstiffness.InvokeWizard
This function invokes the plasticity wizard in OrcaFlex. Before calling this function the appropriate data items need to be set. For example:
bs = model.CreateObject(ofx.otBendingStiffness, 'Bending Stiffness1')
bs.StressOD = 0.30
bs.StressID = 0.27
bs.Type = 'Stress-strain table'
bs.Strain = [0, 1, 5]
bs.Stress = [0, 380000, 400000]
bs.InvokeWizard
bs.Hysteretic = 'No'