Page:4SIGHT manual- a computer program for modelling degradation of underground low level waste concrete vaults (IA 4sightmanualcomp5612snyd).pdf/141

From Wikisource
Jump to navigation Jump to search
There was a problem when proofreading this page.
65. UPDATE PRESSURES
B.30

65. Update Pressures.

The pressures are updated using the continuity equation:

where the intrinisic pore fluid velocity and is the pore fluid density. An equation for the bulk material can be obtained from a volume average over a represetative volume V


For these equations, assume is a constant since water is virtually incompressible. Rearranging and simplifying the above equation gives:

Since is zero outside the pore volume, if represents only the pore volume then the above equation simplifies to

which finally gives

where is the Darcy velocity. Substituting for the Darcy velocity gives

⟨Function declarations 23⟩ 
 void update.pressures (void);

66. update.pressures

 void update.pressures()
 {
   int k, iteration;
   real perm [NUM_CELLS], imp [NUM.SURFACES], tol = 0.0005, ;
   for (k = FIRST.CELL; k < NUM.CELLS; k++) perm[k]=[k] * CUB([ke]/ );
   [FIRST.CELL] = Pout + (NUM.CELLS - 1 + A A [FIRST.CELL]) * dP
   
   [NUM.SURFACES-1]=0;
   iteration = 0;
   do {
     for (k= FIRST.CELL + 1; k < NUM.SURFACES - 1; k++) {
       imp[k]= perm * [k + 1]/[k] + perm[k -1]*[k-1]/[k-1];
 /* **** tmp[k]-=0.5*(DX[k-1]_DX[k])*(PHIn[k]-PHIn[k-1])/DT; *****/
 imp[k]*=1.0/(perm[k]/[k] = perm[k-1]/[k-1]);
 }
 =0.0;
 for (k= FIRST_CELL+1; K<NUM_SURFACES-1;k++) {
   if([k]>0.0 =MAX(,[k] -imp[k])/[k]);