LCOV - code coverage report
Current view: top level - include/postprocessors - LevelSetVolume.h (source / functions) Hit Total Coverage
Test: idaholab/moose level_set: #31405 (292dce) with base fef103 Lines: 0 1 0.0 %
Date: 2025-09-04 07:53:58 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of the MOOSE framework
       2             : //* https://mooseframework.inl.gov
       3             : //*
       4             : //* All rights reserved, see COPYRIGHT for full restrictions
       5             : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
       6             : //*
       7             : //* Licensed under LGPL 2.1, please see LICENSE for details
       8             : //* https://www.gnu.org/licenses/lgpl-2.1.html
       9             : 
      10             : #pragma once
      11             : 
      12             : // MOOSE includes
      13             : #include "ElementVariablePostprocessor.h"
      14             : 
      15             : /**
      16             :  * Postprocessor to compute the area/volume inside and outside of a level set contour.
      17             :  */
      18             : class LevelSetVolume : public ElementVariablePostprocessor
      19             : {
      20             : public:
      21             :   static InputParameters validParams();
      22             : 
      23             :   LevelSetVolume(const InputParameters & parameters);
      24             : 
      25             :   virtual void initialize() override;
      26             :   virtual void finalize() override;
      27             :   virtual void execute() override;
      28             :   virtual Real getValue() const override;
      29             :   virtual void threadJoin(const UserObject & y) override;
      30           0 :   virtual void computeQpValue() override{};
      31             : 
      32             : protected:
      33             :   /// The accumulated volume to return as a PostprocessorValue
      34             :   Real _volume;
      35             : 
      36             :   /// The level set contour to consider for computing inside vs. outside of the volume
      37             :   const Real & _threshold;
      38             : 
      39             :   /// Flag for triggering the internal volume calculation
      40             :   const bool _inside;
      41             : };

Generated by: LCOV version 1.14