Issue with coupledDiv for Hydrogen Embrittlement Governing Equation #29038
-
Check these boxes if you have followed the posting rules.
QuestionHello, I hope you are doing great! Hello, I hope you are doing well! I am trying to implement the following governing equation for Hydrogen Embrittlement: The equation involves the use of divergence. I am attempting to use coupledDiv as suggested in the MOOSE documentation, but I encounter the following error when compiling my application: /home/lriaomol/projects/otter/src/kernel/KernelEq1.C:51:19: error: 'coupledDiv' was not declared in this scope; did you mean 'coupledDot'? Could you please assist in resolving this issue? Additionally, I am using the article “Phase Field Modeling of Hydrogen Embrittlement” by Huang (2020) as the basis for my model, which you can find here. Here is the kernelEq1.c #include "KernelEq1.h" registerMooseObject("otterApp", KernelEq1); InputParameters KernelEq1::KernelEq1(const InputParameters & parameters) : Real
} Real |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Hello
|
Beta Was this translation helpful? Give feedback.
-
Thank you so much for your response, @GiudGiud, I really appreciate it! I just have a quick clarification: In my system of equations, I have 4 unknowns and 4 equations, and I am creating one kernel for each unknown. When I compile the app, will it automatically solve for all 4 unknowns? Is this the correct approach? |
Beta Was this translation helpful? Give feedback.
Hello
coupledDiv
should be used the same way that coupledValue is used, in the constructor intializer's list, and you have to specify the name of a variable, you cannot just specify an entire expression to take the divergence of