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 "INSADMomentumMeshAdvection.h" 11 : #include "INSADObjectTracker.h" 12 : 13 : registerMooseObject("NavierStokesApp", INSADMomentumMeshAdvection); 14 : 15 : InputParameters 16 164 : INSADMomentumMeshAdvection::displacementParams() 17 : { 18 164 : auto params = emptyInputParameters(); 19 328 : params.addRequiredCoupledVar("disp_x", "The x displacement"); 20 328 : params.addCoupledVar("disp_y", "The y displacement"); 21 328 : params.addCoupledVar("disp_z", "The z displacement"); 22 164 : return params; 23 0 : } 24 : 25 : InputParameters 26 82 : INSADMomentumMeshAdvection::validParams() 27 : { 28 82 : InputParameters params = ADVectorKernelValue::validParams(); 29 82 : params += INSADMomentumMeshAdvection::displacementParams(); 30 82 : params.addClassDescription( 31 : "Corrects the convective derivative for situations in which the fluid mesh is dynamic."); 32 82 : return params; 33 0 : } 34 : 35 44 : INSADMomentumMeshAdvection::INSADMomentumMeshAdvection(const InputParameters & parameters) 36 : : ADVectorKernelValue(parameters), 37 44 : _advected_mesh_strong_residual( 38 44 : getADMaterialProperty<RealVectorValue>("advected_mesh_strong_residual")) 39 : { 40 44 : setDisplacementParams(*this); 41 44 : } 42 : 43 : ADRealVectorValue 44 360404 : INSADMomentumMeshAdvection::precomputeQpResidual() 45 : { 46 360404 : return _advected_mesh_strong_residual[_qp]; 47 : }