Comments (13)
Neat that's logical. Yea, corners could be optional as naturally some some geometries don't have them.
I'll get to work sometime today.
from seismicmesh.
Extrusion, yes, also a good idea. Gmsh has extrude
, revolve
, twist
. For all of these, it's possible to create a 3D model from a 2D one programmatically. That's for the future perhaps.
from seismicmesh.
A tuple as opposed to a list? Why so strict? (Genuine question, perhaps it does make sense.)
Because tuple is immutable and the idea is that the bbox shouldn't mutate.
from seismicmesh.
Okay made some progress over on #106 ....will add the intersection class in a bit. One thing that I'd like to handle is if you want to compute the intersection between say a disk (dim=2) and a cube (dim=3), it could work it out and produce a cylinder.
Maybe the latter isn't a great idea, not sure.
from seismicmesh.
intersection between say a disk (dim=2) and a cube (dim=3)
Doesn't seem to make sense when first reading it.
I'd say better get union, intersection, and difference down. Perhaps a few primitive shapes like cube, ball, wedge, I don't know. With this, one should be able to do quite a lot already.
from seismicmesh.
Yea, I agree. I think that's more of what you would call an extrusion.
from seismicmesh.
Another minor improvement would be to have an additional keyword argument to plot_sizing_function, such that one can visualize it when using containers etc.
def plot_sizing_function(cell_size, stride=1, comm=None, filename=None):
# ...
if filename is None:
plt.show()
else:
plt.savefig(filename)
from seismicmesh.
ah yea, that's a good suggestion.
from seismicmesh.
The following still fails
import SeismicMesh
points, cells = SeismicMesh.generate_mesh(
h0=0.1,
domain=SeismicMesh.geometry.Rectangle([-1.0, +1.0, -1.0, +1.0]),
edge_length=0.1,
)
ValueError: `bbox` must be a tuple
The idea here would be that you don't need to specify a bbox
explicitly; it should be taken from domain
.
from seismicmesh.
The idea here would be that you don't need to specify a bbox explicitly; it should be taken from domain.
It is taken from domain.
It's failing because bbox isn't a tuple
from seismicmesh.
A tuple as opposed to a list? Why so strict? (Genuine question, perhaps it does make sense.)
from seismicmesh.
This should work
import SeismicMesh
points, cells = SeismicMesh.generate_mesh(
domain=SeismicMesh.geometry.Rectangle((-1.0, +1.0, -1.0, +1.0)),
edge_length=0.1,
)
from seismicmesh.
Can perhaps also be closed.
from seismicmesh.
Related Issues (20)
- [Feature request] Mixed dimensional embedment meshing HOT 10
- Add check for pybin11 > 2.5
- Implement stretching and translation HOT 1
- Creation of extruded meshes
- Python 3.9 HOT 6
- new pybind11 HOT 3
- Deactivate Laplacian smoothing for uniform meshes
- intersection with variable smoothness `k` HOT 1
- bending
- [Feature request] Stop laplacian2 function from moving fixed points HOT 1
- exdown no longer is maintained HOT 5
- switch to github-actions
- pyamg == 4.0.0? HOT 5
- F strings and type hints
- gradient limiting structured grids with non-equal grid spacings amongst all axes
- Update benchmarks
- dz, dx, and dy should be float HOT 4
- Support for meshing S-velocity models HOT 1
- ModuleNotFoundError: No module named '_fast_geometry' HOT 3
- Improving 2d mesh accuracy HOT 4
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 seismicmesh.