18#include "libmesh/system.h"
19#include "libmesh/transient_system.h"
23template <
typename ComputeValueType>
51 virtual void reinit()
override;
59 virtual void addVariable(
const std::string & var_type,
60 const std::string &
name,
69 void addKernel(
const std::string & kernel_name,
70 const std::string &
name,
73#ifdef MOOSE_KOKKOS_ENABLED
75 const std::string &
name,
86 const std::string &
name,
101 std::vector<dof_id_type> & ,
102 std::vector<dof_id_type> & )
override;
110#ifdef MOOSE_KOKKOS_ENABLED
154#ifdef MOOSE_KOKKOS_ENABLED
165 bool skip_current_to_old)
override;
177 template <
typename AuxKernelType>
180 template <
typename AuxKernelType>
209 std::vector<std::vector<MooseVariableFieldBase *>>
_elem_vars;
215#ifdef MOOSE_KOKKOS_ENABLED
250#ifdef MOOSE_KOKKOS_ENABLED
boundary_id_type BoundaryID
AuxKernelTempl< Real > AuxKernel
AuxKernelTempl< RealVectorValue > VectorAuxKernel
AuxKernelTempl< RealEigenVector > ArrayAuxKernel
Base class for auxiliary kernels.
Base class for creating new auxiliary kernels and auxiliary boundary conditions.
Base class for making kernels that work on auxiliary scalar variables.
A system that holds auxiliary variables.
virtual void copyCurrentIntoPreviousNL()
Copies the current solution into the previous nonlinear iteration solution.
NumericVector< Number > & solutionInternal() const override
Internal getter for solution owned by libMesh.
bool needMaterialOnSide(BoundaryID bnd_id)
Indicated whether this system needs material properties on boundaries.
virtual void jacobianSetup() override
void computeElementalVars(ExecFlagType type, int group)
virtual void residualSetup() override
virtual libMesh::System & sys()
void computeScalarVars(ExecFlagType type)
void addKernel(const std::string &kernel_name, const std::string &name, InputParameters ¶meters)
Adds an auxiliary kernel.
void clearScalarVariableCoupleableTags()
virtual void compute(ExecFlagType type) override
Compute auxiliary variables.
virtual void copyAdditionalStateBackwards(Moose::SolutionIterationType iteration_type, bool skip_current_to_old) override
Copy system-owned state not represented by solution vectors.
const ExecuteMooseObjectWarehouse< AuxKernelBase > & kokkosElemAuxWarehouse() const
const NumericVector< Number > * _current_solution
solution vector from nonlinear solver
virtual const libMesh::System & system() const override
virtual void subdomainSetup() override
void addKokkosKernel(const std::string &kernel_name, const std::string &name, InputParameters ¶meters)
const ExecuteMooseObjectWarehouse< AuxKernelBase > & kokkosNodalAuxWarehouse() const
ExecuteMooseObjectWarehouse< AuxKernelBase > _kokkos_elemental_aux_storage
virtual libMesh::Order getMinQuadratureOrder() override
Get the minimum quadrature order for evaluating elemental auxiliary variables.
virtual void initSolutionState() override
Initializes the solution state.
std::vector< AuxKernelBase * > sortedAuxKernels(THREAD_ID tid, bool active_only)
Get every AuxKernel, of any value type, on a thread, in dependency order.
void variableWiseRelativeSolutionDifferenceNorm(std::vector< Number > &var_diffs) const
Computes and stores ||current - old|| / ||current|| for each variable in the given vector.
void setScalarVariableCoupleableTags(ExecFlagType type)
std::set< std::string > getDependObjects()
virtual void customSetup(const ExecFlagType &exec_type) override
void computeNodalVecVars(ExecFlagType type, int group)
void computeElementalVecVars(ExecFlagType type, int group)
void computeMortarNodalVars(ExecFlagType type, int group)
void buildKokkosAuxStages()
Group the active Kokkos auxiliary kernels of each execution flag into stages that can each be compute...
virtual void restoreAdditionalStates() override
Restore system-owned state not represented by solution vectors.
void addScalarKernel(const std::string &kernel_name, const std::string &name, InputParameters ¶meters)
Adds a scalar kernel.
virtual void reinitElem(const Elem *elem, THREAD_ID tid) override
Reinit an element assembly info.
virtual libMesh::System & system() override
Get the reference to the libMesh system.
virtual ~AuxiliarySystem()
std::set< int > _execution_order_groups
Execution order groups present within the simulation.
virtual void addVariable(const std::string &var_type, const std::string &name, InputParameters ¶meters) override
Canonical method for adding a variable.
ExecuteMooseObjectWarehouse< AuxKernelBase > _kokkos_nodal_aux_storage
const NumericVector< Number > *const & currentSolution() const override
The solution vector that is currently being operated on.
virtual void updateActive(THREAD_ID tid)
virtual void augmentSparsity(libMesh::SparsityPattern::Graph &, std::vector< dof_id_type > &, std::vector< dof_id_type > &) override
Will modify the sparsity pattern to add logical geometric connections.
std::vector< std::vector< MooseVariableFieldBase * > > _elem_vars
Elemental variables.
void computeNodalVarsHelper(const TheWarehouse::Query &query)
std::vector< std::vector< MooseVariableFEBase * > > _nodal_vars
virtual void serializeSolution()
void computeNodalVars(ExecFlagType type, int group)
std::map< ExecFlagType, std::vector< KokkosAuxStage > > _kokkos_aux_stages
Active Kokkos auxiliary kernels of each execution flag grouped into stages, where a kernel coupling t...
ExecuteMooseObjectWarehouse< AuxScalarKernel > _aux_scalar_storage
virtual void reinitElemFace(const Elem *elem, unsigned int side, THREAD_ID tid) override
Reinit assembly info for a side of an element.
void computeElementalArrayVars(ExecFlagType type, int group)
virtual void timestepSetup() override
virtual void initialSetup() override
Setup Functions.
std::vector< NumericVector< Number > * > _solution_state
The current states of the solution (0 = current, 1 = old, etc)
virtual void reinit() override
Reinitialize the system when the degrees of freedom in this system have changed.
void kokkosCompute(ExecFlagType type, int group)
void computeElementalVarsHelper(const TheWarehouse::Query &query)
void computeNodalArrayVars(ExecFlagType type, int group)
A class for storing MooseObjects based on execution flag.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
Registration, update, and allocation logic for linear finite-volume cell gradients.
void updateFVGradient(const LinearFVGradientReader &reader)
Update a registered gradient reader explicitly.
LinearFVGradientReader registerFVGradient(unsigned int variable_number, const FVGradientMethod &method, unsigned int oldest_state=0)
Register a variable for gradient values produced by a method object.
Class for containing MooseEnum item information.
A storage container for MooseObjects that inherit from SetupInterface.
Interface for objects interacting with the PerfGraph.
Base class for a system (of equations)
SubProblem & subproblem()
virtual const std::string & name() const
QueryCache is a convenient way to construct and pass around (possible partially constructed) warehous...
Base class for time integrators.
std::unique_ptr< NumericVector< Number > > solution
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
Kokkos auxiliary kernels computed in a single device pass.
MooseObjectWarehouse< AuxKernelBase > nodal
Nodal kernels, which read coupled values from DOFs and are computed first.
MooseObjectWarehouse< AuxKernelBase > elemental
Elemental kernels, which read coupled values from the cached quadrature point values.