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 : #pragma once 11 : 12 : #include "WCNSFVScalarTransportPhysicsBase.h" 13 : 14 : #define registerWCNSFVScalarTransportBaseTasks(app_name, derived_name) \ 15 : registerMooseAction(app_name, derived_name, "add_variable"); \ 16 : registerMooseAction(app_name, derived_name, "add_ic"); \ 17 : registerMooseAction(app_name, derived_name, "add_fv_kernel"); \ 18 : registerMooseAction(app_name, derived_name, "add_fv_bc") 19 : 20 : /** 21 : * Creates all the objects needed to solve the Navier Stokes scalar transport equations 22 : * using the nonlinear finite volume weakly-compressible discretization (WCNSFV) 23 : */ 24 0 : class WCNSFVScalarTransportPhysics : public WCNSFVScalarTransportPhysicsBase 25 : { 26 : public: 27 : static InputParameters validParams(); 28 : 29 : WCNSFVScalarTransportPhysics(const InputParameters & parameters); 30 : 31 : private: 32 : virtual void addSolverVariables() override; 33 : 34 : /** 35 : * Functions adding kernels for the incompressible / weakly-compressible scalar transport 36 : * equation 37 : * If the material properties are not constant, some of these can be used for 38 : * weakly-compressible simulations as well. 39 : */ 40 : virtual void addScalarTimeKernels() override; 41 : virtual void addScalarDiffusionKernels() override; 42 : virtual void addScalarAdvectionKernels() override; 43 : /// Equivalent of NSFVAction addScalarCoupledSourceKernels 44 : virtual void addScalarSourceKernels() override; 45 : 46 : /// Functions adding boundary conditions for the incompressible simulation. 47 : /// These are used for weakly-compressible simulations as well. 48 : virtual void addScalarInletBC() override; 49 275 : virtual void addScalarWallBC() override {} 50 : virtual void addScalarOutletBC() override; 51 : };