LCOV - code coverage report
Current view: top level - src/auxkernels - LinearizedInterfaceAux.C (source / functions) Hit Total Coverage
Test: idaholab/moose phase_field: #32971 (54bef8) with base c6cf66 Lines: 10 11 90.9 %
Date: 2026-05-29 20:38:39 Functions: 3 3 100.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             : #include "LinearizedInterfaceAux.h"
      11             : 
      12             : registerMooseObject("PhaseFieldApp", LinearizedInterfaceAux);
      13             : 
      14             : InputParameters
      15         255 : LinearizedInterfaceAux::validParams()
      16             : {
      17         255 :   InputParameters params = AuxKernel::validParams();
      18         255 :   params.addClassDescription(
      19             :       "Calculates the order parameter from the linearized interface function");
      20         510 :   params.addRequiredCoupledVar("nonlinear_variable",
      21             :                                "The variable used in the linearized interface function");
      22         255 :   return params;
      23           0 : }
      24             : 
      25         136 : LinearizedInterfaceAux::LinearizedInterfaceAux(const InputParameters & parameters)
      26         136 :   : AuxKernel(parameters), _phi(coupledValue("nonlinear_variable"))
      27             : {
      28         136 : }
      29             : 
      30             : Real
      31      263407 : LinearizedInterfaceAux::computeValue()
      32             : {
      33      263407 :   return (1.0 + std::tanh(_phi[_qp] / std::sqrt(2.0))) / 2.0;
      34             : }

Generated by: LCOV version 1.14