Cardinal
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
NekInitAction Class Reference

#include <NekInitAction.h>

Inheritance diagram for NekInitAction:
[legend]

Public Member Functions

 NekInitAction (const InputParameters &parameters)
 
virtual void act () override
 

Static Public Member Functions

static InputParameters validParams ()
 

Protected Member Functions

std::map< std::string, std::map< std::string, std::string > > readPar (const std::string &_setupFile, MPI_Comm comm)
 

Protected Attributes

const bool & _initialize_usrwrk
 whether Cardinal will be responsible for initializing the usrwrk array More...
 
const unsigned int & _n_usrwrk_slots
 

Static Protected Attributes

static int _n_cases
 number of NekRS cases created More...
 

Detailed Description

Initialize Nek application by calling nekrs::setup. This needs to be in an action so that it occurs before the [Mesh] is constructed (which is normally the first MOOSE object constructed) because we build the [Mesh] relying on internal stuff in NekRS, which needs to be initialized at that point.

Constructor & Destructor Documentation

◆ NekInitAction()

NekInitAction::NekInitAction ( const InputParameters &  parameters)

Member Function Documentation

◆ act()

virtual void NekInitAction::act ( )
overridevirtual

◆ readPar()

std::map<std::string, std::map<std::string, std::string> > NekInitAction::readPar ( const std::string &  _setupFile,
MPI_Comm  comm 
)
protected

Copied from NekRS because they do not want to move this to a file other than main.cpp :|

◆ validParams()

static InputParameters NekInitAction::validParams ( )
static

Member Data Documentation

◆ _initialize_usrwrk

const bool& NekInitAction::_initialize_usrwrk
protected

whether Cardinal will be responsible for initializing the usrwrk array

◆ _n_cases

int NekInitAction::_n_cases
staticprotected

number of NekRS cases created

◆ _n_usrwrk_slots

const unsigned int& NekInitAction::_n_usrwrk_slots
protected

Number of slices/slots to allocate in nrs->usrwrk to hold fields for coupling (i.e. data going into NekRS, written by Cardinal), or used for custom user actions, but not for coupling.


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