I want to use numpy directly in the journal file, but I ran into some troubles. I get an error, which states
RuntimeError: The current Numpy installation ('/share/programs/coreform/Coreform-Cubit-2021.4/bin/python3/lib/python3.8/site-packages/numpy/__init__.py') fails to pass simple sanity checks. This can be caused for example by incorrect BLAS library being linked in, or by mixing package managers (pip, conda, apt, ...). Search closed numpy issues for similar problems.
I already tried some suggestions, which I found on the internet. However, I still get the error.
Two small suggestions that are just odd in your process.
The top of your file contains two shebangs (!#). The second should be irrelevant but it is odd. I would remove it.
#!python
#!/usr/bin/python
You name your input file with a “.jou” extension. It contains python commands and not traditional Cubit command language. I would change the extension to “.py”.
I don’t think either of these really matter, they are just different than my normal usage.
I started Cubit 2022.4 on my Windows machine and then opened the journal editor. Before importing your file, I changed the mode to python by clicking on the highlighted icon in the image below.
I was then able to hit run in the journal editor and generate your model.