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 3740 : RayTracingApp::validParams() 19 : { 20 3740 : InputParameters params = MooseApp::validParams(); 21 : 22 3740 : params.set<bool>("use_legacy_material_output") = false; 23 3740 : params.set<bool>("use_legacy_initial_residual_evaluation_behavior") = false; 24 : 25 3740 : 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 3740 : RayTracingApp::registerAll(Factory & f, ActionFactory & af, Syntax & syntax) 39 : { 40 3740 : Registry::registerObjectsTo(f, {"RayTracingApp"}); 41 7480 : Registry::registerActionsTo(af, {"RayTracingApp"}); 42 : 43 3740 : f.app().theWarehouse().registerAttribute<AttribRayTracingStudy>("ray_tracing_study", nullptr); 44 : 45 : // Adds [RayKernels] block 46 7480 : registerSyntaxTask("AddRayKernelAction", "RayKernels/*", "add_ray_kernel"); 47 7480 : registerMooseObjectTask("add_ray_kernel", RayKernel, false); 48 7480 : addTaskDependency("add_ray_kernel", "add_kernel"); 49 : 50 : // Adds [RayBCs] block 51 7480 : registerSyntaxTask("AddRayBCAction", "RayBCs/*", "add_ray_boundary_condition"); 52 7480 : registerMooseObjectTask("add_ray_boundary_condition", RayBoundaryCondition, false); 53 7480 : addTaskDependency("add_ray_boundary_condition", "add_kernel"); 54 3740 : } 55 : 56 : void 57 3740 : RayTracingApp::registerApps() 58 : { 59 3740 : registerApp(RayTracingApp); 60 3740 : } 61 : 62 : extern "C" void 63 0 : RayTracingApp__registerAll(Factory & f, ActionFactory & af, Syntax & s) 64 : { 65 0 : RayTracingApp::registerAll(f, af, s); 66 0 : } 67 : extern "C" void 68 0 : RayTracingApp__registerApps() 69 : { 70 0 : RayTracingApp::registerApps(); 71 0 : }