Skip to content

Question: SI unit conversion and scaling #337

@djObsidian

Description

@djObsidian

Greetings!

I am trying to wrap my head around the unit conversion system in this project. While I have reviewed previous issues regarding units (#27, #55, and #265), I still have some specific questions about how to correctly define the SI mapping.

The conversion coefficients are set using:
units.set_m_kg_s(lbm_length, lbm_velocity, lbm_density, si_length, si_velocity, si_density);

I am struggling to understand what exactly si_length and si_velocity represent in a physical context. Specifically, "length and velocity of WHAT?"

1. Length Scaling

Taking the Electric Ducted Fan (EDF) example: the STL files are dimensioned in millimeters. If I want to simulate this in meters, should si_length be set to 0.001 (representing 1 mm in meters)? Or something else?

2. Velocity Scaling

In the example, the flow velocity is initialized as lbm.u.y[n] = 0.3f * lbm_u;.

  • If I assume my free-stream velocity is 1 m/s (or 10 m/s), do I simply pass that value as si_velocity?
  • What if I want to run a static simulation where the initial velocity in all cells is zero (e.g., to measure the output flow generated by the EDF itself)? What value should be assigned to si_velocity in this "zero-start" scenario?

3. Time and Resolution

I am also unclear about the time step resolution.

  • What determines the temporal resolution of a single step?
  • I see that units.t() can be used to convert physical time into the number of steps. Is there a straightforward way to perform the inverse conversion?
  • For instance, in the EDF example, how would I calculate the exact RPM in physical units?

I would provide greatly appreciate any clarification on these points. Thank you in advance for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions