yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #28780
Re: [Question #704311]: How can I control the variables in the Partial engine during the simulation?
Question #704311 on Yade changed:
https://answers.launchpad.net/yade/+question/704311
JINSUN LEE posted a new comment:
Thank you for the answer. It helps me a lot.
I have two another question,
1. What is the meaning of MWE [1] ?
2. It seems to be a bug when using the label in 'RotationEngine'
###
In [1]: O.engines
Out[1]:
[<ForceResetter instance at 0x559595ddcf40>,
<InsertionSortCollider instance at 0x559595f91560>,
<InteractionLoop instance at 0x559596078500>,
<NewtonIntegrator instance at 0x559595f9d0c0>,
<PyRunner instance at 0x559595c04200>,
<PyRunner instance at 0x559595b067a0>,
<ServoPIDController instance at 0x559595a9ac20>,
<DomainLimiter instance at 0x559595f195c0>,
<PyRunner instance at 0x559595b06ba0>,
<RotationEngine instance at 0x559596019160>]
###
When I check the label of the partial engine, label can be identified
The label of ServoPIDController is instance,
However, the label of RontationEngine gives error message as follows,
###
In [2]: O.engines[6].label
Out[2]: 'servo_1'
In [3]: servo_1
Out[3]: <ServoPIDController instance at 0x559595a9ac20>
In [4]: O.engines[9].label
Out[4]: 'moving_wall_front'
In [5]: moving_wall_front
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/usr/bin/yade in <module>
----> 1 moving_wall_front
NameError: name 'moving_wall_front' is not defined
###
Ubuntu 22.10
Welcome to Yade 2022.01a
Using python version: 3.10.7 (main, Nov 24 2022, 19:45:47) [GCC 12.2.0]
--
You received this question notification because your team yade-users is
an answer contact for Yade.