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 "LatticeBoltzmannOperator.h" 10 : #include "LatticeBoltzmannProblem.h" 11 : #include "LatticeBoltzmannStencilBase.h" 12 : 13 : InputParameters 14 0 : LatticeBoltzmannOperator::validParams() 15 : { 16 0 : InputParameters params = TensorOperator::validParams(); 17 0 : params.addClassDescription("LatticeBoltzmannOperator object."); 18 0 : return params; 19 0 : } 20 : 21 0 : LatticeBoltzmannOperator::LatticeBoltzmannOperator(const InputParameters & parameters) 22 : : TensorOperator(parameters), 23 0 : _lb_problem(dynamic_cast<LatticeBoltzmannProblem &>(_tensor_problem)), 24 0 : _stencil(_lb_problem.getStencil()), 25 0 : _ex(_stencil._ex.clone().reshape({1, 1, 1, _stencil._q})), 26 0 : _ey(_stencil._ey.clone().reshape({1, 1, 1, _stencil._q})), 27 0 : _ez(_stencil._ez.clone().reshape({1, 1, 1, _stencil._q})), 28 0 : _w(_stencil._weights.clone().reshape({1, 1, 1, _stencil._q})), 29 0 : _shape(_lb_problem.getExtendedShape()), 30 0 : _shape_q(_lb_problem.getExtendedShapeQ()) 31 : { 32 0 : }