Questions tagged [unstructured-mesh]
The unstructured-mesh tag has no usage guidance.
66
questions
0
votes
1
answer
139
views
Gmsh Python: Specify mesh regularity conditons
I am using python API of Gmsh to generate a mesh for a rectangular domain. I am really new at this. My code looks like this,
...
1
vote
0
answers
58
views
Anisotropic lines identification algorithm
I am implementing an algorithm to identify the anisotropic lines in an unstructured mesh. This is done in the framework of an Agglomeration algorithm for Non-Structured multigrid applied to FV ...
0
votes
2
answers
230
views
How to create random, unstructured mesh of surface
I am working on a supersonic boundary element method (https://github.com/usuaero/MachLine). In order to test its sensitivity to the boundary discretization, I'd like to be able to create "random&...
0
votes
0
answers
58
views
deal.II and curved faces: how can I get the curved description
I'm not a deal.II expert, and while studying step-6 I was reading the documentation of the MappingQ1 class in the deal.II documentation. At some point in the description (https://www.dealii.org/...
2
votes
0
answers
52
views
Centered finite volume scheme for an advective term on an unstructured/irregular/non-uniform grid
Consider the continuity equation
$$\frac{\partial u}{\partial t} + \frac{\partial \Phi}{\partial x} = 0$$
$$\Phi = au + b\frac{\partial u}{\partial x}$$
Suppose I want to solve the above using ...
0
votes
2
answers
449
views
Which algorithms exist to create a tetrahedral volume mesh from an STL file?
Basically just that. I am trying to write a C++ program that reads in an STL and should compute an unstructured tetrahedral volume mesh based on the surface triangulation given by the STL file.
I ...
1
vote
0
answers
39
views
Simultaneously partition all mesh elements (nodes, edges and cells) among processors
The numerical method that I'm implementing stores various fields in various elements of an unstructured triangular mesh. Data may be stored in cells, nodes and even edges of the mesh. For a parallel ...
0
votes
1
answer
479
views
Convert unstructured mesh to structured mesh
I need help to know, how can I convert an unstructured 2d mesh for structured mesh? (Software Gmsh version 4.9.3).
This is my script in Gmsh.
...
0
votes
1
answer
207
views
Unstructured mesh preprocessing
For solving PDE with self written code it is needed to preprocess the data from mesh generators. I recently started shifting from cartesian grid to unstructured.
I finished reading up to FVM part of ...
1
vote
0
answers
148
views
Interpolation of a Concave Mesh
I would like to have an algorithm that interpolates the values attached to nodes in a concave mesh mesh.
To be me precise, assume we have a point cloud P (e.g. in 3 dimensions) and a list of edges E ...
2
votes
1
answer
174
views
Partition mesh into predetermined submeshes
I have a mesh already partitioned into disjoint groups of cells. What I want to achieve is the following.
Obtain the adjacency graph for the cell groups.
Partition the mesh, i.e. generate submeshes ...
2
votes
1
answer
141
views
Developing a meshfree contouring algorithm
I would like to find the contours of a scalar function $u(x,y)$ available as a discrete set of function values $u_i = u(x_i,y_i)$ over a scattered set of points $(x_i,y_i), i=1,...,N$.
In my case, the ...
1
vote
1
answer
51
views
How to evaluate the average value of a polynomial inside the triangle area in finite volume sense?
Consider we have a linear bivariate polynomial:
$$p(x,y)=ax+by+c.$$
To construct the linear polynomial using least square method, we need to evaluate the value of the average polynomial $p$ in at ...
4
votes
2
answers
537
views
Meshing surface of a sphere with a subdomain
I am trying to build a triangle mesh of the surface of a sphere which also includes a subdomain defined by a 'polygon'. Here is a successful example (subdomain defined by the red dots):
Note that the ...
0
votes
0
answers
80
views
How to calculate the interior value of triangular element in edge (vector) finite element?
I was using an edge (vector) finite element to solve electromagnetic diffusion (two-dimensional cases). The element that I used was a triangular element. I have got the result of the finite element in ...
1
vote
2
answers
430
views
How to compute gradient of a cell having a boundary face?
In many situations in unstructured mesh solvers, one needs to compute gradient of arbitrary variable $\phi$ such as temperature or velocity at face centers (one of such situations is correction for ...
2
votes
1
answer
1k
views
How to calculate skewness for a mesh?
I am writing a code to calculate mesh quality stats such as: cell volume, face areas and non-orthogonality between faces (basically something like OpenFOAM's ...
1
vote
0
answers
55
views
Stress visualization for structured and unstrcutured mesh
I put together a FEM solver to do some structural analysis. At the moment I am trying to add stress visualization feature to my code. The post-processing is done with Paraview and the results with ...
2
votes
3
answers
700
views
How is central difference scheme second-order accurate?
In an arbitrarily unstructured mesh, shown in the figure below, in the context of finite volume method, I want to obtain an approximation of $\phi_f$, where $N$ and $P$ are cell centers of adjacent ...
0
votes
1
answer
86
views
Parallel mesh partitioning
When a mesh partitioning takes place and every process works on a part of the mesh is any way to rename the global numbering of nodes(on each process) into a local numbering?Is there any software that ...
4
votes
3
answers
885
views
Why FVM can handle unstructured meshes while FDM cannot?
How come Finite Volume Method(FVM) handle the unstructured meshes and Finite difference Method cannot, whereas in FVM to approximate the fluxes at the boundary we use the central differencing?
My ...
2
votes
2
answers
253
views
How to find out the difference between a structured and unstructured mesh using the file containing the mesh information?
I have two different mesh files (both are .inp files obtained from Abaqus) that represent the exact same geometries with the same boundary conditions, etc. The only difference is that one of them is ...
4
votes
0
answers
438
views
Why wall shear stress calculated from LBM directly and the one calculated based on velocity profile are so different in some cases?
First of all, I hope you accept my apologizes if my question seems off topic here. But, I asked this question in ParaView forum and after a week still I did not receive any response yet, so I'm ...
6
votes
0
answers
688
views
Are there well-known methods for navigating on kd-trees?
When you have a mesh, there are many well-known methods to navigate it, as for example using a half-edge data structure, that allows easy circulation around faces and vertices.
Are there similar ...
1
vote
1
answer
608
views
How I could calculate L2 norm of an unstructured grid?
I want to calculate L2 norm of a 3D unstructured grid to compare my simulation results in two different mesh sizes as coarse and fine. I read this answer and it seems in three-dimensional space, I ...
4
votes
2
answers
664
views
Is there any open-source code for a hybrid 2D mesh (triangles and quadrilaterals)?
The question is pretty much the title. Note that I have lots of experience using open-source meshing tool, e.g. Gmsh and OpenFoam blockMesh & snappyHexMesh. Nevertheless, I have no idea on how to ...
1
vote
1
answer
276
views
Libraries to deal with unstructured grids
I am dealing with a *.cgns file. This mesh format, when saved as an unstructured grid, holds nodes coordinates, nodes connectivity per element and boundary ...
1
vote
0
answers
66
views
Combining fluid flow solver based on lattice Boltzmann method with a mechanical deformation solver based on finite element method
I'm thinking to couple my fluid flow solver based on lattice Boltzmann method with a mechanical deformation solver based on finite element method to take account for solid deformation in my models. In ...
1
vote
1
answer
1k
views
C++ library unstructured mesh writer to VTK format (or similar)
I am working on a 2D unstructured code in C++. I am using gmsh to generate a 2D unstructured mesh and reading it into my program with a library called ...
1
vote
0
answers
66
views
Efficient initial identification of solid or liquid domains for a block structured Cartesian grid generation system
INTRO
Within the last 5 days I was able to generate a block structured Cartesian grid
generation system with a combination of Fortran,C++ and Python.
I am running intersection tests of the ...
6
votes
2
answers
863
views
Unstructured mesh vs hybrid structured/unstructured for numerical simulations
While answering one of the questions on meshing process, I encountered a lack of understanding on my end for the comparison of the mesh quality.
First, consider an unstructured mesh created in GMSH ...
0
votes
1
answer
70
views
Solving the diffusion/heat equation for a randomly distributed set of points in 3D
In this problem I am trying to solve, I have a messy set of points distributed in 3D space, each with a defined temperature. If I would want to calculate the heat transfer scenario in this system, how ...
2
votes
1
answer
791
views
Convert Unstructured Mesh to Structured
I have solved a simple problem on Openfoam, which is a 3D rectangular parallelopiped, filled with rectangular hexahedrons as mesh elements. The structured, mapped mesh was made in ICEM and solved in ...
0
votes
0
answers
89
views
Reconstruction of cells information when given mesh in polyMesh format [duplicate]
The polyMesh format used in OpenFOAM is an intelligent format for which 'cells' file, i.e. the file giving list of nodes that make a cell, is not needed. The way to reconstruct geometry data such as ...
1
vote
0
answers
183
views
BTCS-like method for heat conduction in unstructured triangular grid
I want to write a simple simulation for heat conduction in a unstructured triangular mesh.
I already made it work for a structured rectangular grid with the ADI method, but now I need more complex ...
0
votes
2
answers
259
views
Halo Region Communication in Unstructured Mesh Problems
I'm currently using ParMETIS and it is required to determine the halo region of the local elements in a parallel unstructured mesh. Assume that the mesh is large and cannot be stored on a single ...
7
votes
2
answers
726
views
Mesh ordering algorithms used by COMSOL Multiphysics
Ordering of elements in an unstructured mesh is undoubtedly very important for the performance of computations. For example, it determines the structure of sparse matrices arising from PDE ...
0
votes
1
answer
80
views
simple and fast graph-clustering for paralelization of finite element simulations
I'm learning to use OpenCL to optimize some of my simulations. I realized that I need some sort of Graph-clustering or graph-partitioning to exploit efficiently local memory for un-ordered meshes.
...
2
votes
0
answers
153
views
scalable parallel mesh/amr on unstructured grid
I am trying to code a scalable parallel AMR for unstructured grid. There seems to be three approaches for this
a) Store some global grid info on each processor and partition with parmetis (The ...
6
votes
1
answer
262
views
Working with large mesh files
I am working on some medium to large scale finite element codes. By using established and available tools I am able to have an algorithm that scales well up to about 10,000 cores. Investigating ...
0
votes
2
answers
941
views
2D mesh generator with geometric primitives
The question is exactly as the title:
Which 2D (triangular) mesh generator software can be used which has a set of geometric primitives, controlled mesh size and standard output (.vtk or something ...
5
votes
1
answer
568
views
Finite volume a posteriori error estimation
I'm wondering what alternatives there are to a grid convergence study to judge solution accuracy for a given grid resolution when doing steady-state RANS simulations on an automatically generated ...
0
votes
1
answer
215
views
Meshing software: connectivity between elements and boundary
I am implementing an algorithm which produces a 4d mesh for a cylinder with a given 3d base. This means, I have a 3d mesh and I want to generate a 4d mesh for the corresponding space-time cylinder.
...
2
votes
2
answers
875
views
Getting adjacent cells map for an unstructured polyhedral mesh
I am doing a little project on solving the heat equation using finite-volume method on a solid cube, I converted the polyhedral mesh of the cube to an OpenFOAM mesh.
I have a Python code where I ...
1
vote
1
answer
102
views
Common nodes in two FEM grids
There are two independent tetrahedral FEM grids. Second grid is subset of the first. By subset, I mean: nodes from the second grid are exactly in the same positions as some nodes from the first grid. ...
16
votes
1
answer
266
views
Usefulness of elements with mesh-dependent stability
After doing some mathematics related to the stability of elements in 3D Stokes problem I was slightly shocked to realize that $P_2-P_1$ is not stable for an arbitrary tetrahedral mesh. More precisely, ...
2
votes
0
answers
30
views
Choosing suitable polynomial degree based on information in advection stencil
I'm working on a finite volume advection scheme for unstructured meshes which uses a multidimensional polynomial weighted least squares fit for interpolating from cell centres onto faces.
In 2D, the ...
5
votes
1
answer
633
views
unstructured grid AMR
Are there libraries for conducting parallel AMR on an unstructured grid ? For a finite volume code, polyhedral cells with arbitrarily shaped faces are as easy to handle as hexahedra, and infact ...
4
votes
0
answers
525
views
Large meshing with tetgen [closed]
So I have a point cloud that I am creating a 3D flat rectangular surface from. I'm then turning it into a hollow box and connecting the corners by just dropping this surface mesh down. I need it to ...
1
vote
1
answer
216
views
Conceptual question about fitting of scattered data
What are the problems that arise when fitting (2D or 3D) a set of scattered data? (non uniformly distributed)
I had some data I had to fit and I solved the problem using the ...