FormSystemMatrix for NonlinearForm-types ?
#4048
Closed
j-signorelli
started this conversation in
Ideas
Replies: 2 comments 7 replies
-
|
@j-signorelli can't you get it from |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
You can checkout ex10p. I think you can assemble matrices when evaluating |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am not certain if there is any similar / preferred capability already, but if not: I think it would be useful to have an ability to assemble a$u$ .
Matrixwith eliminated essential BCs from a givenNonlinearForm, provided a solution vectorJust to explain my motivation for this: I am in the process of basically setting up Example 16p but w/ Newton iterations,
where there is a nonlinear mass matrix$M_{ij}= \displaystyle \int_{\Omega}\rho C(u_h)\phi_i\phi_jd\vec{x}$ and stiffness matrix $K_{ij} = \displaystyle \int_{\Omega}k(u_h)\nabla\phi_{il}\nabla\phi_{lj}d\vec{x}$ . I have written
NonlinearFormIntegrator's for them that implementAssembleElementVectorandAssembleElementGradfor Newton iterations.For$\mathbf{K}$ to get the action of it on $\vec{u}$ to obtain a $\mathbf{M}$ at the previous timestep only.
ConductionOperator::Mult, I can just callParNonlinearForm::MultforVectorfor the RHS at the previous timestep, but unfortunately I have no easy way to get the LHS as aHypreParMatrixfrom theParNonlinearFormforI think this update would require moving
AssembleElementMatrixfromBilinearFormIntegratorup to its parentNonlinearFormIntegratorand then generalizing it to allow input for a solution vector, like:and then having a similar header for
FormSystemMatrixthat takes in a solution vector.This just seemed more straightforward/cleaner to me than having an entirely separate
ParBilinearFormthat I have to update + reassemble at every timestep just for accomplishing this, but absolutely please feel free to let me know if there is any other/better approaches! I am still relatively new to MFEM/FEA.Beta Was this translation helpful? Give feedback.
All reactions