Changeset 4002 for issm/trunk/src/m/solutions/jpl/CreateFemModel.m
- Timestamp:
- 06/02/10 17:42:51 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/solutions/jpl/CreateFemModel.m
r3962 r4002 6 6 %----------------------------------------------------------------------- 7 7 8 function m=CreateFEMModel(md )8 function m=CreateFEMModel(md,analyses) 9 9 10 10 displaystring(md.verbose,'\n reading data from model %s...',md.name); 11 [m.elements,m.nodes,m.vertices,m.constraints,m.loads,m.materials,m.parameters]=ModelProcessor(md );11 [m.elements,m.nodes,m.vertices,m.constraints,m.loads,m.materials,m.parameters]=ModelProcessor(md,analyses); 12 12 13 displaystring(md.verbose,'%s',' generating degrees of freedom...'); 14 [m.nodes,m.vertices,m.part,m.tpart]=Dof(m.elements,m.nodes,m.vertices, m.parameters); 13 for i=1:length(analyses), 15 14 16 displaystring(md.verbose,'%s',' generating single point constraints...'); 17 [m.nodes,m.yg]=SpcNodes(m.nodes,m.constraints); 15 displaystring(md.verbose,'%s',' generating degrees of freedom...'); 16 if ~isfield(m,'part') [m.vertices,m.part,m.tpart]=VerticesDof(vertices, m.parameters); 17 [m.nodes]=NodesDof(m.nodes,m.parameters); 18 18 19 displaystring(md.verbose,'%s',' generating rigid bodyconstraints...');20 [m.Rmg,m.nodes]=MpcNodes(m.nodes,m.constraints);19 displaystring(md.verbose,'%s',' generating single point constraints...'); 20 [m.nodes,m.yg]=SpcNodes(m.nodes,m.constraints); 21 21 22 displaystring(md.verbose,'%s',' generating node sets...');23 m.nodesets=BuildNodeSets(m.nodes);22 displaystring(md.verbose,'%s',' generating rigid body constraints...'); 23 [m.Rmg,m.nodes]=MpcNodes(m.nodes,m.constraints); 24 24 25 displaystring(md.verbose,'%s',' reducing single point constraints vector...'); 26 m.ys=Reducevectorgtos(m.yg.vector,m.nodesets); 27 28 displaystring(md.verbose,'%s',' normalizing rigid body constraints matrix...'); 29 m.Gmn = NormalizeConstraints(m.Rmg,m.nodesets); 25 displaystring(md.verbose,'%s',' generating node sets...'); 26 m.nodesets=BuildNodeSets(m.nodes); 30 27 31 displaystring(md.verbose,'%s',' configuring element and loads...'); 32 [m.elements,m.loads,m.nodes,m.parameters] = ConfigureObjects( m.elements, m.loads, m.nodes, m.vertices,m.materials,m.parameters); 28 displaystring(md.verbose,'%s',' reducing single point constraints vector...'); 29 m.ys=Reducevectorgtos(m.yg.vector,m.nodesets); 30 31 displaystring(md.verbose,'%s',' normalizing rigid body constraints matrix...'); 32 m.Gmn = NormalizeConstraints(m.Rmg,m.nodesets); 33 33 34 displaystring(md.verbose,'%s',' processing parameters...'); 35 m.parameters= ProcessParams(m.parameters,m.part.vector); 34 displaystring(md.verbose,'%s',' configuring element and loads...'); 35 [m.elements,m.loads,m.nodes,m.parameters] = ConfigureObjects( m.elements, m.loads, m.nodes, m.vertices,m.materials,m.parameters); 36 37 displaystring(md.verbose,'%s',' processing parameters...'); 38 m.parameters= ProcessParams(m.parameters,m.part.vector); 39 end 36 40 37 41 end
Note:
See TracChangeset
for help on using the changeset viewer.