Implementing a set of equations #25639
Replies: 1 comment 5 replies
-
|
Hello
Yes, but this choice is consequential. This will determine what is on-diagonal and off-diagonal in the linearized system matrices that you solve during the linear steps of the nonlinear solve.
correct.
I think the idea is right, though:
To verify your implementation, I would set 3 of the 4 variables to known functions, and solve for the 4th by hand. Then make sure the solver can solve each of these single equations. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I would just like to check that my understanding of how MOOSE works is correct before I get really stuck into debugging my code.
I am trying to solve a rather nasty set of equations, for variables$\psi_R$ , $\psi_I$ , $\Phi$ , and $\underline{j}$ :
To do this I have written one kernel for each equation to solve them.
As I have 4 variables, I have to pick a variable for each equation to solve for, but it is arbitrary which I choose, as long as each variable has at least one active kernel. (is this correct?)
The other variables in the equation need to be coupled in as
adCoupledValueetc. (is this correct?)For example, the kernel for equation two is:
Does this look like I'm doing the right thing?
Is this the correct way to approach the problem?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions