Contents     Functions         Previous Next     PDF Index

7.17  Variable names and progamming rules (syntax)

The following rules are used in programming SDT and OpenFEM as is makes reading the source code easier.


cargindex of current argument. For functions with variable number of inputs, one seeks the next argument with NewArg=varargin{carg};carg=carg+1;
CAM,Camstring command to be interpreted. Cam is the lower case version of CAM.
j1,j2,j3 ...loop indices.
jGroup,jElt,jWindices for element groups, elements, integration points. For code samples use help('getegroup')
i,junit imaginary √−1. i,j should never be used as indices to avoid any problem overloading their default value.
i1,i2,i3 ...integer values intermediate variables
r1,r2,r3 ...real valued variables or structures
ind,in2,in3 ...vectors of indices, cind is used to store the complement of ind when applicable.
out,out1,out2 ...output variables.

The following names are also used throughout the toolbox functions


node,FEnodenodes
NNodereindexing vector verifies NodeInd=NNode(NodeId). Can be built using NNode=sparse(node(:,1),1,1:size(node,1)).
RunOptrun options a structure used to store options that are used in a command, these should be

©1991-2012 by SDTools
Previous Up Next