https://mooseframework.inl.gov
ElectromagneticHeatingMaterial.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "ADMaterial.h"
13 
19 {
20 public:
22 
24 
25  virtual void computeQpProperties() override;
27  virtual void computeFieldValue();
29  virtual void computeJouleHeating();
30 
31 protected:
35  const bool _is_vector;
56 };
const ADVectorVariableValue & _efield
The electric field defined from a vector variable.
ADMaterialProperty< RealVectorValue > & _electric_field_complex
Complex electric field material property.
virtual void computeFieldValue()
Function that defines the field depending on supplied variable type.
ADMaterialProperty< RealVectorValue > & _electric_field
Electric field material property.
const ADVariableGradient & _grad_potential
The electric field defined from the gradient of a scalar variable.
ElectromagneticHeatingMaterial(const InputParameters &parameters)
Material class used to provide the electric field as a material property and computes the residual co...
const Real & _heating_scaling
Coefficient to multiply by heating term.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const ADMaterialProperty< Real > & _elec_cond
Real component of the material conductivity (in S/m)
virtual void computeJouleHeating()
Function that defines the residual for Joule heating.
const InputParameters & parameters() const
const ADVectorVariableValue & _efield_complex
The complex component of the electric field, needed for time-harmonic formulations.
const MooseVariableFieldBase & _electric_field_var
The variable data of the supplied variable for the electric field.
ADMaterialProperty< Real > & _electric_field_heating
Joule heating residual material property.
MooseEnum _formulation
The domain formulation of the EM residuals (either TIME or FREQUENCY)
MooseEnum _solver
The solver formulation the electric field (either ELECTROSTATIC or ELECTROMAGNETIC) ...
const bool _is_vector
True if the supplied variable is a vector.