https://mooseframework.inl.gov
ProjectionAux.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 "AuxKernel.h"
13 
14 namespace libMesh
15 {
16 class System;
17 }
18 
22 class ProjectionAux : public AuxKernel
23 {
24 public:
26 
28 
29 protected:
30  virtual Real computeValue() override;
31 
33  const VariableValue & _v;
34 
38 
41 
44 
45 private:
47  const Elem * elemOnNodeVariableIsDefinedOn() const;
48 };
Projects from one variable to another.
Definition: ProjectionAux.h:22
virtual Real computeValue() override
Compute and return the value of the aux variable.
Definition: ProjectionAux.C:66
const VariableValue & _v
The variable to project from.
Definition: ProjectionAux.h:33
bool _use_block_restriction_for_source
Whether to use the auxkernel block restriction to limit the values for the source variables...
Definition: ProjectionAux.h:43
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
This class provides an interface for common operations on field variables of both FE and FV types wit...
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
ProjectionAux(const InputParameters &parameters)
Definition: ProjectionAux.C:48
const libMesh::System & _source_sys
The system owning the source variable.
Definition: ProjectionAux.h:40
const Elem * elemOnNodeVariableIsDefinedOn() const
For a node, finds an element we can use to evaluate the (continuous) source variable.
static InputParameters validParams()
Definition: ProjectionAux.C:18
forward declarations
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const MooseVariableFieldBase & _source_variable
A reference to the variable to project from We must use a field variable to support finite volume var...
Definition: ProjectionAux.h:37
const InputParameters & parameters() const
Get the parameters of the object.
Base class for creating new auxiliary kernels and auxiliary boundary conditions.
Definition: AuxKernel.h:36