a file in example package can not run

Asked by Daizong Meng

Hello,

There is example file in following path:

trunk-master\trunk-master\examples\FluidCouplingVANS1D\oneWayCoupling\buoyantParticles.py

When I run it there is an error:

'HydroForceEngine' object has no attribute 'initialization'

I guess it exists on the line 108 of this file.

Can you help me solve it

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:
Revision history for this message
Daizong Meng (mdz950103) said :
#1

The example file buoyantParticles.py does not work

Revision history for this message
Jan Stránský (honzik) said :
#2

Hello,

please read [1], point 4, and provide information:
- what version of Yade you are using?
- what version "example file in following path" is from?

Cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask

Revision history for this message
Daizong Meng (mdz950103) said :
#3

I am using 2020.01a version yade
The path is from the trunk of gitlab yade

Revision history for this message
Best Jan Stránský (honzik) said :
#4

Start with using examples from the same version as your Yade exacutable.
If you use yade 2020.01a, use examples from 2020.01a [1,2], not recent git version.
Even then there may be some problems, but the probability is much lower.
Cheers
Jan

[1] https://gitlab.com/yade-dev/trunk/-/tree/2020.01a
[2] https://launchpad.net/yade -> Downloads -> 2020.01.a

Revision history for this message
Daizong Meng (mdz950103) said :
#5

Thanks Jan Stránský, that solved my question.