Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

Element weighting

More
4 years 5 months ago #2063 by NilsHM
Replied by NilsHM on topic Element weighting
Hello Christopher,

thank you! Now the weighting CoefficientFunction works.

For linear problems the everything works as expected but I want to apply the element weights to nonlinear problems as well.
When calling AssembleLinearization of the BilinearForm I get the following error:
Code:
K_weighted.AssembleLinearization(u_full.vec) Evaluate AutoDiff<double> not overloaded, type = class ngfem::MyElementWeightCFin Assemble Element Mat, bfi = Symbolic BFI in AssembleLinearization
Is there a way to make AssembleLinearization work with the custom CoefficientFunction?

Best regards
Nils
More
4 years 5 months ago #2064 by christopher
Replied by christopher on topic Element weighting
Hi
for this derive your function from CoefficientFunctionNoDerivative instead of CoefficientFunction

Best
Christopher
The following user(s) said Thank You: NilsHM
Time to create page: 0.157 seconds