Line data Source code
1 : /**********************************************************************/ 2 : /* DO NOT MODIFY THIS HEADER */ 3 : /* Swift, a Fourier spectral solver for MOOSE */ 4 : /* */ 5 : /* Copyright 2024 Battelle Energy Alliance, LLC */ 6 : /* ALL RIGHTS RESERVED */ 7 : /**********************************************************************/ 8 : 9 : #include "ReciprocalLaplacianFactor.h" 10 : 11 : registerMooseObject("SwiftApp", ReciprocalLaplacianFactor); 12 : 13 : InputParameters 14 172 : ReciprocalLaplacianFactor::validParams() 15 : { 16 172 : InputParameters params = TensorOperator<>::validParams(); 17 172 : params.addClassDescription("Reciprocal space Laplacian IC."); 18 344 : params.addParam<Real>("factor", 1.0, "Prefactor"); 19 172 : return params; 20 0 : } 21 : 22 86 : ReciprocalLaplacianFactor::ReciprocalLaplacianFactor(const InputParameters & parameters) 23 172 : : TensorOperator<>(parameters), _factor(getParam<Real>("factor")), _k2(_domain.getKSquare()) 24 : { 25 86 : } 26 : 27 : void 28 84 : ReciprocalLaplacianFactor::computeBuffer() 29 : { 30 252 : _u = -_k2 * _factor; 31 84 : }