Skip to content
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

Refactor unstructured mesh generation #40

Merged
merged 31 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
347dd40
Hack for pytorch3d dependency
jwallwork23 Oct 31, 2024
ecee685
Refactor UnstructuredSquareMesh; implement unit tests
jwallwork23 Oct 31, 2024
604908a
Combine meshgen modules
jwallwork23 Oct 31, 2024
6688aa2
Pull up methods into UnstructuredMeshGenerator
jwallwork23 Nov 2, 2024
5202d25
Pull up generate_mesh method
jwallwork23 Nov 2, 2024
db9e204
Misc refactoring of points/lines methods
jwallwork23 Nov 2, 2024
cffe8c7
Inline gmsh calls; remove unnecessary member vars
jwallwork23 Nov 2, 2024
3dec374
Renaming
jwallwork23 Nov 2, 2024
ab02f6b
Extend unit tests to polygonal mesh, too
jwallwork23 Nov 2, 2024
fb8998c
Renaming
jwallwork23 Nov 2, 2024
62b7737
Inline points calculation
jwallwork23 Nov 2, 2024
61e7959
Inline lines calculation
jwallwork23 Nov 2, 2024
6588379
Handle scale arg; finish docstrings
jwallwork23 Nov 2, 2024
f31e540
Rename module
jwallwork23 Nov 2, 2024
dd632ad
Use a def for chamfer_distance hack
jwallwork23 Nov 2, 2024
4c868a1
Utility for meshgen testing
jwallwork23 Nov 2, 2024
773e0bb
Add unit test for area of square mesh
jwallwork23 Nov 2, 2024
fb71a64
Add unit test for scale and res
jwallwork23 Nov 2, 2024
6b44987
#50: TODO for Gmsh info; pass scale to super().__init__
jwallwork23 Nov 3, 2024
8f34b64
#41: FIXME for pytorch3d import
jwallwork23 Nov 3, 2024
73e5904
Improve clarity of corners docstring
jwallwork23 Nov 3, 2024
fbe9635
Rename param file_path->output_filename; fix typo
jwallwork23 Nov 3, 2024
f3a8065
Mention default param values
jwallwork23 Nov 3, 2024
7a4660e
Simplify assertion in test_boundary_segments
jwallwork23 Nov 3, 2024
bbf3f0a
Improve docstring for uniform dist
jwallwork23 Nov 3, 2024
4e48f6b
Turn on I001 for linting
jwallwork23 Nov 3, 2024
87d7bd2
Merge branch 'main' into 17_refactor_meshgen
jwallwork23 Nov 3, 2024
18561f8
Add seed option; drop duplicate tests
jwallwork23 Nov 3, 2024
b9f2dcf
Revert 18561f80b7ac32da8c659eaf72e7e83c18d88d7a for now
jwallwork23 Nov 14, 2024
f34054e
Fix typos
jwallwork23 Nov 14, 2024
c1cf475
Merge branch 'main' into 17_refactor_meshgen
jwallwork23 Nov 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions UM2N/generator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from .rand_source_generator import * # noqa
from .equation_generator import * # noqa

from .polymesh import * # noqa
from .squaremesh import * # noqa
from .unstructured_mesh import * # noqa
from .burgers_solver import * # noqa
from .swirl_solver import * # noqa
154 changes: 0 additions & 154 deletions UM2N/generator/polymesh.py

This file was deleted.

109 changes: 0 additions & 109 deletions UM2N/generator/squaremesh.py

This file was deleted.

Loading
Loading