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

What exactly is the definition of scale #159

Closed
wjsjtu123 opened this issue Mar 12, 2024 · 1 comment
Closed

What exactly is the definition of scale #159

wjsjtu123 opened this issue Mar 12, 2024 · 1 comment
Labels
setup question question for a specific setup

Comments

@wjsjtu123
Copy link

image
image
image
I would like to know exactly how this scale variable should be defined and what exactly it means in the code

@ProjectPhysX
Copy link
Owner

Hi @wjsjtu123,

  • lbm_length is 40% of the longest side of the simulation box (let's say 300 LBM cells long).
  • fuselage->get_bounding_box_size().x is the length of the fuselage mesh, as it is loaded from .stl coordinates (could be 10 for example); the .x component here is the length because the mesh is rotated such that its length is along the x-axis
  • scale is the ratio of the two
  • applying scale to the fuselage mesh first divides its length by itself (fuselage->get_bounding_box_size().x) so that it now is 1 LBM cell long, and then multiplies by lbm_length to make it 300 LBM cells long
  • this allows to make the mesh always the same size within the LBM simulation box, regardless how large or small it was in .stl coordinates

Kind regards,
Moritz

@ProjectPhysX ProjectPhysX added the setup question question for a specific setup label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
setup question question for a specific setup
Projects
None yet
Development

No branches or pull requests

2 participants