Hi,
I tried the compare_elastic_materials.py as below and got errors.
$ ./simple.py examples/large_deformation/compare_elastic_materials.py
sfepy: left over: ['mesh_hook', 'stiffness_from_lame', 'UserMeshIO', 'gen_block_mesh', 'verbose', '_filename']
sfepy: reading mesh [user] (function:mesh_hook)...
sfepy: ...done in 0.00 s
sfepy: creating regions...
sfepy: Omega
sfepy: Bottom
sfepy: Top
sfepy: ...done in 0.04 s
sfepy: equation "linear":
sfepy: dw_lin_elastic.i.Omega(solid.D, v, u)
= dw_surface_ltr.isurf.Top(load.val, v)
sfepy: equation "neo-Hookean":
sfepy: dw_tl_he_neohook.i.Omega(solid.mu_nh, v, u)
+ dw_tl_bulk_penalty.i.Omega(solid.K, v, u)
= dw_surface_ltr.isurf.Top(load.val, v)
sfepy: equation "Mooney-Rivlin":
sfepy: dw_tl_he_neohook.i.Omega(solid.mu_mr, v, u)
+ dw_tl_he_mooney_rivlin.i.Omega(solid.kappa, v, u)
+ dw_tl_bulk_penalty.i.Omega(solid.K, v, u)
= dw_surface_ltr.isurf.Top(load.val, v)
sfepy: using solvers:
ts: ts
nls: newton
ls: ls
sfepy: updating variables...
sfepy: ...done
sfepy: setting up dof connectivities...
sfepy: ...done in 0.00 s
sfepy: matrix shape: (28, 28)
sfepy: assembling matrix graph...
sfepy: ...done in 0.00 s
sfepy: matrix structural nonzeros: 688 (8.78e-01% fill)
sfepy: updating materials...
sfepy: load
Traceback (most recent call last):
File "./simple.py", line 177, in <module>
main()
File "./simple.py", line 174, in main
app()
File "/home/pyontaku14/anaconda3/sfepy/sfepy/applications/application.py", line 29, in call_basic
return self.call(**kwargs)
File "/home/pyontaku14/anaconda3/sfepy/sfepy/applications/pde_solver_app.py", line 218, in call
post_process_hook_final=self.post_process_hook_final)
File "/home/pyontaku14/anaconda3/sfepy/sfepy/discrete/problem.py", line 1383, in solve
status=status)
File "/home/pyontaku14/anaconda3/sfepy/sfepy/solvers/ts_solvers.py", line 34, in _standard_ts_call
status=status, **kwargs)
File "/home/pyontaku14/anaconda3/sfepy/sfepy/solvers/ts_solvers.py", line 142, in __call__
vec0 = init_fun(ts, vec0)
File "/home/pyontaku14/anaconda3/sfepy/sfepy/discrete/problem.py", line 1187, in init_fun
self.init_time(ts)
File "/home/pyontaku14/anaconda3/sfepy/sfepy/discrete/problem.py", line 765, in init_time
self.update_materials(mode='force')
File "/home/pyontaku14/anaconda3/sfepy/sfepy/discrete/problem.py", line 575, in update_materials
problem=self, verbose=verbose)
File "/home/pyontaku14/anaconda3/sfepy/sfepy/discrete/equations.py", line 340, in time_update_materials
verbose=verbose)
File "/home/pyontaku14/anaconda3/sfepy/sfepy/discrete/materials.py", line 59, in time_update
mat.time_update(ts, equations, mode=mode, problem=problem)
File "/home/pyontaku14/anaconda3/sfepy/sfepy/discrete/materials.py", line 304, in time_update
self.update_data(key, ts, equations, term, problem=problem)
File "/home/pyontaku14/anaconda3/sfepy/sfepy/discrete/materials.py", line 221, in update_data
**self.extra_args)
File "/home/pyontaku14/anaconda3/sfepy/sfepy/discrete/functions.py", line 36, in __call__
return self.function(*args, **_kwargs)
TypeError: <lambda>() got an unexpected keyword argument 'equations'
$
The version is the newest.
$ ./simple.py --version
simple.py 2018.1+git.4da6f2a4a87c44869ad7016686ccddc1e75bb845
Could you please give me advice to solve the error?
Best regards,
Takuo Fujita