Contents     Functions     Index     Previous Next     PDF

7.16  Variable names and progamming rules

The following rules are used in programming 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=varargincarg;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
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)).
©1991-2008 by SDTools
Previous Up Next