Line data Source code
1 : //* This file is part of SALAMANDER: Software for Advanced Large-scale Analysis of MAgnetic 2 : //* confinement for Numerical Design, Engineering & Research, 3 : //* A multiphysics application for modeling plasma facing components * 4 : //* https://github.com/idaholab/salamander 5 : //* https://mooseframework.inl.gov/salamander 6 : //* 7 : //* SALAMANDER is powered by the MOOSE Framework 8 : //* https://www.mooseframework.inl.gov 9 : //* 10 : //* Licensed under LGPL 2.1, please see LICENSE for details 11 : //* https://www.gnu.org/licenses/lgpl-2.1.html 12 : //* 13 : //* Copyright 2025, Battelle Energy Alliance, LLC 14 : //* ALL RIGHTS RESERVED 15 : //* 16 : 17 : #include "VelocityInitializerBase.h" 18 : 19 : InputParameters 20 1318 : VelocityInitializerBase::validParams() 21 : { 22 1318 : auto params = GeneralUserObject::validParams(); 23 1318 : params.addClassDescription( 24 : "Base class for defining how particles are given an initial velocity distribution."); 25 2636 : params.addParam<unsigned int>("seed", 26 2636 : 0, 27 : "An additional seed for the random number generators that may be " 28 : "used when sampling initial particle velocities."); 29 1318 : return params; 30 0 : } 31 : 32 655 : VelocityInitializerBase::VelocityInitializerBase(const InputParameters & parameters) 33 1310 : : GeneralUserObject(parameters), _seed(getParam<unsigned int>("seed")) 34 : { 35 655 : }