Skip to content

advanced examples issue #7

@OocoO

Description

@OocoO

I tried to run the advanced example-2d/3d multi-material indentation on my computer with python 2.7.15 environment. but got an issue like this:
execfile('launcher.py')

65 simulations left to run.

Running Simulation: id=57, frames = 50

Traceback (most recent call last):
File "", line 1, in
File "launcher.py", line 5, in
db_manager.run_all()
File "classes.py", line 875, in run_all
self.run_next()
File "classes.py", line 856, in run_next
simu.run(work_dir = self.work_dir, abqlauncher = self.abqlauncher)
File "classes.py", line 725, in run
self.preprocess()
File "classes.py", line 666, in preprocess
l = mesh_l)
File "C:\Python27\lib\site-packages\abapy\indentation.py", line 244, in IndentationMesh
U2 = m2.nodes.eval_vectorFunction(disp2)
File "C:\Python27\lib\site-packages\abapy\mesh.py", line 634, in eval_vectorFunction
data1 = FieldOutput(labels = labels, data = data1, dti = dti, dtf = dtf)
File "C:\Python27\lib\site-packages\abapy\postproc.py", line 1569, in init
if data.any(): # data != None
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

and I also tried to fix the error by changing the line like:
if isinstance(data, array):'
but did not work. which seems that the error did not happen in that line.
Since I have already run the other example successfully, I really want to know what happened there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions