Skip to content

Purpose of while loop #9

@fgrunewald

Description

@fgrunewald

@Marco447 what is the purpose of the while loop and why are you excepting RunTime Errors?

while result is None:
try:
outer_mesh = mesh_maker(outer)
outer_area = outer_mesh.area/100
inner_mesh = mesh_maker(inner)
inner_area = inner_mesh.area/100
volume_in = inner_mesh.volume/1000
box_vol = np.prod(self.box_dim[:3])/1000
vol_ves_out = outer_mesh.volume/1000
volume_out = box_vol - vol_ves_out
result = volume_out
except RuntimeError:
pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions