General > Create_SimpleModel
Create_SimpleModel
Purpose
create data structure Model from node coordinates, connectivity and boundary conditions
Synopsis
Model = Create_SimpleModel (XYZ,CON,BOUN,ElemName)
Description
CREATE_SIMPLEMODEL create data structure Model from node coordinates, connectivity and boundary conditions
MODEL = CREATE_SIMPLEMODEL (XYZ,CON,BOUN,ELEMNAME)
the function creates the data structure MODEL from the array of
node coordinates XYZ (rows correspond to node numbers and columns to dofs),
the numerical or cell array of element connectivity CON (rows correspond to element numbers),
the array of boundary conditions BOUN (rows correspond to node numbers and columns to dofs),
and the cell array of element names ELEMNAME (rows correspond to element numbers)
Example: XYZ (3,:) = [10 15 22]; coordinates of node 3
BOUN (3,:) = [ 1 0 1]; boundary condition code for node 3 (0=free and 1=fixed)
CON (4,:) = [ 6 7] : element 4 connects nodes 6 and 7, or
CON {4} = [ 6 7]; element 4 connects nodes 6 and 7
ELEMNAME{4} = 'LinTruss'; element 4 is a linear elastic truss
the data structure MODEL contains information about the structural model in the following fields
MODEL.ndm = dimension of structural model
nn = number of nodes in structural model
ne = number of elements
nf = number of free degrees of freedom
nt = total number of degrees of freedom
XYZ = node coordinates, nodes are stored columnwise
BOUN = boundary conditions, nodes are stored columnwise
CON = cell array of node connectivity
DOF = array with degree of freedom numbering, nodes are stored rowwise
ndf(el) = no of dofs/node for element el
nq (el) = no of basic forces for element el
nen(el) = no of nodes for element el
ElemName = cell array of element names
Cross-Reference Information
This function calls: