Hi

I'd like to compute the integral of the spatial gradient of 'the' solution, 
i.e, integral( dot(grad u,  grad r) ) dx.            
'r' is the distance from a fixed point.

I'm thinking of using the central difference to calculate grad u and grad r and 
then summing over. For this to work, I'd need the solution vector components to 
be in correct spatial order as indicated below in an example for the case of a 
unit line with h = 0.25.

i (index)                      :   0                      1                    
2                   3                          4
x (space)                     :   0                      0.25               0.5 
               0.75                     1.0
solutionvector             :   a                      b                    c    
               d                           e

How can I order the solution vector yet still know the exact coordinates of its 
components?

Is there a better/more efficient way to calculate the integral( dot (grad u,  
grad r) ) dx?

Regards

Ted


      
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to