Questions tagged [mesh]
Questions on the use and creation of meshes including the use of MeshRegion, ElementMesh, and TetGenLink.
834
questions
0
votes
1
answer
31
views
How to increase the mesh size in NDsolve
I am trying to increase the domain over which I solve a differential equation with NDsolve. However, when I tried doing this I started getting very poor results. After some googling I learned that ...
3
votes
1
answer
74
views
How to Implement Progressive Cell Coloring in a General Mesh or Tiling?
Here are some examples of what I am talking about using Voronoi for simplicity:
Given:
That can be colored depending on which cell is randomly chosen:
I feel like there would be a better name for ...
1
vote
1
answer
63
views
Finite element mesh not resolving small features
I am trying to create a 2D finite element mesh. This geometry is a box with a $8 \times 2$ array of disks and a "L"-shape slab removed. I built the region using ...
2
votes
0
answers
38
views
How to control maximum and minimum coordinates in ImageMesh[]?
I am trying to use ImageMesh to create a mesh from voxel data. On this mesh I would like to calculate the coordinates of the vertices sitting on the boundary, an equivalent approach would be to ...
5
votes
3
answers
437
views
Voronoi mesh of a circular image
I have a circular image (below) and would like to obtain a Voronoi mesh.
I am able to obtain the centers of the cells inside the image as
...
7
votes
2
answers
378
views
How to find stationary points graphically?
I have the following Mathematica code:
...
0
votes
1
answer
70
views
Why do internal edges appear in MeshRegion?
why MeshRegion[] introduces additional (useless) edges in the construction of polyhedra:
...
2
votes
1
answer
86
views
How to avoid overlapping mesh lines ParametricPlot3D?
I have the following plot obtained using ParametricPlot3D:
obtained via the following code:
...
2
votes
1
answer
345
views
Strange behavior of `VoronoiMesh`
In this very simple example the helpful function VoronoiMeshworks as expected. Every point pts is shown with a polygonal ...
4
votes
1
answer
149
views
AceFEM-generated mesh versus Mathematica mesh: How to extrude 2D mesh to create a 3D mesh in AceFEM
The packages MeshTools (@Pinti) and FEMAddons seem to feature similar functions. I sometimes had strange (i.e. inconsistent results when meshing would work/not work without changing anything). Which ...
6
votes
1
answer
186
views
How to create a quality periodic Voronoi mesh bounded by the unit square featuring only regular or irregular hexagons?
I have been trying to build a 2D periodic Voronoi mesh ideally containing only hexagons (apart near the boundaries of the unit square). Here is an example of what I am after. Here I have perfect ...
1
vote
0
answers
86
views
NDSolve`FEM` 3D problem [closed]
I solved Laplace's differential equation in 2D with functions from the NDSolveFEM package and everything worked fine, but when I extended it to 3D, it doesn't work ...
2
votes
1
answer
140
views
How to define styles for a mesh based on a function of element index
My main objective is to have control over style of each element in a mesh. I don't quite understand how ElementMeshToGraphicsComplex works. It looks very cool and ...
0
votes
2
answers
101
views
How best to 2D plot nearly vertical function regions?
There has got to be some better way of plotting near vertical function values other than the default 2D Mesh. The only specifications that I want to give are the function definition and the horizontal ...
8
votes
4
answers
293
views
Shading region under (or over) a curve in horizontal bands
It seems like this should be simple, but I have spent most of the day trying to find a similar example on the web and there appears to be nothing remotely similar. Since I cannot find a way to make ...