Franco, First of all, I have read this question > <https://groups.google.com/forum/#!searchin/dealii/meshworker%7Csort:relevance/dealii/JTIM1zASACU/wIvwrU2hAQAJ>, > > and I read that MeshWorker is sort of abandoned: > > the issue with MeshWorker is that when it was implemented, we didn't write >> enough documentation/tutorial programs/examples [...]. Development then >> also stopped, and so [...] nobody today knows any more whether they can or >> can not be done with MeshWorker. The only person who still knows how this >> all works unfortunately >> also doesn't regularly participate in the help forum any more :-( >> >> [...] you can of course ask questions about how this or that can be done, >> but you're likely not going to get a lot of helpful answers because nobody >> knows any more how this works. It's really an unfortunate situation we got >> ourselves into with this small corner of the library. >> > > So my first question is, should I avoid using this class and implement > parallel loops by hand (via TBB or other means)? > "amandus"[1] is in fact based on MeshWorker. If you are trying to do something similar to what is in the examples there, you have a good chance to be successful. The problem really is the documentation, but with working code you should be able to understand the concepts.
> Then, my doubts about the use of MeshWorkers. I cannot really grasp it > even after reading tutorials 12, 16, and 39. > > What is the purpose of the cell, boundary, and face functions? The cell is > called exactly on each n-dimensional cell, I've checked that number, what > about the other two? Boundary is called, as I read, for each n-dimensional > cell on the boundary (numbers again match). Face function is called on each > internal (n-1)-dimensional face (not on the boundary), as far as I > understand. Is this correct? > In MeshWorker, you are basically only writing the assembly loops for your bilinear forms. You don't have to care about how to handle hanging nodes and the like. In a typical DG formulation your bilinear form consists of a cell term, a boundary term and face term. These relate to the cell, boundary and face functions you are talking about. You should be able to see this in step-39. > When assigning a Neumann condition on faces, for instance in elasticity > apply a load, where is the correct place? I have tried to get the code into > the cell function, but I didn't find a way to get the faces, boundary > markers, and the face values. My code is at the bottom, if you need it. > In general, your code fragment looks good, but the right-hand side should be handled in a different integrator object similar to what is done in step-39. Neumann boundary conditions are normally considered in a weak sense and incorporated as boundary term into the bilinear form. So this should be in the boundary method of your MatrixIntegrator. There is an elasticity example in amandus. Maybe this is useful. > Is there an analogous of the FullMatrix for the right hand side vector? > The only thing similar to a vector in the DoFInfo is a BlockVector... > What exactly do you mean? In general, all vectors are considered to be block vectors with only one block that you can access via "dinfo.vector <https://www.dealii.org/8.4.1/doxygen/deal.II/classMeshWorker_1_1LocalResults.html#af80df9fc19df1713b3d41690f9c71527> (0).block(0);". If you initialize the "MeshWorker::DoFInfo" object with a "BlockInfo" object, you also have access to individual blocks. The structure then resembles the structure of your FiniteElement. Best, Daniel [1] https://bitbucket.org/guidokanschat/amandus -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
