-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: How do I apply external forces to a rigid body? #776
Labels
enhancement
New feature or request
Comments
You can apply via RigidSolver for solver in scene.sim.solvers:
if not isinstance(solver, RigidSolver):
continue
rigid_solver = solver
rigid_solver.apply_links_external_force(
force=np.array([[1,0,0]]),
links_idx=[1], # global link idx
) |
Thank you for your feedback! Regarding your question: Does Genesis have custom configuration options for the maximum stiffness of rigid bodies, and a solver capable of applying different forces to distinct regions of the model?
…------------------ 原始邮件 ------------------
发件人: "Genesis-Embodied-AI/Genesis" ***@***.***>;
发送时间: 2025年2月25日(星期二) 凌晨2:41
***@***.***>;
***@***.******@***.***>;
主题: Re: [Genesis-Embodied-AI/Genesis] [Feature]: How do I apply external forces to a rigid body? (Issue #776)
You can apply via RigidSolver
for solver in scene.sim.solvers: if not isinstance(solver, RigidSolver): continue rigid_solver = solver rigid_solver.apply_links_external_force( force=np.array([[1,0,0]]), links_idx=[1], # global link idx )
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
Kashu7100 left a comment (Genesis-Embodied-AI/Genesis#776)
You can apply via RigidSolver
for solver in scene.sim.solvers: if not isinstance(solver, RigidSolver): continue rigid_solver = solver rigid_solver.apply_links_external_force( force=np.array([[1,0,0]]), links_idx=[1], # global link idx )
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
yes you can apply forces to each link in the model. you can |
Thanks, my problem is that different forces need to be set for a mesh object to be discretized into different parts. |
BTW, Is there any possible to apply contraint or force on a FEM entity or MPM entity? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What feature or enhancement are you proposing?
How do I apply external forces to a rigid body?
Motivation
As a [e.g. civil engineering researcher working on flood simulation]
I want to [e.g. be able to simulate city-scale fluid / terrain simulations]
Because [e.g. this enables the efficient design and validation of flood protection structures].
Potential Benefit
How do I apply external forces to a rigid body?
What is the expected outcome of the implementation work?
Additional information
No response
The text was updated successfully, but these errors were encountered: