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 "INSFVAction.h" 11 : #include "MooseApp.h" 12 : #include "TheWarehouse.h" 13 : #include "INSFVAttributes.h" 14 : 15 : registerMooseAction("NavierStokesApp", INSFVAction, "ns_meta_action"); 16 : 17 : InputParameters 18 14273 : INSFVAction::validParams() 19 : { 20 14273 : return Action::validParams(); 21 : } 22 : 23 14273 : INSFVAction::INSFVAction(const InputParameters & parameters) : Action(parameters) {} 24 : 25 : void 26 14273 : INSFVAction::act() 27 : { 28 14273 : if (_current_task == "ns_meta_action") 29 : { 30 14273 : _app.theWarehouse().registerAttribute<AttribINSFVBCs>("insfvbcs", 0); 31 28546 : _app.theWarehouse().registerAttribute<AttribINSFVMomentumResidualObject>( 32 : "insfv_residual_object", false); 33 : } 34 14273 : }