Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BeamLoader postprocessor squishing answers #270

Closed
GregorWilson opened this issue Nov 6, 2023 · 2 comments
Closed

BeamLoader postprocessor squishing answers #270

GregorWilson opened this issue Nov 6, 2023 · 2 comments
Assignees

Comments

@GregorWilson
Copy link

Describe the bug
The beamloader postprocessor appears to be squishing its results into an array only half the length of the structural nodes. This happens for loads, strains, coords, etc.

To Reproduce
On any simulation where the beamloader is active just have a look at the length of the postprocessor 'loads' array vs the # of structural nodes. I believe you should see the 'loads' array is half that of the # of structural nodes. This is also true for all other postprocessor results i.e. strain)

Expected behavior
I believe the beamloader postprocessor should output its loads, strains, etc. to an array that corresponds to each structural node.

Screenshots
strangeforces

System Info (please complete the following information):

  • OS: imperial typhoon aeronautics server - Operating System: Debian GNU/Linux 12 (bookworm), Kernel: Linux 6.1.0-12-amd64
  • SHARPy v2.0

Additional context
Was mentioned at the sharpy weekly meeting on 1/11/23, this is the reason for strange bending moment distributions along wings

@ben-l-p ben-l-p self-assigned this Nov 7, 2023
@ben-l-p
Copy link
Collaborator

ben-l-p commented Nov 7, 2023

Hi Gregor,

I believe that the beam loader outputs values per element, not per node (of which there are around half as many), which should explain why this is the case. Please see the relation below from the docs:

  • num_elem [int] : number of structural elements.

  • num_node [int] : number of nodes.

    For simple structures, it is num_elem*(num_node_elem - 1) - 1.
    For more complicated ones, you need to calculate it properly.

@GregorWilson
Copy link
Author

yup that makes sense, I just assumed it output loads at nodes so I'll close.

Thanks for responding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants