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 22 of file CHPFCRFFSplitKernelAction.h.

Constructor & Destructor Documentation

CHPFCRFFSplitKernelAction::CHPFCRFFSplitKernelAction ( const InputParameters &  params)

Definition at line 34 of file CHPFCRFFSplitKernelAction.C.

35  : Action(params),
36  _num_L(getParam<unsigned int>("num_L")),
37  _L_name_base(getParam<std::string>("L_name_base")),
38  _n_name(getParam<NonlinearVariableName>("n_name"))
39 {
40 }
const NonlinearVariableName _n_name

Member Function Documentation

void CHPFCRFFSplitKernelAction::act ( )
virtual

Definition at line 43 of file CHPFCRFFSplitKernelAction.C.

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

Member Data Documentation

const std::string CHPFCRFFSplitKernelAction::_L_name_base
private

Definition at line 31 of file CHPFCRFFSplitKernelAction.h.

Referenced by act().

const NonlinearVariableName CHPFCRFFSplitKernelAction::_n_name
private

Definition at line 32 of file CHPFCRFFSplitKernelAction.h.

Referenced by act().

const unsigned int CHPFCRFFSplitKernelAction::_num_L
private

Definition at line 30 of file CHPFCRFFSplitKernelAction.h.

Referenced by act().


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