Interface for objects that need coupling capabilities. More...
#include <LazyCoupleable.h>
Public Member Functions | |
LazyCoupleable (const MooseObject *moose_object) | |
Constructing the object. More... | |
virtual | ~LazyCoupleable ()=default |
void | setFEProblemPtr (FEProblemBase *fe_problem) |
Sets the FEProblem pointer which can (and is expected) to happen long after this interface is constructed. More... | |
Private Member Functions | |
void | init () |
unsigned int & | coupled (const std::string &var_name, unsigned int comp=0) |
Returns the index for a coupled variable by name. More... | |
Private Attributes | |
const InputParameters & | _l_parameters |
const std::string & | _l_name |
The name of the object this interface is part of. More... | |
FEProblemBase * | _l_fe_problem |
Reference to FEProblemBase. More... | |
MooseApp & | _l_app |
Reference to the MooseApp. More... | |
std::map< std::string, std::unique_ptr< unsigned int > > | _coupled_var_numbers |
Coupled vars whose values we provide. More... | |
Interface for objects that need coupling capabilities.
Definition at line 24 of file LazyCoupleable.h.
LazyCoupleable::LazyCoupleable | ( | const MooseObject * | moose_object | ) |
Constructing the object.
parameters | Parameters that come from constructing the object |
nodal | true if we need to couple with nodal values, otherwise false |
Definition at line 20 of file LazyCoupleable.C.
|
virtualdefault |
|
private |
Returns the index for a coupled variable by name.
var_name | Name of coupled variable |
comp | Component number for vector of coupled variables |
Definition at line 56 of file LazyCoupleable.C.
|
private |
Definition at line 39 of file LazyCoupleable.C.
Referenced by setFEProblemPtr().
void LazyCoupleable::setFEProblemPtr | ( | FEProblemBase * | fe_problem | ) |
Sets the FEProblem pointer which can (and is expected) to happen long after this interface is constructed.
Once this pointer is set, this interface can retrieve the information it requires from the underlying class and the internal methods can be called. Errors are throw if internal methods are called when this pointer is nullptr.
Definition at line 32 of file LazyCoupleable.C.
Referenced by coupled().
|
private |
Coupled vars whose values we provide.
Definition at line 69 of file LazyCoupleable.h.
Referenced by coupled(), init(), and LazyCoupleable().
|
private |
|
private |
Reference to FEProblemBase.
Definition at line 63 of file LazyCoupleable.h.
Referenced by coupled(), init(), and setFEProblemPtr().
|
private |
The name of the object this interface is part of.
Definition at line 60 of file LazyCoupleable.h.
|
private |
Definition at line 57 of file LazyCoupleable.h.
Referenced by LazyCoupleable().