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 21 of file PFCRFFKernelAction.h.

Constructor & Destructor Documentation

◆ PFCRFFKernelAction()

PFCRFFKernelAction::PFCRFFKernelAction ( const InputParameters &  params)

Definition at line 28 of file PFCRFFKernelAction.C.

30 {
31 }
HHPFCRFFSplitKernelAction(const InputParameters &params)

Member Function Documentation

◆ act()

void PFCRFFKernelAction::act ( )
virtual

Reimplemented from HHPFCRFFSplitKernelAction.

Definition at line 34 of file PFCRFFKernelAction.C.

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

Member Data Documentation

◆ _L_name_base

const std::string HHPFCRFFSplitKernelAction::_L_name_base
protectedinherited

Definition at line 30 of file HHPFCRFFSplitKernelAction.h.

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

◆ _n_name

const VariableName HHPFCRFFSplitKernelAction::_n_name
protectedinherited

Definition at line 31 of file HHPFCRFFSplitKernelAction.h.

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

◆ _num_L

const unsigned int HHPFCRFFSplitKernelAction::_num_L
protectedinherited

Definition at line 29 of file HHPFCRFFSplitKernelAction.h.

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


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