LCOV - code coverage report
Current view: top level - src/base - PorousFlowApp.C (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 131 152 86.2 %
Date: 2017-11-17 17:48:31 Functions: 7 14 50.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #include "PorousFlowApp.h"
       2             : #include "Moose.h"
       3             : #include "TensorMechanicsApp.h"
       4             : #include "AppFactory.h"
       5             : #include "MooseSyntax.h"
       6             : #include "FluidPropertiesApp.h"
       7             : #include "ChemicalReactionsApp.h"
       8             : 
       9             : // Actions
      10             : #include "PorousFlowUnsaturated.h"
      11             : #include "PorousFlowFullySaturated.h"
      12             : #include "PorousFlowBasicTHM.h"
      13             : 
      14             : // UserObjects
      15             : #include "PorousFlowDictator.h"
      16             : #include "PorousFlowSumQuantity.h"
      17             : #include "PorousFlowCapillaryPressureConst.h"
      18             : #include "PorousFlowCapillaryPressureVG.h"
      19             : #include "PorousFlowCapillaryPressureRSC.h"
      20             : #include "PorousFlowCapillaryPressureBW.h"
      21             : #include "PorousFlowCapillaryPressureBC.h"
      22             : 
      23             : // DiracKernels
      24             : #include "PorousFlowSquarePulsePointSource.h"
      25             : #include "PorousFlowPeacemanBorehole.h"
      26             : #include "PorousFlowPolyLineSink.h"
      27             : 
      28             : // Postprocessors
      29             : #include "PorousFlowFluidMass.h"
      30             : #include "PorousFlowHeatEnergy.h"
      31             : #include "PorousFlowPlotQuantity.h"
      32             : 
      33             : // Materials
      34             : #include "PorousFlow1PhaseMD_Gaussian.h"
      35             : #include "PorousFlow2PhasePP.h"
      36             : #include "PorousFlow2PhasePS_VG.h"
      37             : #include "PorousFlow1PhaseP.h"
      38             : #include "PorousFlow1PhaseFullySaturated.h"
      39             : #include "PorousFlow2PhasePP_VG.h"
      40             : #include "PorousFlow2PhasePP_RSC.h"
      41             : #include "PorousFlowMassFraction.h"
      42             : #include "PorousFlow1PhaseP_VG.h"
      43             : #include "PorousFlow1PhaseP_BW.h"
      44             : #include "PorousFlow2PhasePS.h"
      45             : #include "PorousFlowBrine.h"
      46             : #include "PorousFlowEffectiveFluidPressure.h"
      47             : #include "PorousFlowPermeabilityConst.h"
      48             : #include "PorousFlowPermeabilityConstFromVar.h"
      49             : #include "PorousFlowPermeabilityKozenyCarman.h"
      50             : #include "PorousFlowPermeabilityExponential.h"
      51             : #include "PorousFlowPorosityConst.h"
      52             : #include "PorousFlowPorosityHM.h"
      53             : #include "PorousFlowPorosityHMBiotModulus.h"
      54             : #include "PorousFlowPorosityTM.h"
      55             : #include "PorousFlowPorosityTHM.h"
      56             : #include "PorousFlowRelativePermeabilityBC.h"
      57             : #include "PorousFlowRelativePermeabilityCorey.h"
      58             : #include "PorousFlowRelativePermeabilityConst.h"
      59             : #include "PorousFlowRelativePermeabilityVG.h"
      60             : #include "PorousFlowRelativePermeabilityBW.h"
      61             : #include "PorousFlowRelativePermeabilityFLAC.h"
      62             : #include "PorousFlowTotalGravitationalDensityFullySaturatedFromPorosity.h"
      63             : #include "PorousFlowVolumetricStrain.h"
      64             : #include "PorousFlowJoiner.h"
      65             : #include "PorousFlowTemperature.h"
      66             : #include "PorousFlowThermalConductivityIdeal.h"
      67             : #include "PorousFlowThermalConductivityFromPorosity.h"
      68             : #include "PorousFlowMatrixInternalEnergy.h"
      69             : #include "PorousFlowDiffusivityConst.h"
      70             : #include "PorousFlowDiffusivityMillingtonQuirk.h"
      71             : #include "PorousFlowSingleComponentFluid.h"
      72             : #include "PorousFlowNearestQp.h"
      73             : #include "PorousFlowConstantBiotModulus.h"
      74             : #include "PorousFlowConstantThermalExpansionCoefficient.h"
      75             : #include "PorousFlowFluidStateWaterNCG.h"
      76             : #include "PorousFlowFluidStateBrineCO2.h"
      77             : 
      78             : // Kernels
      79             : #include "PorousFlowAdvectiveFlux.h"
      80             : #include "PorousFlowMassTimeDerivative.h"
      81             : #include "PorousFlowEffectiveStressCoupling.h"
      82             : #include "PorousFlowMassVolumetricExpansion.h"
      83             : #include "PorousFlowEnergyTimeDerivative.h"
      84             : #include "PorousFlowHeatConduction.h"
      85             : #include "PorousFlowHeatAdvection.h"
      86             : #include "PorousFlowDispersiveFlux.h"
      87             : #include "PorousFlowHeatVolumetricExpansion.h"
      88             : #include "PorousFlowPlasticHeatEnergy.h"
      89             : #include "PorousFlowDesorpedMassTimeDerivative.h"
      90             : #include "PorousFlowDesorpedMassVolumetricExpansion.h"
      91             : #include "PorousFlowMassRadioactiveDecay.h"
      92             : #include "PorousFlowFullySaturatedDarcyBase.h"
      93             : #include "PorousFlowFullySaturatedDarcyFlow.h"
      94             : #include "PorousFlowFullySaturatedHeatAdvection.h"
      95             : #include "PorousFlowFullySaturatedMassTimeDerivative.h"
      96             : 
      97             : // BoundaryConditions
      98             : #include "PorousFlowSink.h"
      99             : #include "PorousFlowPiecewiseLinearSink.h"
     100             : #include "PorousFlowHalfGaussianSink.h"
     101             : #include "PorousFlowHalfCubicSink.h"
     102             : 
     103             : // AuxKernels
     104             : #include "PorousFlowDarcyVelocityComponent.h"
     105             : #include "PorousFlowPropertyAux.h"
     106             : 
     107             : // Functions
     108             : #include "MovingPlanarFront.h"
     109             : 
     110             : template <>
     111             : InputParameters
     112         257 : validParams<PorousFlowApp>()
     113             : {
     114         257 :   InputParameters params = validParams<MooseApp>();
     115         257 :   return params;
     116             : }
     117             : 
     118           0 : PorousFlowApp::PorousFlowApp(const InputParameters & parameters) : MooseApp(parameters)
     119             : {
     120           0 :   Moose::registerObjects(_factory);
     121           0 :   PorousFlowApp::registerObjectDepends(_factory);
     122           0 :   PorousFlowApp::registerObjects(_factory);
     123             : 
     124           0 :   Moose::associateSyntax(_syntax, _action_factory);
     125           0 :   PorousFlowApp::associateSyntaxDepends(_syntax, _action_factory);
     126           0 :   PorousFlowApp::associateSyntax(_syntax, _action_factory);
     127           0 : }
     128             : 
     129           0 : PorousFlowApp::~PorousFlowApp() {}
     130             : 
     131             : // External entry point for dynamic application loading
     132             : extern "C" void
     133           0 : PorousFlowApp__registerApps()
     134             : {
     135           0 :   PorousFlowApp::registerApps();
     136           0 : }
     137             : void
     138           0 : PorousFlowApp::registerApps()
     139             : {
     140           0 :   registerApp(PorousFlowApp);
     141           0 : }
     142             : 
     143             : void
     144         257 : PorousFlowApp::registerObjectDepends(Factory & factory)
     145             : {
     146         257 :   TensorMechanicsApp::registerObjects(factory);
     147         257 :   FluidPropertiesApp::registerObjects(factory);
     148         257 :   ChemicalReactionsApp::registerObjects(factory);
     149         257 : }
     150             : 
     151             : // External entry point for dynamic object registration
     152             : extern "C" void
     153           0 : PorousFlowApp__registerObjects(Factory & factory)
     154             : {
     155           0 :   PorousFlowApp::registerObjects(factory);
     156           0 : }
     157             : void
     158         831 : PorousFlowApp::registerObjects(Factory & factory)
     159             : {
     160             :   // UserObjects
     161        2493 :   registerUserObject(PorousFlowDictator);
     162        2493 :   registerUserObject(PorousFlowSumQuantity);
     163        2493 :   registerUserObject(PorousFlowCapillaryPressureConst);
     164        2493 :   registerUserObject(PorousFlowCapillaryPressureVG);
     165        2493 :   registerUserObject(PorousFlowCapillaryPressureRSC);
     166        2493 :   registerUserObject(PorousFlowCapillaryPressureBW);
     167        2493 :   registerUserObject(PorousFlowCapillaryPressureBC);
     168             : 
     169             :   // DiracKernels
     170        2493 :   registerDiracKernel(PorousFlowSquarePulsePointSource);
     171        2493 :   registerDiracKernel(PorousFlowPeacemanBorehole);
     172        2493 :   registerDiracKernel(PorousFlowPolyLineSink);
     173             : 
     174             :   // Postprocessors
     175        2493 :   registerPostprocessor(PorousFlowFluidMass);
     176        2493 :   registerPostprocessor(PorousFlowHeatEnergy);
     177        2493 :   registerPostprocessor(PorousFlowPlotQuantity);
     178             : 
     179             :   // Materials
     180        2493 :   registerMaterial(PorousFlow1PhaseMD_Gaussian);
     181        2493 :   registerMaterial(PorousFlow2PhasePP);
     182        2493 :   registerMaterial(PorousFlow2PhasePS_VG);
     183        2493 :   registerMaterial(PorousFlow1PhaseP);
     184        2493 :   registerMaterial(PorousFlow1PhaseFullySaturated);
     185        2493 :   registerMaterial(PorousFlow2PhasePP_VG);
     186        2493 :   registerMaterial(PorousFlow2PhasePP_RSC);
     187        2493 :   registerMaterial(PorousFlowMassFraction);
     188        2493 :   registerMaterial(PorousFlow1PhaseP_VG);
     189        2493 :   registerMaterial(PorousFlow1PhaseP_BW);
     190        2493 :   registerMaterial(PorousFlow2PhasePS);
     191        2493 :   registerMaterial(PorousFlowBrine);
     192        2493 :   registerMaterial(PorousFlowEffectiveFluidPressure);
     193        2493 :   registerMaterial(PorousFlowPermeabilityConst);
     194        2493 :   registerMaterial(PorousFlowPermeabilityConstFromVar);
     195        2493 :   registerMaterial(PorousFlowPermeabilityKozenyCarman);
     196        2493 :   registerMaterial(PorousFlowPermeabilityExponential);
     197        2493 :   registerMaterial(PorousFlowPorosityConst);
     198        2493 :   registerMaterial(PorousFlowPorosityHM);
     199        2493 :   registerMaterial(PorousFlowPorosityHMBiotModulus);
     200        2493 :   registerMaterial(PorousFlowPorosityTM);
     201        2493 :   registerMaterial(PorousFlowPorosityTHM);
     202        2493 :   registerMaterial(PorousFlowRelativePermeabilityBC);
     203        2493 :   registerMaterial(PorousFlowRelativePermeabilityCorey);
     204        2493 :   registerMaterial(PorousFlowRelativePermeabilityConst);
     205        2493 :   registerMaterial(PorousFlowRelativePermeabilityVG);
     206        2493 :   registerMaterial(PorousFlowRelativePermeabilityBW);
     207        2493 :   registerMaterial(PorousFlowRelativePermeabilityFLAC);
     208        2493 :   registerMaterial(PorousFlowTotalGravitationalDensityFullySaturatedFromPorosity);
     209        2493 :   registerMaterial(PorousFlowVolumetricStrain);
     210        2493 :   registerMaterial(PorousFlowJoiner);
     211        2493 :   registerMaterial(PorousFlowTemperature);
     212        2493 :   registerMaterial(PorousFlowThermalConductivityIdeal);
     213        2493 :   registerMaterial(PorousFlowThermalConductivityFromPorosity);
     214        2493 :   registerMaterial(PorousFlowMatrixInternalEnergy);
     215        2493 :   registerMaterial(PorousFlowDiffusivityConst);
     216        2493 :   registerMaterial(PorousFlowDiffusivityMillingtonQuirk);
     217        2493 :   registerMaterial(PorousFlowSingleComponentFluid);
     218        2493 :   registerMaterial(PorousFlowNearestQp);
     219        2493 :   registerMaterial(PorousFlowConstantBiotModulus);
     220        2493 :   registerMaterial(PorousFlowConstantThermalExpansionCoefficient);
     221        2493 :   registerMaterial(PorousFlowFluidStateWaterNCG);
     222        2493 :   registerMaterial(PorousFlowFluidStateBrineCO2);
     223             : 
     224             :   // Kernels
     225        2493 :   registerKernel(PorousFlowAdvectiveFlux);
     226        2493 :   registerKernel(PorousFlowMassTimeDerivative);
     227        2493 :   registerKernel(PorousFlowEffectiveStressCoupling);
     228        2493 :   registerKernel(PorousFlowMassVolumetricExpansion);
     229        2493 :   registerKernel(PorousFlowEnergyTimeDerivative);
     230        2493 :   registerKernel(PorousFlowHeatConduction);
     231        2493 :   registerKernel(PorousFlowHeatAdvection);
     232        2493 :   registerKernel(PorousFlowDispersiveFlux);
     233        2493 :   registerKernel(PorousFlowHeatVolumetricExpansion);
     234        2493 :   registerKernel(PorousFlowPlasticHeatEnergy);
     235        2493 :   registerKernel(PorousFlowDesorpedMassTimeDerivative);
     236        2493 :   registerKernel(PorousFlowDesorpedMassVolumetricExpansion);
     237        2493 :   registerKernel(PorousFlowMassRadioactiveDecay);
     238        2493 :   registerKernel(PorousFlowFullySaturatedDarcyBase);
     239        2493 :   registerKernel(PorousFlowFullySaturatedDarcyFlow);
     240        2493 :   registerKernel(PorousFlowFullySaturatedHeatAdvection);
     241        2493 :   registerKernel(PorousFlowFullySaturatedMassTimeDerivative);
     242             : 
     243             :   // BoundaryConditions
     244        2493 :   registerBoundaryCondition(PorousFlowSink);
     245        2493 :   registerBoundaryCondition(PorousFlowPiecewiseLinearSink);
     246        2493 :   registerBoundaryCondition(PorousFlowHalfGaussianSink);
     247        2493 :   registerBoundaryCondition(PorousFlowHalfCubicSink);
     248             : 
     249             :   // AuxKernels
     250        2493 :   registerAuxKernel(PorousFlowDarcyVelocityComponent);
     251        2493 :   registerAuxKernel(PorousFlowPropertyAux);
     252             : 
     253             :   // Functions
     254        2493 :   registerFunction(MovingPlanarFront);
     255         831 : }
     256             : 
     257             : void
     258         257 : PorousFlowApp::associateSyntaxDepends(Syntax & syntax, ActionFactory & action_factory)
     259             : {
     260         257 :   TensorMechanicsApp::associateSyntax(syntax, action_factory);
     261         257 :   FluidPropertiesApp::associateSyntax(syntax, action_factory);
     262         257 :   ChemicalReactionsApp::associateSyntax(syntax, action_factory);
     263         257 : }
     264             : 
     265             : // External entry point for dynamic syntax association
     266             : extern "C" void
     267           0 : PorousFlowApp__associateSyntax(Syntax & syntax, ActionFactory & action_factory)
     268             : {
     269           0 :   PorousFlowApp::associateSyntax(syntax, action_factory);
     270           0 : }
     271             : void
     272         831 : PorousFlowApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
     273             : {
     274        4155 :   syntax.registerActionSyntax("PorousFlowUnsaturated", "PorousFlowUnsaturated", "add_user_object");
     275        4155 :   syntax.registerActionSyntax("PorousFlowUnsaturated", "PorousFlowUnsaturated", "add_kernel");
     276        4155 :   syntax.registerActionSyntax("PorousFlowUnsaturated", "PorousFlowUnsaturated", "add_material");
     277        4155 :   syntax.registerActionSyntax("PorousFlowUnsaturated", "PorousFlowUnsaturated", "add_aux_variable");
     278        4155 :   syntax.registerActionSyntax("PorousFlowUnsaturated", "PorousFlowUnsaturated", "add_aux_kernel");
     279        3324 :   registerAction(PorousFlowUnsaturated, "add_user_object");
     280        3324 :   registerAction(PorousFlowUnsaturated, "add_kernel");
     281        3324 :   registerAction(PorousFlowUnsaturated, "add_material");
     282        3324 :   registerAction(PorousFlowUnsaturated, "add_aux_variable");
     283        3324 :   registerAction(PorousFlowUnsaturated, "add_aux_kernel");
     284             : 
     285        4155 :   syntax.registerActionSyntax(
     286         831 :       "PorousFlowFullySaturated", "PorousFlowFullySaturated", "add_user_object");
     287        4155 :   syntax.registerActionSyntax("PorousFlowFullySaturated", "PorousFlowFullySaturated", "add_kernel");
     288        4155 :   syntax.registerActionSyntax(
     289         831 :       "PorousFlowFullySaturated", "PorousFlowFullySaturated", "add_material");
     290        4155 :   syntax.registerActionSyntax(
     291         831 :       "PorousFlowFullySaturated", "PorousFlowFullySaturated", "add_aux_variable");
     292        4155 :   syntax.registerActionSyntax(
     293         831 :       "PorousFlowFullySaturated", "PorousFlowFullySaturated", "add_aux_kernel");
     294        3324 :   registerAction(PorousFlowFullySaturated, "add_user_object");
     295        3324 :   registerAction(PorousFlowFullySaturated, "add_kernel");
     296        3324 :   registerAction(PorousFlowFullySaturated, "add_material");
     297        3324 :   registerAction(PorousFlowFullySaturated, "add_aux_variable");
     298        3324 :   registerAction(PorousFlowFullySaturated, "add_aux_kernel");
     299             : 
     300        4155 :   syntax.registerActionSyntax("PorousFlowBasicTHM", "PorousFlowBasicTHM", "add_user_object");
     301        4155 :   syntax.registerActionSyntax("PorousFlowBasicTHM", "PorousFlowBasicTHM", "add_kernel");
     302        4155 :   syntax.registerActionSyntax("PorousFlowBasicTHM", "PorousFlowBasicTHM", "add_material");
     303        4155 :   syntax.registerActionSyntax("PorousFlowBasicTHM", "PorousFlowBasicTHM", "add_aux_variable");
     304        4155 :   syntax.registerActionSyntax("PorousFlowBasicTHM", "PorousFlowBasicTHM", "add_aux_kernel");
     305        3324 :   registerAction(PorousFlowBasicTHM, "add_user_object");
     306        3324 :   registerAction(PorousFlowBasicTHM, "add_kernel");
     307        3324 :   registerAction(PorousFlowBasicTHM, "add_material");
     308        3324 :   registerAction(PorousFlowBasicTHM, "add_aux_variable");
     309        3324 :   registerAction(PorousFlowBasicTHM, "add_aux_kernel");
     310        3330 : }

Generated by: LCOV version 1.11