https://mooseframework.inl.gov
INSADMomentumMeshAdvection.C
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 
11 #include "INSADObjectTracker.h"
12 
14 
17 {
18  auto params = emptyInputParameters();
19  params.addRequiredCoupledVar("disp_x", "The x displacement");
20  params.addCoupledVar("disp_y", "The y displacement");
21  params.addCoupledVar("disp_z", "The z displacement");
22  return params;
23 }
24 
27 {
30  params.addClassDescription(
31  "Corrects the convective derivative for situations in which the fluid mesh is dynamic.");
32  return params;
33 }
34 
36  : ADVectorKernelValue(parameters),
37  _advected_mesh_strong_residual(
38  getADMaterialProperty<RealVectorValue>("advected_mesh_strong_residual"))
39 {
40  setDisplacementParams(*this);
41 }
42 
45 {
47 }
Subtracts the mesh velocity from the convection term in the Navier-Stokes momentum equation...
static InputParameters validParams()
InputParameters emptyInputParameters()
static InputParameters displacementParams()
registerMooseObject("NavierStokesApp", INSADMomentumMeshAdvection)
virtual ADRealVectorValue precomputeQpResidual() override
static InputParameters validParams()
void addClassDescription(const std::string &doc_string)
const ADMaterialProperty< RealVectorValue > & _advected_mesh_strong_residual
The strong residual for this object, computed by material classes to eliminate computation duplicatio...
INSADMomentumMeshAdvection(const InputParameters &parameters)
static void setDisplacementParams(T &mesh_convection_obj)
unsigned int _qp