LCOV - code coverage report
Current view: top level - src/base - FluidPropertiesApp.C (source / functions) Hit Total Coverage
Test: idaholab/moose fluid_properties: #31405 (292dce) with base fef103 Lines: 41 48 85.4 %
Date: 2025-09-04 07:53:14 Functions: 6 8 75.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 "FluidPropertiesApp.h"
      11             : #include "Moose.h"
      12             : #include "AppFactory.h"
      13             : #include "MooseSyntax.h"
      14             : 
      15             : #ifdef AIR_FP_ENABLED
      16             : #include "AirApp.h"
      17             : #endif
      18             : #ifdef CARBON_DIOXIDE_FP_ENABLED
      19             : #include "CarbonDioxideApp.h"
      20             : #endif
      21             : #ifdef HELIUM_FP_ENABLED
      22             : #include "HeliumApp.h"
      23             : #endif
      24             : #ifdef NITROGEN_FP_ENABLED
      25             : #include "NitrogenApp.h"
      26             : #endif
      27             : #ifdef POTASSIUM_FP_ENABLED
      28             : #include "PotassiumApp.h"
      29             : #endif
      30             : #ifdef SODIUM_FP_ENABLED
      31             : #include "SodiumApp.h"
      32             : #endif
      33             : 
      34             : InputParameters
      35        1253 : FluidPropertiesApp::validParams()
      36             : {
      37        1253 :   InputParameters params = MooseApp::validParams();
      38        1253 :   params.set<bool>("use_legacy_material_output") = false;
      39        1253 :   params.set<bool>("use_legacy_initial_residual_evaluation_behavior") = false;
      40        1253 :   return params;
      41           0 : }
      42             : 
      43             : registerKnownLabel("FluidPropertiesApp");
      44             : 
      45         179 : FluidPropertiesApp::FluidPropertiesApp(const InputParameters & parameters) : MooseApp(parameters)
      46             : {
      47         179 :   FluidPropertiesApp::registerAll(_factory, _action_factory, _syntax);
      48         179 : }
      49             : 
      50         358 : FluidPropertiesApp::~FluidPropertiesApp() {}
      51             : 
      52             : void
      53        1074 : FluidPropertiesApp::registerApps()
      54             : {
      55        1074 :   const std::string doc = "Saline thermophysical fluid properties ";
      56             : #ifdef SALINE_ENABLED
      57        2148 :   addCapability("saline", true, doc + "are available.");
      58             : #else
      59             :   addCapability("saline", false, doc + "are not available.");
      60             : #endif
      61             : 
      62        1074 :   registerApp(FluidPropertiesApp);
      63             : #ifdef AIR_FP_ENABLED
      64        1074 :   registerApp(AirApp);
      65             : #endif
      66             : #ifdef CARBON_DIOXIDE_FP_ENABLED
      67        1074 :   registerApp(CarbonDioxideApp);
      68             : #endif
      69             : #ifdef HELIUM_FP_ENABLED
      70        1074 :   registerApp(HeliumApp);
      71             : #endif
      72             : #ifdef NITROGEN_FP_ENABLED
      73        1074 :   registerApp(NitrogenApp);
      74             : #endif
      75             : #ifdef POTASSIUM_FP_ENABLED
      76        1074 :   registerApp(PotassiumApp);
      77             : #endif
      78             : #ifdef SODIUM_FP_ENABLED
      79        2148 :   registerApp(SodiumApp);
      80             : #endif
      81        1074 : }
      82             : 
      83             : void
      84        1253 : FluidPropertiesApp::registerAll(Factory & f, ActionFactory & af, Syntax & syntax)
      85             : {
      86             : #ifdef AIR_FP_ENABLED
      87        1253 :   AirApp::registerAll(f, af, syntax);
      88             : #endif
      89             : #ifdef CARBON_DIOXIDE_FP_ENABLED
      90        1253 :   CarbonDioxideApp::registerAll(f, af, syntax);
      91             : #endif
      92             : #ifdef HELIUM_FP_ENABLED
      93        1253 :   HeliumApp::registerAll(f, af, syntax);
      94             : #endif
      95             : #ifdef NITROGEN_FP_ENABLED
      96        1253 :   NitrogenApp::registerAll(f, af, syntax);
      97             : #endif
      98             : #ifdef POTASSIUM_FP_ENABLED
      99        1253 :   PotassiumApp::registerAll(f, af, syntax);
     100             : #endif
     101             : #ifdef SODIUM_FP_ENABLED
     102        1253 :   SodiumApp::registerAll(f, af, syntax);
     103             : #endif
     104             : 
     105        1253 :   Registry::registerObjectsTo(f, {"FluidPropertiesApp"});
     106        1253 :   Registry::registerActionsTo(af, {"FluidPropertiesApp"});
     107             : 
     108        2506 :   registerSyntaxTask(
     109             :       "AddFluidPropertiesDeprecatedAction", "Modules/FluidProperties/*", "add_fluid_properties");
     110        2506 :   registerSyntaxTask("AddFluidPropertiesAction", "FluidProperties/*", "add_fluid_properties");
     111        2506 :   registerMooseObjectTask("add_fluid_properties", FluidProperties, false);
     112        2506 :   registerMooseObjectTask("add_fp_output", Output, false);
     113             : 
     114             :   // Fluid properties depend on variables
     115        2506 :   syntax.addDependency("add_aux_variable", "add_fluid_properties");
     116        2506 :   syntax.addDependency("add_variable", "add_fluid_properties");
     117        2506 :   syntax.addDependency("add_elemental_field_variable", "add_fluid_properties");
     118        2506 :   syntax.addDependency("add_external_aux_variables", "add_fluid_properties");
     119        2506 :   syntax.addDependency("add_fp_output", "add_output");
     120        2506 :   syntax.addDependency("add_postprocessor", "add_fp_output");
     121             : 
     122        2506 :   syntax.registerActionSyntax("AddFluidPropertiesInterrogatorAction",
     123             :                               "FluidPropertiesInterrogator");
     124        1253 : }
     125             : 
     126             : extern "C" void
     127           0 : FluidPropertiesApp__registerAll(Factory & f, ActionFactory & af, Syntax & s)
     128             : {
     129           0 :   FluidPropertiesApp::registerAll(f, af, s);
     130           0 : }
     131             : extern "C" void
     132           0 : FluidPropertiesApp__registerApps()
     133             : {
     134           0 :   FluidPropertiesApp::registerApps();
     135           0 : }

Generated by: LCOV version 1.14