Skip to content

Remeshing Issue (also occurred when Tissue set to False) #33

@mmegally

Description

@mmegally

Description

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "C:\Users\micha\miniconda3\envs\svv\lib\site-packages\svv\simulation\simulation.py", line 95, in build_meshes
fluid_surface_mesh = self.synthetic_object.export_solid(watertight=True)
File "C:\Users\micha\miniconda3\envs\svv\lib\site-packages\svv\tree\tree.py", line 296, in export_solid
model = build_watertight_solid(self)
File "C:\Users\micha\miniconda3\envs\svv\lib\site-packages\svv\tree\export\export_solid.py", line 405, in build_watertight_solid
model = union_tubes(tubes, lines, cap_resolution=cap_resolution)
File "C:\Users\micha\miniconda3\envs\svv\lib\site-packages\svv\tree\export\export_solid.py", line 381, in union_tubes
model = remesh_surface(model, hsiz=hsize)
File "C:\Users\micha\miniconda3\envs\svv\lib\site-packages\svv\utils\remeshing\remesh.py", line 501, in remesh_surface
subprocess.check_call(executable_list)
File "C:\Users\micha\miniconda3\envs\svv\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\Users\micha\miniconda3\envs\svv\lib\site-packages\svv\utils\remeshing\Windows\mmgs_O3.exe', 'tmp.mesh', '-v', '1', '-hsiz', '0.0010348719102400916']' returned non-zero exit status 1.

Reproduction

import pyvista as pv
from svv.domain.domain import Domain
from svv.tree.tree import Tree

mesh = pv.read('sample_baffle_extrude.stl').triangulate()
baffle = Domain(mesh)
baffle.create()
baffle.solve()
baffle.build()

t = Tree()
t.set_domain(baffle)
t.set_root()
t.n_add(10)

from svv.simulation.simulation import Simulation

sim = Simulation(t)
sim.build_meshes(fluid=True,tissue=False,boundary_layer=False)
sim.extract_faces()

Expected behavior

Adequate remeshing -> generate appropriate vtp/vtu files

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions