https://mooseframework.inl.gov
CurrentDensity.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 
18 template <bool is_ad>
20 {
21 public:
23 
25 
26 protected:
27  virtual RealVectorValue computeValue() override;
28 
30  const bool & _is_es;
31 
34 
37 
40 };
41 
OutputTools< Real >::VariableGradient VariableGradient
const VariableGradient & _grad_potential
Gradient of electrostatic potential.
Calculates the current density vector field (in A/m^2) when given electrostatic potential (electrosta...
OutputTools< RealVectorValue >::VariableValue VectorVariableValue
CurrentDensityTempl< false > CurrentDensity
const GenericMaterialProperty< Real, is_ad > & _conductivity
Electrical conductivity (in S/m)
const bool & _is_es
Is the current density based on electrostatic potential?
CurrentDensityTempl(const InputParameters &parameters)
const VectorVariableValue & _electric_field
Vector variable of electric field (calculated using full electromagnetic description) ...
typename GenericMaterialPropertyStruct< T, is_ad >::type GenericMaterialProperty
CurrentDensityTempl< true > ADCurrentDensity
virtual RealVectorValue computeValue() override
const InputParameters & parameters() const
static InputParameters validParams()