https://mooseframework.inl.gov
Loading...
Searching...
No Matches
WCNSLinearFVFlowPhysics.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
14
22{
23public:
25
27
28 virtual std::vector<UserObjectName> getSuppliedUserObjects() const override;
29
30protected:
31 virtual void initializePhysicsAdditional() override;
32
33private:
34 virtual void actOnAdditionalTasks() override;
35 virtual void addSolverVariables() override;
36 virtual void addFVInterpolationMethods() override;
41 virtual void addFVKernels() override;
42 virtual void addUserObjects() override;
43
46
52 void addMomentumTimeKernels() override;
54 virtual void addMomentumPressureKernels() override;
55 virtual void addMomentumGravityKernels() override;
56 virtual void addMomentumFrictionKernels() override;
57 virtual void addMomentumBoussinesqKernels() override;
58
59 virtual void addInletBC() override;
60 virtual void addOutletBC() override;
61 virtual void addWallsBC() override;
62 virtual void addSeparatorBC() override {}
63
64 virtual bool hasForchheimerFriction() const override;
65
66 virtual void addRhieChowUserObjects() override;
67 virtual void addFunctorMaterials() override;
68
69 virtual MooseFunctorName getLinearFrictionCoefName() const override
70 {
71 mooseError("Not implemented");
72 }
73
74 unsigned short getNumberAlgebraicGhostingLayersNeeded() const override;
75
79 const std::vector<BoundaryName> _baffle_sidesets;
81 const bool _has_baffles;
84};
const InputParameters & parameters() const
void mooseError(Args &&... args) const
Base class for Physics which create the Navier Stokes flow equations.
Creates all the objects needed to solve the Navier-Stokes equations with the SIMPLE algorithm using t...
virtual void addUserObjects() override
const bool _has_baffles
Whether pressure-jump baffles are present.
const bool _use_reconstructed_pressure_gradient
Whether the momentum pressure kernels use the reconstructed pressure gradient.
virtual void addSolverVariables() override
virtual void addMomentumPressureKernels() override
virtual void addRhieChowUserObjects() override
Function which adds the RhieChow interpolator user objects for weakly and incompressible formulations...
virtual void actOnAdditionalTasks() override
void addMomentumTimeKernels() override
Functions adding kernels for the incompressible momentum equation If the material properties are not ...
virtual void initializePhysicsAdditional() override
unsigned short getNumberAlgebraicGhostingLayersNeeded() const override
Return the number of algebraic ghosting layers needed.
virtual void addMomentumBoussinesqKernels() override
void addFVGradientMethods()
Add the jump-aware and reconstructed gradient methods required by pressure baffles.
virtual void addInletBC() override
Functions adding boundary conditions for the flow simulation.
virtual MooseFunctorName getLinearFrictionCoefName() const override
Get the name of the linear friction coefficient. Returns an empty string if no friction.
virtual void addFVKernels() override
virtual bool hasForchheimerFriction() const override
Return whether a Forchheimer friction model is in use.
static InputParameters validParams()
void addPressureJumpModel()
Add the pressure-jump model acting on the baffle sidesets.
virtual void addMomentumFrictionKernels() override
virtual std::vector< UserObjectName > getSuppliedUserObjects() const override
virtual void addOutletBC() override
virtual void addFVInterpolationMethods() override
virtual void addMomentumGravityKernels() override
virtual void addWallsBC() override
void addPressureCorrectionKernels()
Function adding kernels for the incompressible pressure correction equation.
const bool _non_orthogonal_correction
Whether to use the correction term for non-orthogonality.
virtual void addSeparatorBC() override
const std::vector< BoundaryName > _baffle_sidesets
Sidesets carrying Bernoulli pressure-jump baffles (porous medium treatment only)
virtual void addFunctorMaterials() override