Changeset 20844
- Timestamp:
- 07/01/16 22:46:21 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/mesh3dprisms.js
r20843 r20844 5 5 6 6 function mesh3dprisms() { 7 this.setdefaultparameters = function() { // {{{7 this.setdefaultparameters = function() { // {{{) 8 8 9 9 //the connectivity is the averaged number of nodes linked to a … … 14 14 this.average_vertex_connectivity=25; 15 15 } // }}} 16 17 this.checkconsistency = function(md,solution,analyses) { // {{{ 16 this.checkconsistency = function(md,solution,analyses) { //{{{[) 18 17 19 18 checkfield(md,'fieldname','mesh.x','NaN',1,'Inf',1,'size',[md.mesh.numberofvertices, 1]); … … 36 35 checkfield(md,'fieldname','mesh.average_vertex_connectivity','>=',24,'message','\'mesh.average_vertex_connectivity\' should be at least 24 in 3d'); 37 36 } // }}} 38 this.disp = function() { // {{{37 this.disp = function() { // {{{ 39 38 console.log(sprintf(' 3D prism Mesh:')); 40 39 … … 78 77 } // }}} 79 78 this.marshall = function(md,prefix,fid) { // {{{ 80 WriteData(fid,prefix,' enum',DomainTypeEnum(),'data',StringToEnum(['Domain' + this.domaintype()]),'format','Integer');81 WriteData(fid,prefix,' enum',DomainDimensionEnum(),'data',this.dimension(),'format','Integer');82 WriteData(fid,prefix,' enum',MeshElementtypeEnum(),'data',StringToEnum(this.elementtype()),'format','Integer');79 WriteData(fid,prefix,'name','md.mesh.domain_type','data',StringToEnum('Domain' + this.domaintype()),'format','Integer'); 80 WriteData(fid,prefix,'name','md.mesh.domain_dimension','data',this.dimension(),'format','Integer'); 81 WriteData(fid,prefix,'name','md.mesh.elementtype','data',StringToEnum(this.elementtype()),'format','Integer'); 83 82 WriteData(fid,prefix,'object',this,'class','mesh','fieldname','x','format','DoubleMat','mattype',1); 84 83 WriteData(fid,prefix,'object',this,'class','mesh','fieldname','y','format','DoubleMat','mattype',1); … … 111 110 this.long=NaNFix(this.long,NaN); 112 111 }//}}} 113 this.domaintype = function() { // {{{ 112 this.domaintype = function() { // {{{) 114 113 return '3D'; 115 114 } // }}} 116 this.dimension = function() { // {{{ 115 this.dimension = function() { // {{{) 117 116 return 3; 118 117 } // }}} 119 this.elementtype = function() { // {{{ 118 this.elementtype = function() { // {{{) 120 119 return 'Penta'; 121 120 } // }}} … … 124 123 } //}}} 125 124 126 //properties 127 //{{{ 125 //properties (SetAccess=public) 128 126 this.x = NaN; 129 127 this.y = NaN; … … 158 156 this.extractedvertices = NaN; 159 157 this.extractedelements = NaN; 160 //}}}161 158 }
Note:
See TracChangeset
for help on using the changeset viewer.