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.

specify intrule in dx/ds formulation

More
4 years 7 months ago #1840 by Guosheng Fu
Hello,

I am switching SymbolicBFIs to dx/ds syntax.
But, I can not specify user defined int-rules (e.g. mass lumping) in dx formulation.
Is there a fix?

Best,
Guosheng
More
4 years 7 months ago #1855 by joachim
Hi Guosheng,

Adding integration rules with the dx syntax was missing, I just added it.
You can now provide an integration rule for every element shape like that:
Code:
a += u*v*dx(intrules={TRIG:ir})

Actually, it is also possible with the current code by this workaround:
Code:
a.integrators[0].SetIntegrationRule(TRIG,ir)
By adding a dx-integral to a BilinearForm, it is internally converted to a SymbolicBFI.

best, Joachim
Attachments:
Time to create page: 0.106 seconds