https://mooseframework.inl.gov
Loading...
Searching...
No Matches
GrayLambertNeumannBC.C
Go to the documentation of this file.
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
11#include "MathUtils.h"
12
14
16
19{
21 params.addRequiredParam<UserObjectName>("surface_radiation_object_name",
22 "Name of the GrayLambertSurfaceRadiationBase UO");
23 params.addParam<bool>(
24 "reconstruct_emission",
25 true,
26 "Flag to apply constant heat flux on sideset or reconstruct emission by T^4 law.");
27 params.addClassDescription("This BC imposes a heat flux density that is computed from the "
28 "GrayLambertSurfaceRadiationBase userobject.");
29 return params;
30}
31
33 : IntegratedBC(parameters),
34 _glsr_uo(getUserObject<GrayLambertSurfaceRadiationBase>("surface_radiation_object_name")),
35 _reconstruct_emission(getParam<bool>("reconstruct_emission"))
36{
37}
38
39Real
49
50Real
52{
53 // this is not the exact Jacobian but it ensures correct scaling
56 _phi[_j][_qp];
57}
registerMooseObject("HeatTransferApp", GrayLambertNeumannBC)
Boundary condition for radiative heat that is computed by the GrayLambertSurfaceRadiationBase userobj...
static InputParameters validParams()
GrayLambertNeumannBC(const InputParameters &parameters)
virtual Real computeQpJacobian() override
virtual Real computeQpResidual() override
const GrayLambertSurfaceRadiationBase & _glsr_uo
GrayLambertSurfaceRadiationBase computes the heat flux on a set of surfaces in radiative heat transfe...
Real getSurfaceIrradiation(BoundaryID id) const
public interface of this UserObject
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
unsigned int _i
const BoundaryID & _current_boundary_id
unsigned int _j
const VariableValue & _u
static InputParameters validParams()
const VariablePhiValue & _phi
const VariableTestValue & _test
T pow(T x, int e)