Aibike, I would probably just loop over all the cells and try to find the minimum and maximum value for the saturation in that cell. Based on that information you classify the cell as above or below the saturation threshold and update max_x_above_saturation and min_x_below_saturation at the same time.
Best, Daniel On Tue, Mar 25, 2025 at 7:45 AM Aibike Nagyz <ayibiken.nah...@nu.edu.kz> wrote: > > Hello! > > I’m working with step-21 in deal.II and I’m trying to perform a sensitivity > analysis based on saturation front position (S_front). Specifically, I want > to compare the simulated front position against experimental data by > computing the absolute error in the x-position of the front at a given time. > > For example, in my experimental result, the front reaches x = 5 at time t = > 0.265. The simulation domain is a 2D rectangle of size 30 × 4, and I’m > solving a two-phase flow problem with saturation S as one of the components. > > My goal is to run simulations with different boundary pressure values and, at > a specific time step (e.g., t=0.265), find the location where the saturation > front exists, and compare it to the experimental position. > > What would be the best practice in deal.II to compute the x-location of the > saturation front at a given time? > > Any advice or pointers would be greatly appreciated. I'm happy to share > snippets of my code or experiments if needed. > > Thanks in advance! > > Best regards, > > Aibike > > > > -- > 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 dealii+unsubscr...@googlegroups.com. > To view this discussion visit > https://groups.google.com/d/msgid/dealii/9051c950-b2c1-41e2-b0e5-4d0a6232a8fdn%40googlegroups.com. -- 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 dealii+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/dealii/CAOYDWbLYUMSWoGa%2B%2BZnoS1W8L9wvMx6B0hsLSpBB%2Bn0nX75Fzw%40mail.gmail.com.