Fixed volume for multiple objects?

Hi everyone!

I am working on a mass optimization. Different masses will have different heights, but the total volume must remain constant. For example, I want to try different heights of three different masses in the picture, but the total volume must remain constant (4640m3).

How can I achieve this?

Thanks in advance.

Pufferfish plugin has a constrained volume box that might work in this situation.

1 Like

i will try now

With this component, it was possible to keep the volume of each mass separately constant. But my goal is to keep the total volume constant. In other words, the height of some masses should decrease while the height of others should increase, the aim is to keep the total volume value constant.

BASE AREAS MUST BE THE SAME. BUT I CANNOT ACHIEVE THIS :frowning:

If I understand correctly, you want to adjust the relative heights of different blocks while keeping the plans fixed and the same total volume. If so, you don’t need any plugins or optimisation for this - you can get it directly by dividing by the total:
volumes.gh (9.7 KB)

1 Like

Yes! You are great. The solution is brilliant!

I just wonder: In this method the heights are given in proportion. But can elevation values be determined as true measurements? For example, is there a way to determine the height of a block as a specific value?