www.mooseframework.org
Public Member Functions | Private Attributes | List of all members
CHPFCRFFSplitKernelAction Class Reference

#include <CHPFCRFFSplitKernelAction.h>

Inheritance diagram for CHPFCRFFSplitKernelAction:
[legend]

Public Member Functions

 CHPFCRFFSplitKernelAction (const InputParameters &params)
 
virtual void act ()
 

Private Attributes

const unsigned int _num_L
 
const std::string _L_name_base
 
const NonlinearVariableName _n_name
 

Detailed Description

Definition at line 24 of file CHPFCRFFSplitKernelAction.h.

Constructor & Destructor Documentation

◆ CHPFCRFFSplitKernelAction()

CHPFCRFFSplitKernelAction::CHPFCRFFSplitKernelAction ( const InputParameters &  params)

Definition at line 38 of file CHPFCRFFSplitKernelAction.C.

39  : Action(params),
40  _num_L(getParam<unsigned int>("num_L")),
41  _L_name_base(getParam<std::string>("L_name_base")),
42  _n_name(getParam<NonlinearVariableName>("n_name"))
43 {
44 }
const NonlinearVariableName _n_name

Member Function Documentation

◆ act()

void CHPFCRFFSplitKernelAction::act ( )
virtual

Definition at line 47 of file CHPFCRFFSplitKernelAction.C.

48 {
49  // Create the two kernels required for the n_variable, starting with the time derivative
50  InputParameters poly_params = _factory.getValidParams("TimeDerivative");
51  poly_params.set<NonlinearVariableName>("variable") = _n_name;
52  poly_params.set<bool>("use_displaced_mesh") = getParam<bool>("use_displaced_mesh");
53  _problem->addKernel("TimeDerivative", "IE_n", poly_params);
54 
55  // First, we have to create the vector containing the names of the real L variables
56  std::vector<VariableName> real_v(_num_L);
57  for (unsigned int l = 0; l < _num_L; ++l)
58  real_v[l] = _L_name_base + Moose::stringify(l) + "_real";
59 
60  // CHPFCRFF kernel
61  poly_params = _factory.getValidParams("CHPFCRFF");
62  poly_params.applyParameters(parameters());
63  poly_params.set<NonlinearVariableName>("variable") = _n_name;
64  poly_params.set<std::vector<VariableName>>("v") = real_v;
65  _problem->addKernel("CHPFCRFF", "CH_bulk_n", poly_params);
66 }
const NonlinearVariableName _n_name

Member Data Documentation

◆ _L_name_base

const std::string CHPFCRFFSplitKernelAction::_L_name_base
private

Definition at line 33 of file CHPFCRFFSplitKernelAction.h.

Referenced by act().

◆ _n_name

const NonlinearVariableName CHPFCRFFSplitKernelAction::_n_name
private

Definition at line 34 of file CHPFCRFFSplitKernelAction.h.

Referenced by act().

◆ _num_L

const unsigned int CHPFCRFFSplitKernelAction::_num_L
private

Definition at line 32 of file CHPFCRFFSplitKernelAction.h.

Referenced by act().


The documentation for this class was generated from the following files: