Comments (4)
from gimli.
I can confirm the issue.
A quick test with the new fea implementation (yet unpublished) shows the resulting field need to be exact and mesh independend due to the bilinear field characteristics:
Its a little unclear where this comes from and when I will have time to fix it. In the meantime you can set the Dirichlet values to the nodes directly which seems to work as expected.
def BCN(node):
return (-X * node.x() -Y * node.y())
bc={'Node': [[b.node(0).id(), BCN(b.node(0))] for b in mesh.findBoundaryByMarker(1,5)]}
uh = pg.solve(mesh, a=[[1, 1]], bc=bc, verbose=True)
u = (-pg.x(mesh) - pg.y(mesh))
print('normL2(u-uh):', pg.solver.normL2(u-uh, mesh))
Also there seems an issue with the showMesh
keyword argument in the current release which I need to fix.
Many thanks for reporting,
Carsten
Edit: Added the code for normL2 calculation
Edit 2: The workarround only works for p=1 meshes, for p=2 also the middle node (b.node(2)) need to be considered.
from gimli.
The problem comes from the numbering directions of the boundary nodes. Not every node(0) is connected to node(1) from its neighbour, some are screwed due to triangle. So if you assign the value for one boundary to its node(0) might lead to wrong assigments. This is unfortunately broken be 'very old design' and I'm unsure if this can be fixed with moderate afford. Until the new implementation comes online, the little bit unconveniant direct node assignment will work.
from gimli.
Hi @carsten-forty2,
thanks for the quick and insightful response!
The news about a re-implementation of the FE code basis is great!
Cheers,
Ralph
from gimli.
Related Issues (20)
- Joint inversion module missing HOT 4
- bug-typo/Cm05.cols HOT 1
- The cellMarkers is different before and after the inversion process AND inversion mesh setting HOT 2
- This may be a corrupt mesh error HOT 7
- pyvista shows no result graph when I tried to reproduce the example '3D surface ERT inversion' HOT 2
- ERT: blanked out cells when adding new regions to the mesh HOT 4
- Cannot import name 'RVector3' form 'pygimli.core.core HOT 6
- how to fix import pygimli error libcholmod.so.3 on Mybinder HOT 9
- Plot Inversion Result from Another Software use Pygimli HOT 2
- fitReciprocalErrorModel IP data HOT 7
- Seeking Help with 3D Magnetic Inversion HOT 2
- Question about geometric factor for an ERT survey with submerged and terrestrial electrodes HOT 4
- ERTManager.invert() --> error: malloc(): unsorted double linked list corrupted HOT 4
- Failure to install on mac HOT 6
- Wrong coordinates in tutorial notebook HOT 4
- pyGIMLi and NUM_THREADS HOT 7
- 3d geometry with topography and fixed thin layer HOT 5
- pg.interpolate() giving error with regionwise regularization HOT 8
- Discussion regarding `errorVals`-`absoluteError`-`relativeError` HOT 4
- Petrophysical joint inversion: smooth the output result HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gimli.