Changeset 15273
- Timestamp:
- 06/17/13 08:33:26 (12 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r15252 r15273 2 2 * \brief: implementation of the Tria object 3 3 */ 4 5 4 /*Headers:*/ 6 5 /*{{{*/ … … 22 21 /*Element macros*/ 23 22 #define NUMVERTICES 3 24 25 23 /*Constructors/destructor/copy*/ 26 24 /*FUNCTION Tria::Tria(){{{*/ … … 6506 6504 IssmDouble wh_trans; 6507 6505 IssmDouble activeEpl[numdof]; 6508 IssmDouble storing[numdof];6506 IssmDouble eplstoring[numdof],sedstoring[numdof]; 6509 6507 IssmDouble epl_head[numdof],sed_head[numdof]; 6510 6508 … … 6530 6528 6531 6529 this->parameters->FindParam(&leakage,HydrologydcLeakageFactorEnum); 6532 6530 6533 6531 sed_trans = matpar->GetSedimentTransmitivity(); 6534 6532 sed_thick = matpar->GetSedimentThickness(); … … 6536 6534 for(int i=0;i<numdof;i++){ 6537 6535 if(activeEpl[i]==0.0)continue; 6538 6536 6537 eplstoring[i]=matpar->GetEplStoring(); 6538 sedstoring[i]=matpar->GetSedimentStoring(); 6539 6539 6540 if(sed_head[i]>epl_head[i]){ 6540 storing[i]=matpar->GetSedimentStoring(); 6541 wh_trans=sed_trans*storing[i]*(epl_head[i]-sed_head[i])/(leakage*sed_thick); 6541 wh_trans=sed_trans*sedstoring[i]*(epl_head[i]-sed_head[i])/(leakage*sed_thick); 6542 6542 } 6543 6543 else{ 6544 6544 this->GetHydrologyDCInefficientHmax(&h_max,nodes[i]); 6545 storing[i]=matpar->GetEplStoring(); 6546 wh_trans=sed_trans*storing[i]*(epl_head[i]-sed_head[i])/(leakage*sed_thick); 6547 if(sed_head[i]>h_max){ 6545 wh_trans=sed_trans*eplstoring[i]*(epl_head[i]-sed_head[i])/(leakage*sed_thick); 6546 if(sed_head[i]>=h_max){ 6548 6547 wh_trans=0.0; 6549 6548 } 6550 if((sed_head[i]+wh_trans)>h_max){6551 wh_trans=h_max-sed_head[i];6552 }6549 // if((sed_head[i]+(wh_trans/sedstoring[i]))>h_max){ 6550 //(h_max-sed_head[i])*eplstoring[i]; 6551 //} 6553 6552 } 6554 6553 /*Assign output pointer*/ … … 6623 6622 this->GetHydrologyDCInefficientHmax(&h_max,nodes[i]); 6624 6623 if(eplhead[i]>=h_max){ 6625 //vec_mask->SetValue(nodes[i]->Sid(),1.,INS_VAL);6626 //for(j=0;j<numdof;j++){6627 6628 ///*Increase of the domain is on the downstream node in term of sediment head*/6629 //if(sedhead[j] == sedheadmin){6630 //vec_mask->SetValue(nodes[j]->Sid(),1.,INS_VAL);6631 //break;6632 //}6633 //}6624 vec_mask->SetValue(nodes[i]->Sid(),1.,INS_VAL); 6625 for(j=0;j<numdof;j++){ 6626 6627 /*Increase of the domain is on the downstream node in term of sediment head*/ 6628 if(sedhead[j] == sedheadmin){ 6629 vec_mask->SetValue(nodes[j]->Sid(),1.,INS_VAL); 6630 break; 6631 } 6632 } 6634 6633 } 6635 6634 } -
issm/trunk-jpl/src/c/solutionsequences/solutionsequence_hydro_nonlinear.cpp
r15254 r15273 115 115 /*Iteration on the EPL layer*/ 116 116 for(;;){ 117 femmodel->HydrologyTransferx();117 // femmodel->HydrologyTransferx(); 118 118 femmodel->SystemMatricesx(&Kff, &Kfs, &pf,&df,NULL); 119 119 CreateNodalConstraintsx(&ys,femmodel->nodes,HydrologyDCEfficientAnalysisEnum); … … 127 127 Mergesolutionfromftogx(&ug_epl,uf,ys,femmodel->nodes,femmodel->parameters); delete ys; 128 128 InputUpdateFromSolutionx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,ug_epl); 129 //femmodel->HydrologyEPLupdateDomainx();129 femmodel->HydrologyEPLupdateDomainx(); 130 130 ConstraintsStatex(&constraints_converged,&num_unstable_constraints, femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters); 131 131 -
issm/trunk-jpl/src/m/classes/hydrologydc.m
r15232 r15273 27 27 epl_thickness = 0; 28 28 epl_transmitivity = 0; 29 30 29 end 31 30 methods 32 % {{{function obj = hydrologydc(varargin) 33 function obj = hydrologydc(varargin) 34 31 function obj = hydrologydc(varargin) % {{{ 35 32 switch nargin 36 33 case 0 … … 66 63 end 67 64 % }}} 68 % {{{ function md = checkconsistency(obj,md,solution,analyses)65 % {{{ function md = checkconsistency(obj,md,solution,analyses) 69 66 function md = checkconsistency(obj,md,solution,analyses) 70 67 %Early return … … 102 99 end 103 100 % }}} 104 % {{{ 101 % {{{ function disp(obj) 105 102 function disp(obj) 106 103 disp(sprintf(' hydrology Dual Porous Continuum Equivalent parameters:'));
Note:
See TracChangeset
for help on using the changeset viewer.