https://mooseframework.inl.gov
NavierStokesPhysicsBase.h
Go to the documentation of this file.
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 #pragma once
11 
12 #include "PhysicsBase.h"
13 
14 #define registerNavierStokesPhysicsBaseTasks(app_name, derived_name) \
15  registerPhysicsBaseTasks(app_name, derived_name); \
16  registerMooseAction(app_name, derived_name, "add_geometric_rm")
17 
24 {
25 public:
27 
29 
30 protected:
33  {
34  return (parameters().get<std::string>("registered_identifier") == "Modules/NavierStokesFV");
35  }
36 
38  InputParameters getAdditionalRMParams() const override;
39 
41  virtual unsigned short getNumberAlgebraicGhostingLayersNeeded() const = 0;
42 
45 };
static InputParameters validParams()
NavierStokesPhysicsBase(const InputParameters &parameters)
virtual unsigned short getNumberAlgebraicGhostingLayersNeeded() const =0
Return the number of ghosting layers needed.
bool _define_variables
Whether to define variables if they do not exist.
const InputParameters & parameters() const
Base class to hold common parameters and utilities between all the weakly compressible Navier Stokes-...
InputParameters getAdditionalRMParams() const override
Parameters to change or add relationship managers.
bool usingNavierStokesFVSyntax() const
Detects if we are using the new Physics syntax or the old NavierStokesFV action.