# Calculate moment for floating body

Hi

I have a floating body. I want to calculate force and moment applied to this body.

The floating body is allowed to rotate around an axis (2D simulation).

The command "computeforces" calculates the forces correctly.

I have added momentaxis:0:0.1:0.0:0:-0.1:0.0 for computung the moment. But I face the following error:

... Force moment calculation is invalid for floating forces

What is the solution?

## Comments

We are going to include this functionalitiy in v5.0 since we, the developers, and other users like you we need that for different applications.

Thanks

Dear Developer, Cannot calculate the moment of the floating box?

Could you please help me to write the script in the post processing file to get the moment of the floating box?