You can use var.cellVolumeAverage, mesh.cellVolumes, and masks (e.g., "x < 5." etc.) to perform integrals like this.
On Dec 19, 2014, at 11:48 AM, Kyle Briton Lawlor <[email protected]> wrote: > Hi, FiPy. > > I am using FiPy for a 2D problem on a triangular mesh generated through gmsh > in a circular or annular region. For my problem I need to calculate some > integrals over the mesh for functions of the solution variables. I am > attempting to do this by trying to compute volumes of irregular triangular > prisms. I guess it is worth asking, is there pre-assembled way to do this in > FiPy? > > If not, my question is when I create the mesh with gmsh in FiPy, is there a > way I can get to the .msh file that one can obtain when using gmsh on its > own? I have a way of computing areas for the gmsh mesh if I have that file. > > Thanks ahead, > Kyle > _______________________________________________ > fipy mailing list > [email protected] > http://www.ctcms.nist.gov/fipy > [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ] _______________________________________________ fipy mailing list [email protected] http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
