Contents     Functions         Previous Next     PDF Index



Utilities for FEM related data structures.


 ... = fe_def(def,'command', ... )
 ... = fe_def('command', ... )


fe_defmainly provides utilities for SDT def structure handling. It is also used internally to perform parameter recovery.



Returns the value of a parameter contained in an SDT button.

The entry can either be

This call does not work for simple SDT buttons in MATLAB format (structures) due to the difficulty to distinguish between DefBut structures and button structures. To exploit this capability, one can place the button in a cell array, or a structure.

For treated button entries, the output is the current value of the button,

For EditT entries, the output is a structure with as many fields as there are buttons in the EditT labelled with the names of the buttons. Each field contains each button value following the rules provided above.

For table entries (cell array with strings, CInCell...), the option -CellField %s gives back specific button fields like name or tooltip instead of current value. (see section 8.4.1 for the list of fields by button type)

% Define a SDT button that can be used in GUI
% no action on trivial button in MATLAB format
% use a cell array in this case
val=fe_def('cleanentry',{but}); val=val{1};

% Place the button in a DefBut

% Transform button into Java format (CinCell)
% recover value with CleanEntry

% Place Java button in an EditT object (a set of buttons)
% recover the value of every button of the EditT at once in a struct


w=fe_def('DefEigOpt',mo1) returns a EigOpt set of options for fe_eigfor model mo1. If first searches for a field info,EigOpt in the model stack, or returns a default value, set to [5 20 1e3].


w=fe_def('DefFreq',DISK) returns frequencies defined in the info,Freq entries using Hz units.


Performs modal expansion for def structures expressed on reduced DOF, if a reduction basis is provided.

SubDef, SubDof, SubCh

def=fe_def('SubDef',def,ind); keeps deformations associated with ind, which a vector of indices or a logical vector (for example,1)<500 can be used to select frequencies below 500). Other fields of the def structure are truncated consistently.

def=fe_def('SubDof',def,DOF) is extracts a subset of DOFs based on defined DOF or with def=fe_def('subdofind',def,ind) indices (again either values or logicals). You can also specify DOFs to be removed with def=fe_def('SubDofRem',def,DofRemoved).

This command is partially redundant with feutilb PlaceInDof called with def2 = feutilb('PlaceInDof',DOF,def). The main difference is the ability to add zeros (use DOF larger than def.DOF) and support sens structures.

fe_def('SubDofInd-Cell',def,ind_dof,ind_def) returns a clean cell array listing selected DOFs and responses. This is typically used to generate clean tables.

fe_def('SubCh',def,ind) is similar to SubDof but allows but supports more advanced selection for multi-dimensional curves. This command is not fully documented.

©1991-2017 by SDTools
Previous Up Next