https://mooseframework.inl.gov
PointwiseRenormalizeVector.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "GeneralUserObject.h"
13 #include "MooseMesh.h"
14 
16 
21 {
22 public:
24 
26 
27  void initialize() override;
28  void execute() override;
29  void finalize() override;
30 
31  // only needed for ElementUserObjects and NodalUseroObjects
32  void threadJoin(const UserObject &) override {}
33 
34 protected:
37 
39  const std::vector<VariableName> & _var_names;
40 
41  // internal ID numbers of the variables to renormalize
42  std::vector<unsigned int> _var_numbers;
43 
46 };
void execute() override
Execute method.
static InputParameters validParams()
const std::vector< VariableName > & _var_names
names of the variables to renormalize
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
void initialize() override
Called before execute() is ever called so that data can be cleared.
Nonlinear system to be solved.
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
Definition: MooseMesh.h:88
std::vector< unsigned int > _var_numbers
MooseMesh & _mesh
reference to the mesh
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Renormalization of a vector variable (i.e.
const Real _target_norm
desired norm
PointwiseRenormalizeVector(const InputParameters &parameters)
const InputParameters & parameters() const
Get the parameters of the object.
void finalize() override
Finalize.
void threadJoin(const UserObject &) override
This method is not used and should not be used in a custom GeneralUserObject.
Base class for user-specific data.
Definition: UserObject.h:40