Averaging due to parallel running - cuttingPlane
Dear All,
I am actually implementing a boundary condition that accesses some Field values like p, U, rho from cutting planes inside the mesh. As only the average of the cut Field is of interest, I have to create some kind of weighting factor for each processor part. So far the Code looks like this: Code:
// Create the cutting Planes rhoMean=sum(averageUPRho*weigthPatch)/sum(weigthPatch); unfortunately I weight by the number of faces and not by their Area (magSf for patches works ... not for planes?). How can I acces them?? Any hints? |
I notice that sampledPlane inherits from sampledSurface and cuttingPlane. sampledSurface has an area() function. Would that help you? Could you create a sampledPlane from your plane?
|
It worked...
just adding / editing 2 lines... Code:
... |
You can replace weightPlane with smpPI.area()
Also because samplePlane inherits from cuttingPlane, you probably don't need cuttedPlane and can just use smpPI? |
Hi Laurence,
Thanks for the reply... Quote:
Quote:
Thanks so far... |
All times are GMT -4. The time now is 03:39. |