www.mooseframework.org
Public Member Functions | Protected Attributes | List of all members
PFCRFFKernelAction Class Reference

#include <PFCRFFKernelAction.h>

Inheritance diagram for PFCRFFKernelAction:
[legend]

Public Member Functions

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

Protected Attributes

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

Detailed Description

Definition at line 19 of file PFCRFFKernelAction.h.

Constructor & Destructor Documentation

PFCRFFKernelAction::PFCRFFKernelAction ( const InputParameters &  params)

Definition at line 24 of file PFCRFFKernelAction.C.

26 {
27 }
HHPFCRFFSplitKernelAction(const InputParameters &params)

Member Function Documentation

void PFCRFFKernelAction::act ( )
virtual

Reimplemented from HHPFCRFFSplitKernelAction.

Definition at line 30 of file PFCRFFKernelAction.C.

31 {
32  // Create the two kernels required for the n_variable, starting with the time derivative
33  InputParameters poly_params = _factory.getValidParams("TimeDerivative");
34  poly_params.set<NonlinearVariableName>("variable") = _n_name;
35  poly_params.set<bool>("use_displaced_mesh") = getParam<bool>("use_displaced_mesh");
36  _problem->addKernel("TimeDerivative", "IE_n", poly_params);
37 
38  // First, we have to create the vector containing the names of the real L variables
39  std::vector<VariableName> real_v(_num_L);
40  for (unsigned int l = 0; l < _num_L; ++l)
41  real_v[l] = _L_name_base + Moose::stringify(l) + "_real";
42 
43  // CHPFCRFF kernel
44  poly_params = _factory.getValidParams("CHPFCRFF");
45  poly_params.set<NonlinearVariableName>("variable") = _n_name;
46  poly_params.set<std::vector<VariableName>>("v") = real_v;
47  poly_params.applyParameters(parameters());
48  _problem->addKernel("CHPFCRFF", "CH_bulk_n", poly_params);
49 
50  // Loop over the L_variables
52 }

Member Data Documentation

const std::string HHPFCRFFSplitKernelAction::_L_name_base
protectedinherited

Definition at line 28 of file HHPFCRFFSplitKernelAction.h.

Referenced by HHPFCRFFSplitKernelAction::act(), and act().

const VariableName HHPFCRFFSplitKernelAction::_n_name
protectedinherited

Definition at line 29 of file HHPFCRFFSplitKernelAction.h.

Referenced by HHPFCRFFSplitKernelAction::act(), and act().

const unsigned int HHPFCRFFSplitKernelAction::_num_L
protectedinherited

Definition at line 27 of file HHPFCRFFSplitKernelAction.h.

Referenced by HHPFCRFFSplitKernelAction::act(), and act().


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