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