Integrator for laplacian plus constant #4085
Answered
by
tzanio
nilsfriess
asked this question in
Q&A
Replies: 1 comment 1 reply
-
double k = 4.0;
ConstantCoefficient one(1.0);
ConstantCoefficient kappa2(k*k);
a.AddDomainIntegrator(new DiffusionIntegrator(one));
a.AddDomainIntegrator(new MassIntegrator(kappa2)); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
nilsfriess
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm currently playing around with mfem and right now I'm trying to setup a simple FE discretisation for the differential operator
-Delta u + k^2 I
, whereI
is the identity. What would be the best approach to create amfem::BilinearForm
for this operator?Beta Was this translation helpful? Give feedback.
All reactions