LCOV - code coverage report
Current view: top level - src/bcs - FluidFreeSurfaceBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose fsi: #32971 (54bef8) with base c6cf66 Lines: 15 16 93.8 %
Date: 2026-05-29 20:36:35 Functions: 4 4 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 "FluidFreeSurfaceBC.h"
      11             : 
      12             : registerMooseObject("FsiApp", FluidFreeSurfaceBC);
      13             : 
      14             : InputParameters
      15          19 : FluidFreeSurfaceBC::validParams()
      16             : {
      17          19 :   InputParameters params = IntegratedBC::validParams();
      18          19 :   params.addClassDescription("Applies a mixed Dirichlet-Neumann BC on the fluid surface.");
      19          57 :   params.addRangeCheckedParam<Real>(
      20          38 :       "alpha", 0.1, "alpha>0", "Inverse of the acceleration due to gravity.");
      21          19 :   return params;
      22           0 : }
      23             : 
      24          10 : FluidFreeSurfaceBC::FluidFreeSurfaceBC(const InputParameters & parameters)
      25             :   : IntegratedBC(parameters),
      26          10 :     _alpha(getParam<Real>("alpha")),
      27          10 :     _u_dotdot(dotDot()),
      28          20 :     _du_dotdot_du(dotDotDu())
      29             : {
      30          10 : }
      31             : 
      32             : Real
      33     3470400 : FluidFreeSurfaceBC::computeQpResidual()
      34             : {
      35     3470400 :   return _test[_i][_qp] * _alpha * _u_dotdot[_qp];
      36             : }
      37             : 
      38             : Real
      39    13881600 : FluidFreeSurfaceBC::computeQpJacobian()
      40             : {
      41    13881600 :   return _test[_i][_qp] * _alpha * _du_dotdot_du[_qp] * _phi[_j][_qp];
      42             : }

Generated by: LCOV version 1.14