https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
22public:
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
34protected:
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
45 const Real _target_norm;
46};
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
Definition MooseMesh.h:95
Nonlinear system to be solved.
Renormalization of a vector variable (i.e.
void initialize() override
Called before execute() is ever called so that data can be cleared.
static InputParameters validParams()
std::vector< unsigned int > _var_numbers
void threadJoin(const UserObject &) override
This method is not used and should not be used in a custom GeneralUserObject.
MooseMesh & _mesh
reference to the mesh
void execute() override
Execute method.
const std::vector< VariableName > & _var_names
names of the variables to renormalize
Base class for user-specific data.
Definition UserObject.h:20