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 "VectorMaterialRealVectorValueAux.h" 11 : 12 : #include "metaphysicl/raw_type.h" 13 : 14 : registerMooseObject("MooseApp", VectorMaterialRealVectorValueAux); 15 : registerMooseObject("MooseApp", ADVectorMaterialRealVectorValueAux); 16 : 17 : template <bool is_ad> 18 : InputParameters 19 28580 : VectorMaterialRealVectorValueAuxTempl<is_ad>::validParams() 20 : { 21 28580 : auto params = MaterialAuxBaseTempl<RealVectorValue, is_ad, false, RealVectorValue>::validParams(); 22 : 23 28580 : params.addClassDescription( 24 : "Converts a vector-quantity material property into a vector auxiliary variable"); 25 : 26 28580 : return params; 27 0 : } 28 : 29 : template <bool is_ad> 30 26 : VectorMaterialRealVectorValueAuxTempl<is_ad>::VectorMaterialRealVectorValueAuxTempl( 31 : const InputParameters & parameters) 32 26 : : MaterialAuxBaseTempl<RealVectorValue, is_ad, false, RealVectorValue>(parameters) 33 : { 34 26 : } 35 : 36 : template <bool is_ad> 37 : RealVectorValue 38 614400 : VectorMaterialRealVectorValueAuxTempl<is_ad>::getRealValue() 39 : { 40 614400 : return MetaPhysicL::raw_value(this->_full_value); 41 : } 42 : 43 : template class VectorMaterialRealVectorValueAuxTempl<false>; 44 : template class VectorMaterialRealVectorValueAuxTempl<true>;