-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MeshLine.load submeshes & boundaries #175
Comments
Just adding
|
which produces line.msh.gz, containing
but only 'left' and 'domain' are loaded, not 'right'. I'm looking into |
I'm wondering whether the problem follows from |
Yes, this is the problem. In the above example, at Lines 314 to 316 in 9ff1fd5
we have Then Lines 324 to 326 in 9ff1fd5
the array([[1, 0]]) I don't know how to fix this. I don't think it can be done at this point of |
I can't recall now the exact reason for doing the sort in |
I think you could as a workaround (for 1D meshes) re-sort |
That sorting is relied upon in a couple of places:
scikit-fem/skfem/mesh/mesh_line.py Lines 44 to 47 in 625ac42
|
So if it's O. K. to drop the sorting of the |
Nothing left here I presume. |
MeshLine.load
warnsfor any input, and fails to read any subdomains and boundaries present.
The immediate cause is that
'line'
is absent from the keys inscikit-fem/skfem/mesh/mesh.py
Lines 286 to 291 in dadd4ba
While the one-dimensional examples to date just use
MeshLine.__init__
, and this suffices for most purposes, it is occasionally useful to generate even one-dimensional meshes externally in Gmsh; e.g. for problems like the ‘composite wall composed of n slabs of thicknesses l1, …, ln and conductivities K1, …, Kn’ of Carslaw & Jaeger (1959, Conduction of Heat in Solids, §3.2 ‘Steady temperature’, Oxford University Press).Minimal example: line.geo.gz.
Generate mesh with
and attempt to load with
The text was updated successfully, but these errors were encountered: