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

Visualizer crashes on 3D C5G7 and SMRG7 #155

Open
spasmann opened this issue Feb 7, 2024 · 0 comments
Open

Visualizer crashes on 3D C5G7 and SMRG7 #155

spasmann opened this issue Feb 7, 2024 · 0 comments
Labels
bug Something isn't working visualizer

Comments

@spasmann
Copy link
Collaborator

spasmann commented Feb 7, 2024

Using latest version of MCDC, after inserting mcdc.visualize() after defining the geometry in the 3D C5G7 and SMRG7 input decks I get the following error

(mcdc-vis-env) PS C:\Users\Sam\Documents\Github\Experiments\3d_c5g7> python .\input.py
optfile ./ng.opt does not exist - using default values
togl-version : 2
OCC module loaded
loading ngsolve library
NGSolve-6.2.2307
Using Lapack
Including sparse direct solver Pardiso
Running parallel using 16 thread(s)
Traceback (most recent call last):
  File "C:\Users\Sam\Documents\Github\Experiments\3d_c5g7\input.py", line 272, in <module>
    mcdc.visualize()
  File "C:\Users\Sam\mambaforge\envs\mcdc-vis-env\Lib\site-packages\mcdc\visualizer.py", line 435, in visualize
    color_key_dic = draw_Geometry(
                    ^^^^^^^^^^^^^^
  File "C:\Users\Sam\mambaforge\envs\mcdc-vis-env\Lib\site-packages\mcdc\visualizer.py", line 318, in draw_Geometry
    cell_geometry = create_cell_geometry(
                    ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Sam\mambaforge\envs\mcdc-vis-env\Lib\site-packages\mcdc\visualizer.py", line 233, in create_cell_geometry
    math.sqrt(abs(surface_list[surface_ID]["J"][0, 0] - z**2 - y**2))
                                                        ^
UnboundLocalError: cannot access local variable 'z' where it is not associated with a value

Any ideas @RohanPankaj ?

@spasmann spasmann added bug Something isn't working visualizer labels Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working visualizer
Projects
None yet
Development

No branches or pull requests

1 participant