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 "RayTracingApp.h" 11 : #include "Moose.h" 12 : #include "AppFactory.h" 13 : #include "MooseSyntax.h" 14 : 15 : #include "RayTracingAttributes.h" 16 : 17 : InputParameters 18 2001 : RayTracingApp::validParams() 19 : { 20 2001 : InputParameters params = MooseApp::validParams(); 21 : 22 2001 : params.set<bool>("use_legacy_material_output") = false; 23 2001 : params.set<bool>("use_legacy_initial_residual_evaluation_behavior") = false; 24 : 25 2001 : return params; 26 0 : } 27 : 28 : registerKnownLabel("RayTracingApp"); 29 : 30 0 : RayTracingApp::RayTracingApp(const InputParameters & parameters) : MooseApp(parameters) 31 : { 32 0 : RayTracingApp::registerAll(_factory, _action_factory, _syntax); 33 0 : } 34 : 35 0 : RayTracingApp::~RayTracingApp() {} 36 : 37 : void 38 2001 : RayTracingApp::registerAll(Factory & f, ActionFactory & af, Syntax & syntax) 39 : { 40 2001 : Registry::registerObjectsTo(f, {"RayTracingApp"}); 41 4002 : Registry::registerActionsTo(af, {"RayTracingApp"}); 42 : 43 2001 : f.app().theWarehouse().registerAttribute<AttribRayTracingStudy>("ray_tracing_study", nullptr); 44 : 45 : // Adds [RayKernels] block 46 4002 : registerSyntaxTask("AddRayKernelAction", "RayKernels/*", "add_ray_kernel"); 47 4002 : registerMooseObjectTask("add_ray_kernel", RayKernel, false); 48 4002 : addTaskDependency("add_ray_kernel", "add_kernel"); 49 : 50 : // Adds [RayBCs] block 51 4002 : registerSyntaxTask("AddRayBCAction", "RayBCs/*", "add_ray_boundary_condition"); 52 4002 : registerSyntax("SetupPeriodicRayBCAction", "RayBCs/*"); 53 4002 : registerMooseObjectTask("add_ray_boundary_condition", RayBoundaryCondition, false); 54 4002 : addTaskDependency("add_ray_boundary_condition", "add_kernel"); 55 2001 : } 56 : 57 : void 58 2001 : RayTracingApp::registerApps() 59 : { 60 2001 : registerApp(RayTracingApp); 61 2001 : } 62 : 63 : extern "C" void 64 0 : RayTracingApp__registerAll(Factory & f, ActionFactory & af, Syntax & s) 65 : { 66 0 : RayTracingApp::registerAll(f, af, s); 67 0 : } 68 : extern "C" void 69 0 : RayTracingApp__registerApps() 70 : { 71 0 : RayTracingApp::registerApps(); 72 0 : }