You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi sfepy development team!
I try to probe the cauchy stress of my FEM model. But errors occurred when I defining the evaluation of the problem.
Traceback (most recent call last):
File "D:\ProgramFiles\Anaconda3\envs\FEM_39\lib\site-packages\sfepy\base\base.py", line 556, in getitem
ii = self.names.index(ii)
ValueError: 'ii' is not in list
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\ProgramFiles\Anaconda3\envs\FEM_39\lib\site-packages\sfepy\discrete\integrals.py", line 53, in get
obj = self[name]
File "D:\ProgramFiles\Anaconda3\envs\FEM_39\lib\site-packages\sfepy\base\base.py", line 563, in getitem
raise IndexError(msg)
IndexError: 'ii' is not in list
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\PycharmWorkSpace\Box girder\FEM.py", line 129, in
stress = pb.evaluate('ev_cauchy_stress.ii.girder(m.D, u)', mode='evaluate',
File "D:\ProgramFiles\Anaconda3\envs\FEM_39\lib\site-packages\sfepy\discrete\problem.py", line 1829, in evaluate
aux = self.create_evaluable(expression,
File "D:\ProgramFiles\Anaconda3\envs\FEM_39\lib\site-packages\sfepy\discrete\problem.py", line 1771, in create_evaluable
out = create_evaluable(expression, self.fields, materials,
File "D:\ProgramFiles\Anaconda3\envs\FEM_39\lib\site-packages\sfepy\discrete\evaluate.py", line 230, in create_evaluable
equations = Equations.from_conf({'tmp' : expression},
File "D:\ProgramFiles\Anaconda3\envs\FEM_39\lib\site-packages\sfepy\discrete\equations.py", line 65, in from_conf
eq = Equation.from_desc(name, desc, variables, regions,
File "D:\ProgramFiles\Anaconda3\envs\FEM_39\lib\site-packages\sfepy\discrete\equations.py", line 743, in from_desc
terms = Terms.from_desc(term_descs, regions, integrals)
File "D:\ProgramFiles\Anaconda3\envs\FEM_39\lib\site-packages\sfepy\terms\terms.py", line 218, in from_desc
term = Term.from_desc(constructor, td, region, integrals=integrals)
File "D:\ProgramFiles\Anaconda3\envs\FEM_39\lib\site-packages\sfepy\terms\terms.py", line 354, in from_desc
integral = integrals.get(desc.integral)
File "D:\ProgramFiles\Anaconda3\envs\FEM_39\lib\site-packages\sfepy\discrete\integrals.py", line 56, in get
raise ValueError('integral %s is not defined!' % name)
ValueError: integral ii is not defined!
It says the integral ii is not defined. But I have defined the integral earlier. integral = Integral('ii', order=3)
By the way is there any tutorial that shows how to write postprocess code interactively? I believe there is only tutorials of the problem defining part.
Hi sfepy development team!
I try to probe the cauchy stress of my FEM model. But errors occurred when I defining the evaluation of the problem.
It says the integral ii is not defined. But I have defined the integral earlier.
integral = Integral('ii', order=3)
The full code is listed below:
I would greatly appreciate your help of any kind.
Thank you!
The text was updated successfully, but these errors were encountered: