Create a temperature field and heat conduction #16234
-
Hi everyone, I want to create a temperature field (the central region is hot). I use an AuxVariables named "T" and FunctionAux of Auxkernel to create this field. It can work. But when I use "HeatConduction" kernel to couple the heat conduction equation, there is the error "No nonlinear variable named T found. Did you specify an auxiliary variable when you meant to specify a nonlinear variable (or vice-versa)?" [AuxVariables] [heat] My question is how can I build this temperature field and use the "HeatConduction" kernel at the same time? Best, Peng |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey Peng, The problem here is that when you're using You've got to decide which one you want to do. Is Perhaps what you're trying to do is set an initial condition for |
Beta Was this translation helpful? Give feedback.
Hey Peng,
The problem here is that when you're using
T
in theHeatConduction
Kernel, you are telling MOOSE that you want the solution forT
assuming it is governed by the heat equation. However, when you setT
to be an AuxVariable, you are telling MOOSE that you want to control the dynamics ofT
using theFunctionAux
.You've got to decide which one you want to do. Is
T
a dynamical variable, or are you settingT
externally using yourFunctionAux
?Perhaps what you're trying to do is set an initial condition for
T
, and then solve for its evolution? If so, use aFunctionIC
.