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

function split up to access gmsh object #4

Closed
jon-proximafusion opened this issue Jan 29, 2025 · 1 comment
Closed

function split up to access gmsh object #4

jon-proximafusion opened this issue Jan 29, 2025 · 1 comment

Comments

@jon-proximafusion
Copy link

The assembly_to_gmsh function is great

In some case we are looking for a little more control over the meshing parameters.

It would be useful if we can return the gmsh object so that the user can mesh the geometry with their own meshing parameters. mesh order

Proposal
Remove some of the gmsh commands from the function and allow the user to do these

The first part loads the geometry and does the tagging and returns the gmsh object, perhaps it does not need these lines of code

    gmsh.model.mesh.field.setAsBackgroundMesh(2)

    gmsh.model.mesh.generate(3)
    gmsh.write(mesh_path)

    gmsh.finalize()

Alternative solution (not ideal)
One option is to pass in a large amount of meshing parameters like set_size, min_mesh_size, max_mesh_size_backgroung mesh size etc
However this would be difficult to manage the number of meshing options available.

@jmwright
Copy link
Member

Addressed in #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants