Skip to content

new Kernel: Porous Flow' style QpJac (Hardly converged) Vs. General hand-coding QpJac (easily converged) #27907

Discussion options

You must be logged in to vote

OK, thinking some more and I think your derivatives are correct for the case where you are using nodal properties. I think you just need to add something like

  if (_i != _j)
    return 0.0;

at the start of QpJac() for the same reason that PorousFlowMassTimeDerivative does (where it has a comment to remind us As the fluid mass is lumped to the nodes, only non-zero terms are for _i==_j). So the derivative of density, mass fraction, should be 0 if _i != _j

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@cpgr
Comment options

cpgr Jun 17, 2024
Collaborator

@cpgr
Comment options

cpgr Jun 17, 2024
Collaborator

@cpgr
Comment options

cpgr Jun 17, 2024
Collaborator

@cpgr
Comment options

cpgr Jun 17, 2024
Collaborator

Answer selected by Bearunner
@Bearunner
Comment options

@Bearunner
Comment options

@Bearunner
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants