I’m attempting to run one of the examples from modulus-sym, specifically aneurysm.py.
However, upon running the code, I encountered the following errors:
However, I run the code, I got following errors.
Could someone provide detailed hints on how to resolve this error?
Additionally, I’m interested in utilizing complex geometry in the STL file format to solve Navier-Stokes and continuity equations. Understanding this example code would greatly aid my learning process in utilizing STL geometry within modulus.
Thank you for your assistance.
Best regards,
Error executing job with overrides:
Traceback (most recent call last):
File “/mnt/d/modulus-sym/examples/aneurysm/aneurysm.py”, line 166, in run
interior = PointwiseInteriorConstraint(
File “/home/shusaku/.local/lib/python3.10/site-packages/modulus/sym/domain/constraint/continuous.py”, line 444, in init
invar = geometry.sample_interior(
File “/home/shusaku/.local/lib/python3.10/site-packages/modulus/sym/geometry/geometry.py”, line 603, in sample_interior
self.sdf(
File “/home/shusaku/.local/lib/python3.10/site-packages/modulus/sym/geometry/geometry.py”, line 111, in scale_sdf
computed_sdf = sdf(scaled_invar, params, compute_sdf_derivatives)
File “/home/shusaku/.local/lib/python3.10/site-packages/modulus/sym/geometry/geometry.py”, line 189, in translate_sdf
computed_sdf = sdf(translated_invar, params, compute_sdf_derivatives)
File “/home/shusaku/.local/lib/python3.10/site-packages/modulus/sym/geometry/tessellation.py”, line 147, in sdf
sdf_field, sdf_derivative = pysdf.signed_distance_field(
AttributeError: module ‘pysdf’ has no attribute ‘signed_distance_field’
Thank youf ro your response.
I know my topic has been previously adressed, however, I encountered ambiguity with the suggested solution.
If you could provide a more specific solution or guidance on running the code effectively, I would great appreciate it.
Thank you for your cooperation, even your busy schedule.
I’m afraid that I can’t provide a solution other than using the Docker image.
I have only briefly looked into the workaround described in the other thread, and decided to stick with the Docker method for now and wait for the release of the pysdf library.