LCOV - code coverage report
Current view: top level - src/fluidproperties - MultiComponentFluidProperties.C (source / functions) Hit Total Coverage
Test: idaholab/moose fluid_properties: #31405 (292dce) with base fef103 Lines: 15 23 65.2 %
Date: 2025-09-04 07:53:14 Functions: 5 9 55.6 %
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 "MultiComponentFluidProperties.h"
      11             : 
      12             : InputParameters
      13          98 : MultiComponentFluidProperties::validParams()
      14             : {
      15          98 :   InputParameters params = FluidProperties::validParams();
      16          98 :   return params;
      17             : }
      18             : 
      19          52 : MultiComponentFluidProperties::MultiComponentFluidProperties(const InputParameters & parameters)
      20          52 :   : FluidProperties(parameters)
      21             : {
      22          52 : }
      23             : 
      24          52 : MultiComponentFluidProperties::~MultiComponentFluidProperties() {}
      25             : 
      26             : std::string
      27           0 : MultiComponentFluidProperties::fluidName() const
      28             : {
      29           0 :   mooseError("fluidName() is not implemented");
      30             : }
      31             : 
      32             : void
      33           1 : MultiComponentFluidProperties::rho_mu_from_p_T_X(
      34             :     Real pressure, Real temperature, Real xmass, Real & rho, Real & mu) const
      35             : {
      36           1 :   rho = rho_from_p_T_X(pressure, temperature, xmass);
      37           1 :   mu = mu_from_p_T_X(pressure, temperature, xmass);
      38           1 : }
      39             : 
      40             : void
      41           0 : MultiComponentFluidProperties::rho_mu_from_p_T_X(
      42             :     ADReal pressure, ADReal temperature, ADReal xmass, ADReal & rho, ADReal & mu) const
      43             : {
      44           0 :   rho = rho_from_p_T_X(pressure, temperature, xmass);
      45           0 :   mu = mu_from_p_T_X(pressure, temperature, xmass);
      46           0 : }
      47             : 
      48             : void
      49           1 : MultiComponentFluidProperties::rho_mu_from_p_T_X(Real pressure,
      50             :                                                  Real temperature,
      51             :                                                  Real xmass,
      52             :                                                  Real & rho,
      53             :                                                  Real & drho_dp,
      54             :                                                  Real & drho_dT,
      55             :                                                  Real & drho_dx,
      56             :                                                  Real & mu,
      57             :                                                  Real & dmu_dp,
      58             :                                                  Real & dmu_dT,
      59             :                                                  Real & dmu_dx) const
      60             : {
      61           1 :   rho_from_p_T_X(pressure, temperature, xmass, rho, drho_dp, drho_dT, drho_dx);
      62           1 :   mu_from_p_T_X(pressure, temperature, xmass, mu, dmu_dp, dmu_dT, dmu_dx);
      63           1 : }
      64             : 
      65             : const SinglePhaseFluidProperties &
      66           0 : MultiComponentFluidProperties::getComponent(unsigned int) const
      67             : {
      68           0 :   mooseError("getComponent() is not implemented");
      69             : }

Generated by: LCOV version 1.14