-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add python script for mesh conversion to openFOAM * Update script for openFOAM mesh conversion * Rename python script for openFOAM grid conversion * Update script "convert2foam.py" to fix mesh orientation issues in openFOAM's checkMesh routine * Fix bugs in convert2foam.py * Fix bugs in convert2foam.py * Add example parameter file that covers the mesh of a thin fracture * Add thin fracture example as cpp file * Update parameter files for examples 02 and 06 The files `input/02_square_in_channel.para` and `input/06_airfoil_from_csv.para` generated invalid meshes and have thus be adjusted for it. * Update example 02 cpp file * Remove vertex-edge-intersection check in FrontUpdate.h The call to `vertex.intersects_mesh_edges()`, which checked if a vertex is placed too close to its surrounding edges has been removed. This check led to wrong element sizes when choosing quad layers with very small heights (compared to the global element size). It was also found that this check is not required to pass the current meshing tests and thus has been removed. * Update example 06 to get rid of invalid front edges * Update Readme * Update readme * Update Readme * Add missing call for facet-connectivity-update to smoothing strategies * Remove namespace "TQAlgorithm" * Put includes into TQMesh.h and update examples / application for it * Add single include to TQMesh.h in for each header file * Add MeshChecker * Add input file for ParaReader tests * Put CppUtils includes into single file. Use again separate includes of headers in algorithm part and testing part * Add MeshChecker to TQMeshApp.h & Update Readme * Add CHANGELOG.md
- Loading branch information
Showing
82 changed files
with
2,441 additions
and
1,058 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Changelog | ||
|
||
## [1.3.2] - 2024-06-10 | ||
|
||
### Fixed | ||
|
||
- Add missing call to update of face-connectivity prior to mesh smoothing strategies, | ||
which let to invalid meshing attempts in example 2 and example 6 (based on issue [#24](https://github.com/FloSewn/TQMesh/issues/24)) | ||
([`0ce9393`](https://github.com/FloSewn/TQMesh/commit/0ce9393)) | ||
|
||
### Changed | ||
|
||
- Remove `ve_intersection_` attribute in `src/algorithm/FrontUpdate.h`, which prevented quad layer heights | ||
to be removed adequately in the vicinity of small element sizes and which had no impact on the actual mesh generation | ||
([#26](https://github.com/FloSewn/TQMesh/issues/26)) ([`1762bdd`](https://github.com/FloSewn/TQMesh/commit/1762bdd)) | ||
- Change namespace `TQMesh::TQAlgorithm` simply to `TQMesh` | ||
- Add single include header files `src/algorithm/TQMesh.h` and `src/utils/CppUtils.h` to reduce include statements | ||
within exampes / TQMesh application | ||
|
||
### Added | ||
|
||
- **convert2foam.py** to convert the TQMesh text-format to the OpenFOAM compatible mesh format ([#19](https://github.com/FloSewn/TQMesh/issues/19)) ([`df2a078`](https://github.com/FloSewn/TQMesh/commit/df2a078)) | ||
- New example **thin fracture**, which involves merging two meshes that model a thin fraction interface (based on [#26](https://github.com/FloSewn/TQMesh/issues/26)). | ||
- **MeshChecker** class in `src/algorithm/MeshChecker.h`, which acts as interface for general mesh validity checks ([`7ca7320`](https://github.com/FloSewn/TQMesh/commit/7ca7320)) | ||
(might be extened in future for mesh quality checks) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
|
||
# ---------------- | ||
# Mesh 1 | ||
# ---------------- | ||
Define mesh: | ||
|
||
Define exterior boundary: | ||
0.0, 0.0, 1 | ||
100.0, 0.0, 1 | ||
100.0, 100.0, 1 | ||
0.0, 100.0, 1 | ||
End exterior boundary | ||
|
||
Define interior boundary: | ||
10.0, 10.0, 2 | ||
90.0, 10.0, 2 | ||
90.0, 90.0, 2 | ||
10.0, 90.0, 2 | ||
End interior boundary | ||
|
||
End mesh | ||
|
||
# ---------------- | ||
# Mesh 2 | ||
# ---------------- | ||
Define mesh: | ||
|
||
Define exterior boundary: | ||
10.0, 10.0, 2 | ||
90.0, 10.0, 2 | ||
90.0, 90.0, 2 | ||
10.0, 90.0, 2 | ||
End exterior boundary | ||
|
||
Define interior boundary: | ||
20.0, 20.0, 3 | ||
80.0, 20.0, 3 | ||
80.0, 80.0, 3 | ||
20.0, 80.0, 3 | ||
End interior boundary | ||
|
||
Define interior boundary: | ||
20.0, 20.0, 3 | ||
80.0, 20.0, 3 | ||
80.0, 80.0, 3 | ||
20.0, 80.0, 3 | ||
End interior boundary | ||
|
||
Define interior boundary: | ||
20.0, 20.0, 3 | ||
80.0, 20.0, 3 | ||
80.0, 80.0, 3 | ||
20.0, 80.0, 3 | ||
End interior boundary | ||
|
||
End mesh | ||
|
||
# ---------------- | ||
# Mesh 3 | ||
# ---------------- | ||
Define mesh: | ||
|
||
Define exterior boundary: | ||
20.0, 20.0, 3 | ||
80.0, 20.0, 3 | ||
80.0, 80.0, 3 | ||
20.0, 80.0, 3 | ||
End exterior boundary | ||
|
||
Define interior boundary: | ||
40.0, 40.0, 4 | ||
60.0, 40.0, 4 | ||
60.0, 60.0, 4 | ||
40.0, 60.0, 4 | ||
End interior boundary | ||
|
||
End mesh | ||
|
||
# ---------------- | ||
# Mesh 4 | ||
# ---------------- | ||
Define mesh: | ||
|
||
Define exterior boundary: | ||
40.0, 40.0, 4 | ||
60.0, 40.0, 4 | ||
60.0, 60.0, 4 | ||
40.0, 60.0, 4 | ||
End exterior boundary | ||
|
||
End mesh |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#=========================================================== | ||
# TQMESH | ||
#=========================================================== | ||
|
||
#----------------------------------------------------------- | ||
# MESH DEFINITION | ||
#----------------------------------------------------------- | ||
Define mesh: | ||
Element size: 4 | ||
Element color: 1 | ||
Meshing algorithm: Tri-to-Quad | ||
Number of quad refinements: 1 | ||
Smooth quad layers: 0 | ||
Number of smoothing iterations: 3 | ||
|
||
# Output formats: COUT, TXT, VTU | ||
Output file format: VTU | ||
Output file prefix: ./thin_fracture | ||
|
||
#--------------------------------------------------------- | ||
# BOUNDARIES | ||
#--------------------------------------------------------- | ||
Define boundary vertices: | ||
55.00, -140.0000 | ||
90.00, -140.0000 | ||
90.00, -110.0000 | ||
55.00, -110.0000 | ||
77.03125, -134.0878, 0.1, 0.035 | ||
77.04852, -134.0778, 0.1, 0.035 | ||
68.49935, -119.4510, 0.1, 0.035 | ||
68.48208, -119.4611, 0.1, 0.035 | ||
End boundary vertices | ||
|
||
Define exterior boundary edges: | ||
0, 1, 1 | ||
1, 2, 2 | ||
2, 3, 3 | ||
3, 0, 4 | ||
End exterior boundary edges | ||
|
||
Define interior boundary edges: | ||
4, 7, 5 | ||
7, 6, 5 | ||
6, 5, 5 | ||
5, 4, 5 | ||
End interior boundary edges | ||
|
||
#--------------------------------------------------------- | ||
# QUAD-LAYERS | ||
#--------------------------------------------------------- | ||
Add quad layers: 77.03125, -134.0878, 77.03125, -134.0878, 2, 0.1, 1.3 | ||
|
||
End mesh |
Oops, something went wrong.