Go to the documentation of this file.
35 using T::computeOffDiagJacobian;
54 using T::computeJacobianBlock;
109 _jvar_max_size(this->_fe_problem.getNonlinearSystemBase().nVariables()),
115 auto number = it.value()->number();
131 "Calling mapJvarToCvar for an invalid Moose variable number. Maybe an AuxVariable?");
134 mooseAssert(cit >= 0,
"Calling mapJvarToCvar for a variable not coupled to this kernel.");
143 "Calling mapJvarToCvar for an invalid Moose variable number. Maybe an AuxVariable?");
144 return jvar_map[jvar];
155 const auto num = this->coupledComponents(parameter_name);
156 for (std::size_t i = 0; i < num; ++i)
158 const auto number = this->getVar(parameter_name, i)->number();
162 jvar_map[number] = i;
189 T::computeOffDiagJacobian(jvar);
201 T::computeJacobianBlock(jvar);
virtual void computeJacobianBlock(MooseVariableFEBase &jvar) override
std::vector< int > JvarMap
std::map< std::string, JvarMap > _jvar_local_map
map of local look-up tables for specific parameters
Base class ("Veneer") that implements the actual mapping from 'jvar' in into the _coupled_moose_vars ...
const JvarMap & getParameterJvarMap(std::string parameter_name)
Make a specific map for a given parameter name representing a couple variable (vector)
unsigned int mapJvarToCvar(unsigned int jvar)
Return index into the _coupled_moose_vars array for a given jvar.
virtual void computeOffDiagJacobian(MooseVariableFEBase &jvar) override
JvarMapInterfaceBase(const InputParameters ¶meters)
JvarMapKernelInterface(const InputParameters ¶meters)
Interface class ("Veneer") for IntegratedBC to provide a mapping from 'jvar' in computeJacobianBlock ...
const std::size_t _jvar_max_size
number of nonlinear variables in the system
_enumerate_range< Iterator > enumerate(Iterator first, Iterator last, typename std::iterator_traits< Iterator >::difference_type initial)
Enumerate function for iterating over a range and obtaining both a reference to the underlying type a...
JvarMapIntegratedBCInterface(const InputParameters ¶meters)
Interface class ("Veneer") for Kernel to provide a mapping from 'jvar' in computeQpOffDiagJacobian in...
JvarMap _jvar_map
look-up table to determine the _coupled_moose_vars index for the jvar parameter
unsigned int number() const
Get variable number coming from libMesh.