Changeset 27850
- Timestamp:
- 07/24/23 07:30:19 (20 months ago)
- Location:
- issm/trunk-jpl/src/c/classes/Elements
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Element.h
r27847 r27850 257 257 virtual void ComputeStressTensor(void)=0; 258 258 virtual void ComputeEsaStrainAndVorticity(void)=0; 259 virtual void ComputeMeanEla(IssmDouble* paltitude,int* pcounter)=0;259 //virtual void ComputeMeanEla(IssmDouble* paltitude,int* pcounter)=0; 260 260 virtual void Configure(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters,Inputs* inputsin)=0; 261 261 virtual void ControlInputSetGradient(IssmDouble* gradient,int enum_type,int control_index,int offset,int M,int N,int interp)=0; -
issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
r27847 r27850 5283 5283 /*}}}*/ 5284 5284 #endif 5285 void Penta::ComputeMeanEla(IssmDouble* paltitude, int* pcounter){/*{{{*/5286 5287 if(!this->IsOnSurface() & !this->IsIceInElement()) return;5288 int ipos=0,ineg=0, counter=0;5289 IssmDouble mean_element_surface=0;5285 //void Penta::ComputeMeanEla(IssmDouble* paltitude, int* pcounter){/*{{{*/ 5286 // 5287 // if(!this->IsOnSurface() & !this->IsIceInElement()) return; 5288 // int ipos=0,ineg=0, counter=0; 5289 // IssmDouble mean_element_surface=0; 5290 5290 5291 5291 /* input */ 5292 IssmDouble smb[NUMVERTICES],surface[NUMVERTICES];5293 Element::GetInputListOnVertices(&smb[0],SmbMassBalanceEnum);5294 Element::GetInputListOnVertices(&surface[0],SurfaceEnum);5295 5296 for(int iv=0;iv<NUMVERTICES;iv++){5297 if(smb[iv]>0) ipos=ipos+1;5298 if(smb[iv]<0) ineg=ineg+1;5299 }5292 // IssmDouble smb[NUMVERTICES],surface[NUMVERTICES]; 5293 // Element::GetInputListOnVertices(&smb[0],SmbMassBalanceEnum); 5294 // Element::GetInputListOnVertices(&surface[0],SurfaceEnum); 5295 5296 // for(int iv=0;iv<NUMVERTICES;iv++){ 5297 // if(smb[iv]>0) ipos=ipos+1; 5298 // if(smb[iv]<0) ineg=ineg+1; 5299 // } 5300 5300 5301 5301 /* we define ELA if an element has pos and neg smb */ 5302 if(ipos>0 & ineg>0){5303 for(int iv=0;iv<NUMVERTICES;iv++) mean_element_surface=mean_element_surface+surface[iv]/double(NUMVERTICES);5304 *paltitude+=mean_element_surface;5305 *pcounter+=counter+1;5306 }5307 }5308 /*}}}*/ 5302 // if(ipos>0 & ineg>0){ 5303 // for(int iv=0;iv<NUMVERTICES;iv++) mean_element_surface=mean_element_surface+surface[iv]/double(NUMVERTICES); 5304 // *paltitude+=mean_element_surface; 5305 // *pcounter+=counter+1; 5306 // } 5307 //} 5308 /*}}}*/ -
issm/trunk-jpl/src/c/classes/Elements/Penta.h
r27829 r27850 64 64 void ComputeSigmaNN(){_error_("not implemented yet");}; 65 65 void ComputeStressTensor(); 66 //void ComputeMeanEla(IssmDouble* paltitude, int* pcounter); 66 67 void Configure(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters,Inputs* inputsin); 67 68 void ControlInputSetGradient(IssmDouble* gradient,int enum_type,int control_index,int offset,int M,int N,int interp); -
issm/trunk-jpl/src/c/classes/Elements/Seg.h
r27847 r27850 50 50 void ComputeSigmaNN(){_error_("not implemented yet");}; 51 51 void ComputeStressTensor(){_error_("not implemented yet");}; 52 void ComputeMeanEla(IssmDouble* paltitude, int* pcounter){_error_("not implemented yet");};52 //void ComputeMeanEla(IssmDouble* paltitude, int* pcounter){_error_("not implemented yet");}; 53 53 void Configure(Elements* elements,Loads* loads,Nodes* nodesin,Vertices* verticesin,Materials* materials,Parameters* parameters,Inputs* inputsin){_error_("not implemented yet");}; 54 54 void ControlInputSetGradient(IssmDouble* gradient,int enum_type,int control_index,int offset,int M,int N,int interp){_error_("not implemented yet");}; -
issm/trunk-jpl/src/c/classes/Elements/Tetra.h
r27847 r27850 46 46 void ComputeSigmaNN(){_error_("not implemented yet");}; 47 47 void ComputeStressTensor(){_error_("not implemented yet");}; 48 void ComputeMeanEla(IssmDouble* paltitude, int* pcounter){_error_("not implemented yet");};48 //void ComputeMeanEla(IssmDouble* paltitude, int* pcounter){_error_("not implemented yet");}; 49 49 void ComputeDeviatoricStressTensor(){_error_("not implemented yet");}; 50 50 void ComputeEsaStrainAndVorticity(){_error_("not implemented yet!");}; -
issm/trunk-jpl/src/c/classes/Elements/Tria.h
r27847 r27850 72 72 void ComputeStressTensor(); 73 73 void ComputeSurfaceNormalVelocity(); 74 void ComputeMeanEla(IssmDouble* paltitude, int* pcounter){_error_("not implemented yet");};74 //void ComputeMeanEla(IssmDouble* paltitude, int* pcounter){_error_("not implemented yet");}; 75 75 void Configure(Elements* elements,Loads* loads,Nodes* nodesin,Vertices* verticesin,Materials* materials,Parameters* parameters,Inputs* inputsin); 76 76 void ControlInputSetGradient(IssmDouble* gradient,int enum_type,int control_index,int offset,int M,int N,int interp);
Note:
See TracChangeset
for help on using the changeset viewer.