- Thank you received: 0
Question to element numbering/indexing
4 years 8 months ago #2445
by NilsHM
Question to element numbering/indexing was created by NilsHM
Hello everyone!
I'm working with element indices in python and C++ and I'm getting strange results.
In python I get the element list with:
where the list order matches the element.nr :
In C++ I get the element number in two different ways:
and
Is the element numbering the same between the two languages?
I noticed the the python element object also has a index value:
What does that mean?
Thanks for the help!
I'm working with element indices in python and C++ and I'm getting strange results.
In python I get the element list with:
Code:
elements = [e for e in fes.Elements()]
Code:
elements[i].nr == i
In C++ I get the element number in two different ways:
Code:
elnr = mip.GetTransformation().GetElementNr();
Code:
FESpace::Element el
elnr = el.Nr();
Is the element numbering the same between the two languages?
I noticed the the python element object also has a index value:
Code:
elements[i].index
Thanks for the help!
4 years 8 months ago - 4 years 8 months ago #2446
by lkogler
tells you which domain (or surface) the element is part of.
The others should all coincide.
Best,
Lukas
Replied by lkogler on topic Question to element numbering/indexing
Code:
elements[i].index
The others should all coincide.
Best,
Lukas
Last edit: 4 years 8 months ago by lkogler.
The following user(s) said Thank You: NilsHM
Time to create page: 0.096 seconds