sharpy icon indicating copy to clipboard operation
sharpy copied to clipboard

Gravity forces switched if reference node is not first node

Open DomIno0o opened this issue 1 year ago • 4 comments

Hi,

Describe the bug If the reference node is not the first node, the gravity force of the reference node is applied to the first node anyway. The gravity forces of the other nodes leading up to the reference node are each shifted by one node. I observed this with the NonLinearStatic and NonLinearDynamicPrescribedStep solvers. I don't think that the masses are switched because the modal analysis of my model looks fine. However, I am not sure how to confirm this thought. The switch affects lumped and distributed masses.

To Reproduce Choose a reference node other than the first node. I used the cantilever_wing example and gravity force information given in the paraview beam plot to examine this anomaly.

Expected behavior The case file page says about boundary conditions: "Usually, the first node has 1" which sounds like nodes other than the first can also be used.

DomIno0o avatar Sep 18 '22 14:09 DomIno0o

Hi Dominooo,

A quick check reveals the problem might be here: vdof_fdof; those variables are passed to the XBEAM (Fortran structural subroutines) to deal with the BC; as they are incremented when the first node is not the reference, the info is lost. XBEAM seems general on this regard so a quick fix there might be all that is needed, it would need testing though. If this is not the case, it will be for the team to decide whether to document that the first node must be the reference or to actually make the changes in the subroutines to allow an arbitrary selection of this node. Do you have strong simulation arguments for introducing this capability? It would be helpful in making a decision...

Thanks, Alvaro.

ACea15 avatar Sep 21 '22 06:09 ACea15

Hi Alvaro,

from my understanding by using two beams and aero surfaces you introduce two vortices in the centre. Theoretically, they should cancel each other out perfectly, but in practice this not necessarily the case. If I understood correctly, one of the publications linked on the sharpy homepage also mentiones this ("Realistic turbulence effects in low altitude dynamics of very flexible aircraft"). By using one continous beam and aero surface I avoid this problem.

DomIno0o avatar Sep 23 '22 18:09 DomIno0o

Hi Dominoo,

Is your last question related to this gravity forces issue? Anyway, in theory yes but in practice we deal with numerics. You could play with variables such as the vortex_radius in the aerodynamic solvers to see if that helps. I have also experienced this and the easiest solution was to model each lifting surface with the same index in the surface_distribution variable. No compromise whatsoever in what can be modelled.

Regards

ACea15 avatar Sep 30 '22 08:09 ACea15

Hi Alvaro,

thanks for your answer. The two questions are related, because the documentation says that beam numbering of aerodynamic surfaces must be continous. For me, this implied that a continous aero surface spanning over two beams is not allowed. I will model the wings with two beams and try your suggestion. I cannot think of other simulation arguments for an arbitrary reference node, so a change of the documentation is probably enough.

Regards

DomIno0o avatar Oct 03 '22 07:10 DomIno0o