Individual disabling of fluid calculations #2542
-
IntroHi, I am trying to build a model of a quadcopter. I have specific profiles for rotor power and thrust vs. speed so I have modelled bodies that represent the inertia of the rotors and have two actuaors on the joint to the quad's body representing the rotor drag and motor, which are set at each step outside of the simulation. My setupMujoco 3.3.0, Windows 11 My questionI would like to be able to disable the fluid physics calculations for the geometry that I have representing the quad's rotors, but maintain it for the rest of the body of the quad. Is there a way to selectively disable the fluild physics calculations? Minimal model and/or code that explain my questionHere is a test model where I have tried setting the fluidshape to none and ellipsoid and fluidcoef to 0 for some cylindrical plates in a dense medium. Neither of these produces the behaviour I am looking for where the plate falls straight down. The first and second (red and green) appear to behave in the same way, while the the third (blue) moves differently, but is certainly still affected by some form of fluid forces. <mujoco model="fluid_test" >
<option density="1000" viscosity="1e-3" integrator="RK4" />
<asset>
<texture type="2d" name="groundplane" builtin="checker" mark="edge" rgb1="0.2 0.3 0.4" rgb2="0.1 0.2 0.3"
markrgb="0.8 0.8 0.8" width="300" height="300"/>
<material name="groundplane" texture="groundplane" texuniform="true" texrepeat="5 5" reflectance="0.2"/>
</asset>
<worldbody>
<body name="plate" pos="0 0 1" euler="30 0 0 ">
<freejoint/>
<geom type="cylinder" size=".5 .01" rgba=".7 .5 .5 1" />
</body>
<body name="plate_none" pos="2 0 1" euler="30 0 0 ">
<freejoint/>
<geom type="cylinder" size=".5 .01" rgba=".5 .7 .5 1" fluidshape="none" fluidcoef="0 0 0 0 0"/>
</body>
<body name="plate_ellipsoid" pos="4 0 1" euler="30 0 0 ">
<freejoint/>
<geom type="cylinder" size=".5 .01" rgba=".5 .5 .7 1" fluidshape="ellipsoid" fluidcoef="0 0 0 0 0"/>
</body>
<geom name="floor" size="0 0 0.05" type="plane" material="groundplane"/>
</worldbody>
</mujoco> Confirmations
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Unfortunately there is currently no way to entirely disable the fluid forces. I guess we should add that |
Beta Was this translation helpful? Give feedback.
Unfortunately there is currently no way to entirely disable the fluid forces. I guess we should add that