-
Notifications
You must be signed in to change notification settings - Fork 46
Closed
Description
I was looking through the code in writing the theory and it appears we are double counting the added mass for lines and rods. We include the added mass in the mass matrix calculations, but then also include a fluid inertia force:
Rod mass:
Line 1040 in 0cfd542
| M[i] = m_i * I + VOF[i] * env->rho_w * v_i * (Can * (I - Q) + Cat * Q); |
Rod force (Aq and Ap):
Line 1189 in 0cfd542
| Fnet[i] = W[i] + Bo[i] + Dp[i] + Dq[i] + Ap[i] + Aq[i] + Pd[i] + B[i]; |
Line mass:
Line 889 in 0cfd542
| M[i] = m_i * I + env->rho_w * v_i * (Can * (I - Q) + Cat * Q); |
Line force (Aq and Ap):
Line 1214 in 0cfd542
| Fnet[i] += W[i] + (Dp[i] + Dq[i] + Ap[i] + Aq[i]) + B[i] + |
This fluid inertia force is not included in MD-F. However in testing between the two codes I have never seen this as an issue, perhaps I've just always had low added mass coefficients an/or small dynamics. Another good reason to automate checking between the codes.