Hi Giuseppe, if your goal is to compute the integral of an arbitrary function f(x,y) over a random segment inside your rectangle (you can assume the segment is not parallel to x-axis or y-axis), you could just consider its parametrisation \phi(t), t \in [0,1] so that you have a 1D integral that you can compute. Weights and points in the 1D reference domain can then be asked to dealii.
If your line is parallel to one of the axes, you may want to use compute_affine_transformation() ( https://www.dealii.org/current/doxygen/deal.II/classQSimplex.html#ab670894e45080a2c39d0698c0f582c9d) to get points and weights in the "real" line, since one coordinate is fixed. More advanced users probably have nicer solutions :-) Best, Marco Il giorno venerdì 11 marzo 2022 alle 16:26:05 UTC+1 [email protected] ha scritto: > Good morning everyone, > I would have a question about the computation of integrals. Suppose I have > a rectangular domain, is it there any way to compute the integral of a > certain function over different heights (not only on the bottom or top > boundary)? > > Thanks in advance, > Giuseppe > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/9713bc9d-65c9-4008-8b96-169f92a87ea9n%40googlegroups.com.
