Pointwise evaluation of a vector
See original GitHub issueHi @kinnala ,
Is it possible to do pointwise evalulation of InteriorBasis
on a set of input points for ElementHex1
?
I can see an interpolator
method, but not sure of what it does. I am trying:
import numpy as np
from skfem import *
mesh = MeshHex()
elem = ElementHex1()
velem = ElementVectorH1(elem)
basis = InteriorBasis(mesh, velem, MappingIsoparametric(mesh, elem), intorder=1)
eval = basis.interpolator(np.random.random(basis.N))
but this raises:
Traceback (most recent call last):
File ".\generateStructuredMesh.py", line 110, in <module>
eval = basis.interpolator(np.random.random(basis.N))
File "C:\Users\bshri\AppData\Local\Programs\Python\Python37\lib\site-packages\skfem\assembly\basis\interior_basis.py", line 141, in interpolator
finder = self.mesh.element_finder()
File "C:\Users\bshri\AppData\Local\Programs\Python\Python37\lib\site-packages\skfem\mesh\mesh.py", line 342, in element_finder
raise NotImplementedError("element_finder not implemented "
NotImplementedError: element_finder not implemented for the given Mesh type.
Is this something that you put there for future implementation?
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
(2.2) Definition of pointwise vector operations: (a) The sum f + ...
L(X, Y ) is a vector space under pointwise addition and multiplication by a scalar. Linearity is preserved not only under (pointwise) addition ......
Read more >Pointwise multiplication on vector-valued function spaces with ...
Abstract: We investigate pointwise multipliers on vector-valued function spaces over \mathbb{R}^d, equipped with Muckenhoupt weights.
Read more >Pointwise descriptions of nearly incompressible vector fields ...
Journal of Mathematical Analysis and Applications ... Pointwise descriptions of nearly incompressible vector fields with bounded curl.
Read more >Evaluating the Normal Vector - YouTube
In this video we go through a standard cross product to find the equation of the vector normal to our plane.Watch this video...
Read more >Evaluation codes
the pointwise calculations going on entirely inside the field F. It is not surprising that Vα is an F-space, since its set of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There is now a preliminary implementation for tets and 1D meshes available for testing in #487 .
An additional remark: inverse mapping of
MappingIsoparametric
will clip the results to the unit cube for robustness so the above approach might require some tuning.