- Thank you received: 1
'ngsolve.comp.SumOfIntegrals' object has no attribute 'SetDefinedOnElements'
4 years 5 months ago #2760
by dong
The attached file come from
this diccusion
with a small change.
The part that I changed is:
In many example on the forum, a+=something*dx is used to define a bilinear form for a weak formulation instead of using SymbolicBFI. I think they are interchangeable, so I guessed the above code can be rewrite as in the following one.
Then, there is an error when I run the file.
I'm just wondering if there is any way to code in the second way, which is equivalent to the first one such that the original code works.
Many thanks in advanced.
The part that I changed is:
Code:
interfacebfi = SymbolicBFI (cf1+cf2+cf3, VOL, skeleton=True )
interfacebfi.SetDefinedOnElements(interface_indicator)
a += interfacebfi
In many example on the forum, a+=something*dx is used to define a bilinear form for a weak formulation instead of using SymbolicBFI. I think they are interchangeable, so I guessed the above code can be rewrite as in the following one.
Code:
interfacebfi = (cf1+cf2+cf3)*dx(skeleton=True )
interfacebfi.SetDefinedOnElements(interface_indicator)
a += interfacebfi
Then, there is an error when I run the file.
Code:
AttributeError: 'ngsolve.comp.SumOfIntegrals' object has no attribute 'SetDefinedOnElements'
I'm just wondering if there is any way to code in the second way, which is equivalent to the first one such that the original code works.
Many thanks in advanced.
Attachments:
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
4 years 5 months ago #2809
by christopher
Replied by christopher on topic 'ngsolve.comp.SumOfIntegrals' object has no attribute 'SetDefinedOnElements'
Hi,
you are right, this was missing.
It is added in the current master and nightly and next release builds.
There you can use
Best
Christopher
you are right, this was missing.
It is added in the current master and nightly and next release builds.
There you can use
Code:
... * dx(definedonelements=bitarray)
Best
Christopher
The following user(s) said Thank You: dong
Time to create page: 0.099 seconds